Class: AWSCDK::ElasticLoadBalancingv2::RevocationContent
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::RevocationContent
- Defined in:
- elastic_load_balancingv2/revocation_content.rb
Overview
Information about a revocation file.
Instance Attribute Summary collapse
-
#bucket ⇒ AWSCDK::Interfaces::AWSS3::IBucketRef
readonly
The Amazon S3 bucket for the revocation file.
-
#key ⇒ String
readonly
The Amazon S3 path for the revocation file.
-
#revocation_type ⇒ AWSCDK::ElasticLoadBalancingv2::RevocationType?
readonly
The type of revocation file.
-
#version ⇒ String?
readonly
The Amazon S3 object version of the revocation file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key:, revocation_type: nil, version: nil) ⇒ RevocationContent
constructor
A new instance of RevocationContent.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:, revocation_type: nil, version: nil) ⇒ RevocationContent
Returns a new instance of RevocationContent.
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
#bucket ⇒ AWSCDK::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 |
#key ⇒ String (readonly)
The Amazon S3 path for the revocation file.
29 30 31 |
# File 'elastic_load_balancingv2/revocation_content.rb', line 29 def key @key end |
#revocation_type ⇒ AWSCDK::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 |
#version ⇒ String? (readonly)
Note:
Default: - latest version
The Amazon S3 object version of the revocation file.
39 40 41 |
# File 'elastic_load_balancingv2/revocation_content.rb', line 39 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |