Class: AWSCDK::CloudAssemblySchema::ContextLookupRoleOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::ContextLookupRoleOptions
- Defined in:
- cloud_assembly_schema/context_lookup_role_options.rb
Overview
Options for context lookup roles.
Direct Known Subclasses
AmiContextQuery, AvailabilityZonesContextQuery, CcAPIContextQuery, EndpointServiceAvailabilityZonesContextQuery, HostedZoneContextQuery, KeyContextQuery, LoadBalancerFilter, SSMParameterContextQuery, SecurityGroupContextQuery, VPCContextQuery
Instance Attribute Summary collapse
-
#account ⇒ String
readonly
Query account.
-
#assume_role_additional_options ⇒ Hash{String => Object}?
readonly
Additional options to pass to STS when assuming the lookup role.
-
#lookup_role_arn ⇒ String?
readonly
The ARN of the role that should be used to look up the missing values.
-
#lookup_role_external_id ⇒ String?
readonly
The ExternalId that needs to be supplied while assuming this role.
-
#region ⇒ String
readonly
Query region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account:, region:, assume_role_additional_options: nil, lookup_role_arn: nil, lookup_role_external_id: nil) ⇒ ContextLookupRoleOptions
constructor
A new instance of ContextLookupRoleOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account:, region:, assume_role_additional_options: nil, lookup_role_arn: nil, lookup_role_external_id: nil) ⇒ ContextLookupRoleOptions
Returns a new instance of ContextLookupRoleOptions.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 12 def initialize(account:, region:, assume_role_additional_options: nil, lookup_role_arn: nil, lookup_role_external_id: nil) @account = account Jsii::Type.check_type(@account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "account") @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") @assume_role_additional_options = Jsii::Type.check_type(@assume_role_additional_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "assumeRoleAdditionalOptions") unless @assume_role_additional_options.nil? @lookup_role_arn = lookup_role_arn Jsii::Type.check_type(@lookup_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lookupRoleArn") unless @lookup_role_arn.nil? @lookup_role_external_id = lookup_role_external_id Jsii::Type.check_type(@lookup_role_external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lookupRoleExternalId") unless @lookup_role_external_id.nil? end |
Instance Attribute Details
#account ⇒ String (readonly)
Query account.
28 29 30 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 28 def account @account end |
#assume_role_additional_options ⇒ Hash{String => Object}? (readonly)
Default: - No additional options.
Additional options to pass to STS when assuming the lookup role.
RoleArnshould not be used. Use the dedicatedlookup_role_arnproperty instead.ExternalIdshould not be used. Use the dedicatedlookup_role_external_idinstead.
41 42 43 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 41 def @assume_role_additional_options end |
#lookup_role_arn ⇒ String? (readonly)
Default: - None
The ARN of the role that should be used to look up the missing values.
46 47 48 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 46 def lookup_role_arn @lookup_role_arn end |
#lookup_role_external_id ⇒ String? (readonly)
Default: - No ExternalId will be supplied
The ExternalId that needs to be supplied while assuming this role.
51 52 53 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 51 def lookup_role_external_id @lookup_role_external_id end |
#region ⇒ String (readonly)
Query region.
32 33 34 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 32 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 53 def self.jsii_properties { :account => "account", :region => "region", :assume_role_additional_options => "assumeRoleAdditionalOptions", :lookup_role_arn => "lookupRoleArn", :lookup_role_external_id => "lookupRoleExternalId", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'cloud_assembly_schema/context_lookup_role_options.rb', line 63 def to_jsii result = {} result.merge!({ "account" => @account, "region" => @region, "assumeRoleAdditionalOptions" => @assume_role_additional_options, "lookupRoleArn" => @lookup_role_arn, "lookupRoleExternalId" => @lookup_role_external_id, }) result.compact end |