Class CfnRegistryPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.ecr.CfnRegistryPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistryPolicy>
Enclosing class:
CfnRegistryPolicy

@Stability(Stable) public static final class CfnRegistryPolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnRegistryPolicy>
A fluent builder for CfnRegistryPolicy.
  • Method Details

    • create

      @Stability(Stable) public static CfnRegistryPolicy.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 CfnRegistryPolicy.Builder.
    • policyText

      @Stability(Stable) public CfnRegistryPolicy.Builder policyText(Object policyText)
      The JSON policy text for your registry.

      Parameters:
      policyText - The JSON policy text for your registry. This parameter is required.
      Returns:
      this
    • build

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