Class: AWSCDK::CodeBuild::BuildEnvironmentCertificate

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/build_environment_certificate.rb

Overview

Location of a PEM certificate on S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, object_key:) ⇒ BuildEnvironmentCertificate

Returns a new instance of BuildEnvironmentCertificate.

Parameters:

  • bucket (AWSCDK::S3::IBucket)

    The bucket where the certificate is.

  • object_key (String)

    The full path and name of the key file.



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

#bucketAWSCDK::S3::IBucket (readonly)

The bucket where the certificate is.

Returns:



19
20
21
# File 'code_build/build_environment_certificate.rb', line 19

def bucket
  @bucket
end

#object_keyString (readonly)

The full path and name of the key file.

Returns:

  • (String)


23
24
25
# File 'code_build/build_environment_certificate.rb', line 23

def object_key
  @object_key
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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