@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:15.090Z") @Stability(value=Experimental) public class AddHeader extends software.amazon.jsii.JsiiObject implements IReceiptRuleAction
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
Bucket bucket = new Bucket(stack, "Bucket");
Topic topic = new Topic(stack, "Topic");
ReceiptRuleSet.Builder.create(stack, "RuleSet")
.rules(List.of(ReceiptRuleOptions.builder()
.recipients(List.of("hello@aws.com"))
.actions(List.of(
AddHeader.Builder.create()
.name("X-Special-Header")
.value("aws")
.build(),
S3.Builder.create()
.bucket(bucket)
.objectKeyPrefix("emails/")
.topic(topic)
.build()))
.build(), ReceiptRuleOptions.builder()
.recipients(List.of("aws.com"))
.actions(List.of(
Sns.Builder.create()
.topic(topic)
.build()))
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AddHeader.Builder
(experimental) A fluent builder for
AddHeader. |
software.amazon.jsii.JsiiObject.InitializationModeIReceiptRuleAction.Jsii$Default, IReceiptRuleAction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AddHeader(AddHeaderProps props) |
protected |
AddHeader(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AddHeader(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
ReceiptRuleActionConfig |
bind(IReceiptRule _rule)
(experimental) Returns the receipt rule action specification.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AddHeader(software.amazon.jsii.JsiiObjectRef objRef)
protected AddHeader(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AddHeader(@NotNull
AddHeaderProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public ReceiptRuleActionConfig bind(@NotNull IReceiptRule _rule)
bind in interface IReceiptRuleAction_rule - This parameter is required.Copyright © 2022. All rights reserved.