Class: AWSCDK::S3::ReplaceKey
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::S3::ReplaceKey
- Defined in:
- s3/replace_key.rb
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.prefix_with(key_replacement) ⇒ AWSCDK::S3::ReplaceKey
The object key prefix to use in the redirect request.
-
.with(key_replacement) ⇒ AWSCDK::S3::ReplaceKey
The specific object key to use in the redirect request.
Instance Method Summary collapse
-
#initialize(*args) ⇒ ReplaceKey
constructor
A new instance of ReplaceKey.
- #prefix_with_key ⇒ String?
- #with_key ⇒ String?
Constructor Details
#initialize(*args) ⇒ ReplaceKey
Returns a new instance of ReplaceKey.
7 8 9 |
# File 's3/replace_key.rb', line 7 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_s3.ReplaceKey does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.jsii_overridable_methods ⇒ Object
11 12 13 14 15 16 |
# File 's3/replace_key.rb', line 11 def self.jsii_overridable_methods { :prefix_with_key => { kind: :property, name: "prefixWithKey", is_optional: true }, :with_key => { kind: :property, name: "withKey", is_optional: true }, } end |
.prefix_with(key_replacement) ⇒ AWSCDK::S3::ReplaceKey
The object key prefix to use in the redirect request.
22 23 24 25 |
# File 's3/replace_key.rb', line 22 def self.prefix_with(key_replacement) Jsii::Type.check_type(key_replacement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyReplacement") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_s3.ReplaceKey", "prefixWith", [key_replacement]) end |
.with(key_replacement) ⇒ AWSCDK::S3::ReplaceKey
The specific object key to use in the redirect request.
31 32 33 34 |
# File 's3/replace_key.rb', line 31 def self.with(key_replacement) Jsii::Type.check_type(key_replacement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyReplacement") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_s3.ReplaceKey", "with", [key_replacement]) end |
Instance Method Details
#prefix_with_key ⇒ String?
37 38 39 |
# File 's3/replace_key.rb', line 37 def prefix_with_key() jsii_get_property("prefixWithKey") end |
#with_key ⇒ String?
42 43 44 |
# File 's3/replace_key.rb', line 42 def with_key() jsii_get_property("withKey") end |