Class CfnSinkMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.oam.mixins.CfnSinkMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSinkMixinProps>
- Enclosing interface:
CfnSinkMixinProps
@Stability(Stable)
public static final class CfnSinkMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSinkMixinProps>
A builder for
CfnSinkMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSinkMixinProps.getName()Sets the value ofCfnSinkMixinProps.getPolicy()Sets the value ofCfnSinkMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSinkMixinProps.getName()- Parameters:
name- A name for the sink.- Returns:
this
-
policy
Sets the value ofCfnSinkMixinProps.getPolicy()- Parameters:
policy- The IAM policy that grants permissions to source accounts to link to this sink. The policy can grant permission in the following ways:- Include organization IDs or organization paths to permit all accounts in an organization
- Include account IDs to permit the specified accounts
- Returns:
this
-
tags
Sets the value ofCfnSinkMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the sink. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSinkMixinProps>- Returns:
- a new instance of
CfnSinkMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-