Class ReplaceKey

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3.ReplaceKey
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.715Z") @Stability(Stable) public class ReplaceKey extends software.amazon.jsii.JsiiObject
Example:

 Bucket bucket = Bucket.Builder.create(this, "MyRedirectedBucket")
         .websiteRoutingRules(List.of(RoutingRule.builder()
                 .hostName("www.example.com")
                 .httpRedirectCode("302")
                 .protocol(RedirectProtocol.HTTPS)
                 .replaceKey(ReplaceKey.prefixWith("test/"))
                 .condition(RoutingRuleCondition.builder()
                         .httpErrorCodeReturnedEquals("200")
                         .keyPrefixEquals("prefix")
                         .build())
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ReplaceKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ReplaceKey(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    static ReplaceKey
    prefixWith(String keyReplacement)
    The object key prefix to use in the redirect request.
    static ReplaceKey
    with(String keyReplacement)
    The specific object key to use in the redirect request.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • ReplaceKey

      protected ReplaceKey(software.amazon.jsii.JsiiObjectRef objRef)
    • ReplaceKey

      protected ReplaceKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • prefixWith

      @Stability(Stable) @NotNull public static ReplaceKey prefixWith(@NotNull String keyReplacement)
      The object key prefix to use in the redirect request.

      Parameters:
      keyReplacement - This parameter is required.
    • with

      @Stability(Stable) @NotNull public static ReplaceKey with(@NotNull String keyReplacement)
      The specific object key to use in the redirect request.

      Parameters:
      keyReplacement - This parameter is required.
    • getPrefixWithKey

      @Stability(Stable) @Nullable public String getPrefixWithKey()
    • getWithKey

      @Stability(Stable) @Nullable public String getWithKey()