Class: AWSCDK::CodeBuild::BuildEnvironmentCertificate
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::BuildEnvironmentCertificate
- Defined in:
- code_build/build_environment_certificate.rb
Overview
Location of a PEM certificate on S3.
Instance Attribute Summary collapse
-
#bucket ⇒ AWSCDK::S3::IBucket
readonly
The bucket where the certificate is.
-
#object_key ⇒ String
readonly
The full path and name of the key file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, object_key:) ⇒ BuildEnvironmentCertificate
constructor
A new instance of BuildEnvironmentCertificate.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, object_key:) ⇒ BuildEnvironmentCertificate
Returns a new instance of BuildEnvironmentCertificate.
9 10 11 12 13 14 |
# File 'code_build/build_environment_certificate.rb', line 9 def initialize(bucket:, object_key:) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket") @object_key = object_key Jsii::Type.check_type(@object_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectKey") end |
Instance Attribute Details
#bucket ⇒ AWSCDK::S3::IBucket (readonly)
The bucket where the certificate is.
19 20 21 |
# File 'code_build/build_environment_certificate.rb', line 19 def bucket @bucket end |
#object_key ⇒ String (readonly)
The full path and name of the key file.
23 24 25 |
# File 'code_build/build_environment_certificate.rb', line 23 def object_key @object_key end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'code_build/build_environment_certificate.rb', line 25 def self.jsii_properties { :bucket => "bucket", :object_key => "objectKey", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'code_build/build_environment_certificate.rb', line 32 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "objectKey" => @object_key, }) result.compact end |