Class: AWSCDK::ElasticLoadBalancingv2::RevocationContent

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/revocation_content.rb

Overview

Information about a revocation file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, revocation_type: nil, version: nil) ⇒ RevocationContent

Returns a new instance of RevocationContent.

Parameters:



11
12
13
14
15
16
17
18
19
20
# File 'elastic_load_balancingv2/revocation_content.rb', line 11

def initialize(bucket:, key:, revocation_type: nil, version: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zMy5JQnVja2V0UmVmIn0=")), "bucket")
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @revocation_type = revocation_type
  Jsii::Type.check_type(@revocation_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5SZXZvY2F0aW9uVHlwZSJ9")), "revocationType") unless @revocation_type.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#bucketAWSCDK::Interfaces::AWSS3::IBucketRef (readonly)

The Amazon S3 bucket for the revocation file.



25
26
27
# File 'elastic_load_balancingv2/revocation_content.rb', line 25

def bucket
  @bucket
end

#keyString (readonly)

The Amazon S3 path for the revocation file.

Returns:

  • (String)


29
30
31
# File 'elastic_load_balancingv2/revocation_content.rb', line 29

def key
  @key
end

#revocation_typeAWSCDK::ElasticLoadBalancingv2::RevocationType? (readonly)

Note:

Default: RevocationType.CRL

The type of revocation file.



34
35
36
# File 'elastic_load_balancingv2/revocation_content.rb', line 34

def revocation_type
  @revocation_type
end

#versionString? (readonly)

Note:

Default: - latest version

The Amazon S3 object version of the revocation file.

Returns:

  • (String, nil)


39
40
41
# File 'elastic_load_balancingv2/revocation_content.rb', line 39

def version
  @version
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
48
# File 'elastic_load_balancingv2/revocation_content.rb', line 41

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
    :revocation_type => "revocationType",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



50
51
52
53
54
55
56
57
58
59
# File 'elastic_load_balancingv2/revocation_content.rb', line 50

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
    "revocationType" => @revocation_type,
    "version" => @version,
  })
  result.compact
end