Class: AWSCDK::ACMPCA::CfnPermissionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ACMPCA::CfnPermissionProps
- Defined in:
- acmpca/cfn_permission_props.rb
Overview
Properties for defining a CfnPermission.
Instance Attribute Summary collapse
-
#actions ⇒ Array<String>
readonly
The private CA actions that can be performed by the designated AWS service.
-
#certificate_authority_arn ⇒ String, AWSCDK::Interfaces::AWSAcmpca::ICertificateAuthorityRef
readonly
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
-
#principal ⇒ String
readonly
The AWS service or entity that holds the permission.
-
#source_account ⇒ String?
readonly
The ID of the account that assigned the permission.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actions:, certificate_authority_arn:, principal:, source_account: nil) ⇒ CfnPermissionProps
constructor
A new instance of CfnPermissionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(actions:, certificate_authority_arn:, principal:, source_account: nil) ⇒ CfnPermissionProps
Returns a new instance of CfnPermissionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'acmpca/cfn_permission_props.rb', line 13 def initialize(actions:, certificate_authority_arn:, principal:, source_account: nil) @actions = actions Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "actions") @certificate_authority_arn = Jsii::Type.check_type(@certificate_authority_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hY21wY2EuSUNlcnRpZmljYXRlQXV0aG9yaXR5UmVmIn1dfX0=")), "certificateAuthorityArn") @principal = principal Jsii::Type.check_type(@principal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principal") @source_account = source_account Jsii::Type.check_type(@source_account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceAccount") unless @source_account.nil? end |
Instance Attribute Details
#actions ⇒ Array<String> (readonly)
The private CA actions that can be performed by the designated AWS service.
Supported actions are IssueCertificate , GetCertificate , and ListPermissions .
30 31 32 |
# File 'acmpca/cfn_permission_props.rb', line 30 def actions @actions end |
#certificate_authority_arn ⇒ String, AWSCDK::Interfaces::AWSAcmpca::ICertificateAuthorityRef (readonly)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
35 36 37 |
# File 'acmpca/cfn_permission_props.rb', line 35 def @certificate_authority_arn end |
#principal ⇒ String (readonly)
The AWS service or entity that holds the permission.
At this time, the only valid principal is acm.amazonaws.com .
42 43 44 |
# File 'acmpca/cfn_permission_props.rb', line 42 def principal @principal end |
#source_account ⇒ String? (readonly)
The ID of the account that assigned the permission.
47 48 49 |
# File 'acmpca/cfn_permission_props.rb', line 47 def source_account @source_account end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'acmpca/cfn_permission_props.rb', line 49 def self.jsii_properties { :actions => "actions", :certificate_authority_arn => "certificateAuthorityArn", :principal => "principal", :source_account => "sourceAccount", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'acmpca/cfn_permission_props.rb', line 58 def to_jsii result = {} result.merge!({ "actions" => @actions, "certificateAuthorityArn" => @certificate_authority_arn, "principal" => @principal, "sourceAccount" => @source_account, }) result.compact end |