Class CfnSinkProps.Builder
java.lang.Object
software.amazon.awscdk.services.oam.CfnSinkProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSinkProps>
- Enclosing interface:
CfnSinkProps
@Stability(Stable)
public static final class CfnSinkProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSinkProps>
A builder for
CfnSinkProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSinkProps.getName()Sets the value ofCfnSinkProps.getPolicy()Sets the value ofCfnSinkProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSinkProps.getName()- Parameters:
name- A name for the sink. This parameter is required.- Returns:
this
-
policy
Sets the value ofCfnSinkProps.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 ofCfnSinkProps.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<CfnSinkProps>- Returns:
- a new instance of
CfnSinkProps - Throws:
NullPointerException- if any required attribute was not provided
-