Class: AWSCDK::CloudAssemblySchema::EndpointServiceAvailabilityZonesContextQuery
- Inherits:
-
ContextLookupRoleOptions
- Object
- ContextLookupRoleOptions
- AWSCDK::CloudAssemblySchema::EndpointServiceAvailabilityZonesContextQuery
- Defined in:
- cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb
Overview
Query to endpoint service context provider.
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.
-
#service_name ⇒ String
readonly
Query service name.
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, service_name:) ⇒ EndpointServiceAvailabilityZonesContextQuery
constructor
A new instance of EndpointServiceAvailabilityZonesContextQuery.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account:, region:, assume_role_additional_options: nil, lookup_role_arn: nil, lookup_role_external_id: nil, service_name:) ⇒ EndpointServiceAvailabilityZonesContextQuery
Returns a new instance of EndpointServiceAvailabilityZonesContextQuery.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 13 def initialize(account:, region:, assume_role_additional_options: nil, lookup_role_arn: nil, lookup_role_external_id: nil, service_name:) @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? @service_name = service_name Jsii::Type.check_type(@service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceName") end |
Instance Attribute Details
#account ⇒ String (readonly)
Query account.
31 32 33 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 31 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.
44 45 46 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 44 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.
49 50 51 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 49 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.
54 55 56 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 54 def lookup_role_external_id @lookup_role_external_id end |
#region ⇒ String (readonly)
Query region.
35 36 37 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 35 def region @region end |
#service_name ⇒ String (readonly)
Query service name.
58 59 60 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 58 def service_name @service_name end |
Class Method Details
.jsii_properties ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 60 def self.jsii_properties { :account => "account", :region => "region", :assume_role_additional_options => "assumeRoleAdditionalOptions", :lookup_role_arn => "lookupRoleArn", :lookup_role_external_id => "lookupRoleExternalId", :service_name => "serviceName", } end |
Instance Method Details
#to_jsii ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'cloud_assembly_schema/endpoint_service_availability_zones_context_query.rb', line 71 def to_jsii result = {} result.merge!(super) result.merge!({ "account" => @account, "region" => @region, "assumeRoleAdditionalOptions" => @assume_role_additional_options, "lookupRoleArn" => @lookup_role_arn, "lookupRoleExternalId" => @lookup_role_external_id, "serviceName" => @service_name, }) result.compact end |