Class: AWSCDK::Route53GlobalResolver::CfnAccessTokenProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53GlobalResolver::CfnAccessTokenProps
- Defined in:
- route53_global_resolver/cfn_access_token_props.rb
Overview
Properties for defining a CfnAccessToken.
Instance Attribute Summary collapse
- #client_token ⇒ String? readonly
- #dns_view_id ⇒ String readonly
- #expires_at ⇒ String? readonly
- #name ⇒ String? readonly
- #tags ⇒ Array<AWSCDK::CfnTag>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dns_view_id:, client_token: nil, expires_at: nil, name: nil, tags: nil) ⇒ CfnAccessTokenProps
constructor
A new instance of CfnAccessTokenProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dns_view_id:, client_token: nil, expires_at: nil, name: nil, tags: nil) ⇒ CfnAccessTokenProps
Returns a new instance of CfnAccessTokenProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 14 def initialize(dns_view_id:, client_token: nil, expires_at: nil, name: nil, tags: nil) @dns_view_id = dns_view_id Jsii::Type.check_type(@dns_view_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsViewId") @client_token = client_token Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil? @expires_at = expires_at Jsii::Type.check_type(@expires_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expiresAt") unless @expires_at.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#client_token ⇒ String? (readonly)
32 33 34 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 32 def client_token @client_token end |
#dns_view_id ⇒ String (readonly)
29 30 31 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 29 def dns_view_id @dns_view_id end |
#expires_at ⇒ String? (readonly)
35 36 37 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 35 def expires_at @expires_at end |
#name ⇒ String? (readonly)
38 39 40 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 38 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
41 42 43 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 41 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 43 def self.jsii_properties { :dns_view_id => "dnsViewId", :client_token => "clientToken", :expires_at => "expiresAt", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'route53_global_resolver/cfn_access_token_props.rb', line 53 def to_jsii result = {} result.merge!({ "dnsViewId" => @dns_view_id, "clientToken" => @client_token, "expiresAt" => @expires_at, "name" => @name, "tags" => @tags, }) result.compact end |