Class: AWSCDK::ARCRegionSwitch::CfnPlan::ServiceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

The service for a cross account role.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_arn: nil, cross_account_role: nil, external_id: nil, service_arn: nil) ⇒ ServiceProperty

Returns a new instance of ServiceProperty.

Parameters:

  • cluster_arn (String, nil) (defaults to: nil)

    The cluster Amazon Resource Name (ARN) for a service.

  • cross_account_role (String, nil) (defaults to: nil)

    The cross account role for a service.

  • external_id (String, nil) (defaults to: nil)

    The external ID (secret key) for the service.

  • service_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) for a service.



2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
# File 'arc_region_switch/cfn_plan.rb', line 2959

def initialize(cluster_arn: nil, cross_account_role: nil, external_id: nil, service_arn: nil)
  @cluster_arn = cluster_arn
  Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn") unless @cluster_arn.nil?
  @cross_account_role = 
  Jsii::Type.check_type(@cross_account_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crossAccountRole") unless @cross_account_role.nil?
  @external_id = external_id
  Jsii::Type.check_type(@external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "externalId") unless @external_id.nil?
  @service_arn = service_arn
  Jsii::Type.check_type(@service_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceArn") unless @service_arn.nil?
end

Instance Attribute Details

#cluster_arnString? (readonly)

The cluster Amazon Resource Name (ARN) for a service.



2974
2975
2976
# File 'arc_region_switch/cfn_plan.rb', line 2974

def cluster_arn
  @cluster_arn
end

#cross_account_roleString? (readonly)

The cross account role for a service.



2979
2980
2981
# File 'arc_region_switch/cfn_plan.rb', line 2979

def 
  @cross_account_role
end

#external_idString? (readonly)

The external ID (secret key) for the service.



2984
2985
2986
# File 'arc_region_switch/cfn_plan.rb', line 2984

def external_id
  @external_id
end

#service_arnString? (readonly)

The Amazon Resource Name (ARN) for a service.



2989
2990
2991
# File 'arc_region_switch/cfn_plan.rb', line 2989

def service_arn
  @service_arn
end

Class Method Details

.jsii_propertiesObject



2991
2992
2993
2994
2995
2996
2997
2998
# File 'arc_region_switch/cfn_plan.rb', line 2991

def self.jsii_properties
  {
    :cluster_arn => "clusterArn",
    :cross_account_role => "crossAccountRole",
    :external_id => "externalId",
    :service_arn => "serviceArn",
  }
end

Instance Method Details

#to_jsiiObject



3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
# File 'arc_region_switch/cfn_plan.rb', line 3000

def to_jsii
  result = {}
  result.merge!({
    "clusterArn" => @cluster_arn,
    "crossAccountRole" => @cross_account_role,
    "externalId" => @external_id,
    "serviceArn" => @service_arn,
  })
  result.compact
end