Class CfnSink.Builder
java.lang.Object
software.amazon.awscdk.services.oam.CfnSink.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSink>
- Enclosing class:
- CfnSink
@Stability(Stable)
public static final class CfnSink.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSink>
A fluent builder for
CfnSink.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnSink.BuilderA name for the sink.The IAM policy that grants permissions to source accounts to link to this sink.An array of key-value pairs to apply to the sink.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnSink.Builder.
-
name
A name for the sink.- Parameters:
name- A name for the sink. This parameter is required.- Returns:
this
-
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
- Parameters:
policy- The IAM policy that grants permissions to source accounts to link to this sink. This parameter is required.- Returns:
this
-
tags
An array of key-value pairs to apply to the sink.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to the sink. This parameter is required.- Returns:
this
-
build
-