Class: AWSCDK::S3::ReplaceKey

Inherits:
Jsii::Object
  • Object
show all
Defined in:
s3/replace_key.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ReplaceKey

Returns a new instance of ReplaceKey.

Raises:

  • (NoMethodError)


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_methodsObject



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.

Parameters:

  • key_replacement (String)

Returns:

  • (AWSCDK::S3::ReplaceKey)


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.

Parameters:

  • key_replacement (String)

Returns:

  • (AWSCDK::S3::ReplaceKey)


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_keyString?

Returns:

  • (String, nil)


37
38
39
# File 's3/replace_key.rb', line 37

def prefix_with_key()
  jsii_get_property("prefixWithKey")
end

#with_keyString?

Returns:

  • (String, nil)


42
43
44
# File 's3/replace_key.rb', line 42

def with_key()
  jsii_get_property("withKey")
end