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 Details

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnSinkProps.Builder name(String name)
      Sets the value of CfnSinkProps.getName()
      Parameters:
      name - A name for the sink. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnSinkProps.Builder policy(Object policy)
      Sets the value of CfnSinkProps.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

      @Stability(Stable) public CfnSinkProps.Builder tags(Map<String,String> tags)
      Sets the value of CfnSinkProps.getTags()
      Parameters:
      tags - An array of key-value pairs to apply to the sink. For more information, see Tag .
      Returns:
      this
    • build

      @Stability(Stable) public CfnSinkProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSinkProps>
      Returns:
      a new instance of CfnSinkProps
      Throws:
      NullPointerException - if any required attribute was not provided