Class: AWSCDK::CodeArtifact::CfnDomainProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeArtifact::CfnDomainProps
- Defined in:
- code_artifact/cfn_domain_props.rb
Overview
Properties for defining a CfnDomain.
Instance Attribute Summary collapse
-
#domain_name ⇒ String
readonly
A string that specifies the name of the requested domain.
-
#encryption_key ⇒ String?
readonly
The key used to encrypt the domain.
-
#permissions_policy_document ⇒ Object?
readonly
The document that defines the resource policy that is set on a domain.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags to be applied to the domain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_name:, encryption_key: nil, permissions_policy_document: nil, tags: nil) ⇒ CfnDomainProps
constructor
A new instance of CfnDomainProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_name:, encryption_key: nil, permissions_policy_document: nil, tags: nil) ⇒ CfnDomainProps
Returns a new instance of CfnDomainProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'code_artifact/cfn_domain_props.rb', line 13 def initialize(domain_name:, encryption_key: nil, permissions_policy_document: nil, tags: nil) @domain_name = domain_name Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") @encryption_key = encryption_key Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKey") unless @encryption_key.nil? @permissions_policy_document = Jsii::Type.check_type(@permissions_policy_document, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "permissionsPolicyDocument") unless @permissions_policy_document.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
#domain_name ⇒ String (readonly)
A string that specifies the name of the requested domain.
28 29 30 |
# File 'code_artifact/cfn_domain_props.rb', line 28 def domain_name @domain_name end |
#encryption_key ⇒ String? (readonly)
The key used to encrypt the domain.
33 34 35 |
# File 'code_artifact/cfn_domain_props.rb', line 33 def encryption_key @encryption_key end |
#permissions_policy_document ⇒ Object? (readonly)
The document that defines the resource policy that is set on a domain.
38 39 40 |
# File 'code_artifact/cfn_domain_props.rb', line 38 def @permissions_policy_document end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags to be applied to the domain.
43 44 45 |
# File 'code_artifact/cfn_domain_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'code_artifact/cfn_domain_props.rb', line 45 def self.jsii_properties { :domain_name => "domainName", :encryption_key => "encryptionKey", :permissions_policy_document => "permissionsPolicyDocument", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'code_artifact/cfn_domain_props.rb', line 54 def to_jsii result = {} result.merge!({ "domainName" => @domain_name, "encryptionKey" => @encryption_key, "permissionsPolicyDocument" => @permissions_policy_document, "tags" => @tags, }) result.compact end |