Class: AWSCDK::Codepipeline::CfnPipeline::EncryptionKeyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::EncryptionKeyProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key.
EncryptionKey is a property of the ArtifactStore property type.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
The ID used to identify the key.
-
#type ⇒ String
readonly
The type of encryption key, such as an AWS KMS key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, type:) ⇒ EncryptionKeyProperty
constructor
A new instance of EncryptionKeyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, type:) ⇒ EncryptionKeyProperty
Returns a new instance of EncryptionKeyProperty.
1170 1171 1172 1173 1174 1175 |
# File 'codepipeline/cfn_pipeline.rb', line 1170 def initialize(id:, type:) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#id ⇒ String (readonly)
The ID used to identify the key.
For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.
Aliases are recognized only in the account that created the AWS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
1185 1186 1187 |
# File 'codepipeline/cfn_pipeline.rb', line 1185 def id @id end |
#type ⇒ String (readonly)
The type of encryption key, such as an AWS KMS key.
When creating or updating a pipeline, the value must be set to 'KMS'.
1192 1193 1194 |
# File 'codepipeline/cfn_pipeline.rb', line 1192 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1194 1195 1196 1197 1198 1199 |
# File 'codepipeline/cfn_pipeline.rb', line 1194 def self.jsii_properties { :id => "id", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'codepipeline/cfn_pipeline.rb', line 1201 def to_jsii result = {} result.merge!({ "id" => @id, "type" => @type, }) result.compact end |