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 Details

    • create

      @Stability(Stable) public static CfnSink.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSink.Builder.
    • name

      @Stability(Stable) public CfnSink.Builder name(String name)
      A name for the sink.

      Parameters:
      name - A name for the sink. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnSink.Builder policy(Object 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

      @Stability(Stable) public CfnSink.Builder tags(Map<String,String> 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

      @Stability(Stable) public CfnSink build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSink>
      Returns:
      a newly built instance of CfnSink.