@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.817Z") @Stability(value=Stable) public class ReplaceKey extends software.amazon.jsii.JsiiObject
// Example automatically generated from non-compiling source. May contain errors.
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();
| Modifier | Constructor and Description |
|---|---|
protected |
ReplaceKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ReplaceKey(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefixWithKey() |
String |
getWithKey() |
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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ReplaceKey(software.amazon.jsii.JsiiObjectRef objRef)
protected ReplaceKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static ReplaceKey prefixWith(@NotNull String keyReplacement)
keyReplacement - This parameter is required.@Stability(value=Stable) @NotNull public static ReplaceKey with(@NotNull String keyReplacement)
keyReplacement - This parameter is required.@Stability(value=Stable) @Nullable public String getPrefixWithKey()
@Stability(value=Stable) @Nullable public String getWithKey()
Copyright © 2022. All rights reserved.