Class CfnApp.Builder

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

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

    • create

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

      @Stability(Stable) public CfnApp.Builder appName(String appName)
      The name of the app.

      Parameters:
      appName - The name of the app. This parameter is required.
      Returns:
      this
    • appType

      @Stability(Stable) public CfnApp.Builder appType(String appType)
      The type of app.

      Allowed Values : JupyterServer | KernelGateway | RSessionGateway | RStudioServerPro | TensorBoard | Canvas

      Parameters:
      appType - The type of app. This parameter is required.
      Returns:
      this
    • domainId

      @Stability(Stable) public CfnApp.Builder domainId(String domainId)
      The domain ID.

      Parameters:
      domainId - The domain ID. This parameter is required.
      Returns:
      this
    • userProfileName

      @Stability(Stable) public CfnApp.Builder userProfileName(String userProfileName)
      The user profile name.

      Parameters:
      userProfileName - The user profile name. This parameter is required.
      Returns:
      this
    • resourceSpec

      @Stability(Stable) public CfnApp.Builder resourceSpec(CfnApp.ResourceSpecProperty resourceSpec)
      Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.

      Parameters:
      resourceSpec - Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on. This parameter is required.
      Returns:
      this
    • resourceSpec

      @Stability(Stable) public CfnApp.Builder resourceSpec(IResolvable resourceSpec)
      Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.

      Parameters:
      resourceSpec - Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnApp.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 CfnApp build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnApp>
      Returns:
      a newly built instance of CfnApp.