Class CfnModelPackageGroup.Builder

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

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

    • create

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

      @Stability(Stable) public CfnModelPackageGroup.Builder modelPackageGroupName(String modelPackageGroupName)
      The name of the model group.

      Parameters:
      modelPackageGroupName - The name of the model group. This parameter is required.
      Returns:
      this
    • modelPackageGroupDescription

      @Stability(Stable) public CfnModelPackageGroup.Builder modelPackageGroupDescription(String modelPackageGroupDescription)
      The description for the model group.

      Parameters:
      modelPackageGroupDescription - The description for the model group. This parameter is required.
      Returns:
      this
    • modelPackageGroupPolicy

      @Stability(Stable) public CfnModelPackageGroup.Builder modelPackageGroupPolicy(Object modelPackageGroupPolicy)
      A resouce policy to control access to a model group.

      For information about resoure policies, see Identity-based policies and resource-based policies in the AWS Identity and Access Management User Guide. .

      Parameters:
      modelPackageGroupPolicy - A resouce policy to control access to a model group. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnModelPackageGroup.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

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