Class: AWSCDK::ARCRegionSwitch::CfnPlan::ServiceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::ServiceProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
The service for a cross account role.
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String?
readonly
The cluster Amazon Resource Name (ARN) for a service.
-
#cross_account_role ⇒ String?
readonly
The cross account role for a service.
-
#external_id ⇒ String?
readonly
The external ID (secret key) for the service.
-
#service_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) for a service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_arn: nil, cross_account_role: nil, external_id: nil, service_arn: nil) ⇒ ServiceProperty
constructor
A new instance of ServiceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_arn: nil, cross_account_role: nil, external_id: nil, service_arn: nil) ⇒ ServiceProperty
Returns a new instance of ServiceProperty.
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 = 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_arn ⇒ String? (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_role ⇒ String? (readonly)
The cross account role for a service.
2979 2980 2981 |
# File 'arc_region_switch/cfn_plan.rb', line 2979 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (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_arn ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |