Class: AWSCDK::Synthetics::CfnCanary::ArtifactConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Synthetics::CfnCanary::ArtifactConfigProperty
- Defined in:
- synthetics/cfn_canary.rb
Overview
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3 .
Instance Attribute Summary collapse
-
#s3_encryption ⇒ AWSCDK::IResolvable, ...
readonly
A structure that contains the configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3 .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_encryption: nil) ⇒ ArtifactConfigProperty
constructor
A new instance of ArtifactConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_encryption: nil) ⇒ ArtifactConfigProperty
Returns a new instance of ArtifactConfigProperty.
809 810 811 812 |
# File 'synthetics/cfn_canary.rb', line 809 def initialize(s3_encryption: nil) @s3_encryption = s3_encryption.is_a?(Hash) ? ::AWSCDK::Synthetics::CfnCanary::S3EncryptionProperty.new(**s3_encryption.transform_keys(&:to_sym)) : s3_encryption Jsii::Type.check_type(@s3_encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zeW50aGV0aWNzLkNmbkNhbmFyeS5TM0VuY3J5cHRpb25Qcm9wZXJ0eSJ9XX19")), "s3Encryption") unless @s3_encryption.nil? end |
Instance Attribute Details
#s3_encryption ⇒ AWSCDK::IResolvable, ... (readonly)
A structure that contains the configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3 .
Artifact encryption functionality is available only for canaries that use Synthetics runtime version syn-nodejs-puppeteer-3.3 or later. For more information, see Encrypting canary artifacts .
820 821 822 |
# File 'synthetics/cfn_canary.rb', line 820 def s3_encryption @s3_encryption end |
Class Method Details
.jsii_properties ⇒ Object
822 823 824 825 826 |
# File 'synthetics/cfn_canary.rb', line 822 def self.jsii_properties { :s3_encryption => "s3Encryption", } end |
Instance Method Details
#to_jsii ⇒ Object
828 829 830 831 832 833 834 |
# File 'synthetics/cfn_canary.rb', line 828 def to_jsii result = {} result.merge!({ "s3Encryption" => @s3_encryption, }) result.compact end |