amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.CreateApp

Description

Creates a running app for the specified UserProfile. This operation is automatically invoked by Amazon SageMaker Studio upon access to the associated Domain, and when new kernel configurations are selected by the user. A user may have multiple Apps active simultaneously.

Synopsis

Creating a Request

data CreateApp Source #

See: newCreateApp smart constructor.

Constructors

CreateApp' 

Fields

  • resourceSpec :: Maybe ResourceSpec

    The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

    The value of InstanceType passed as part of the ResourceSpec in the CreateApp call overrides the value passed as part of the ResourceSpec configured for the user profile or the domain. If InstanceType is not specified in any of those three ResourceSpec values for a KernelGateway app, the CreateApp call fails with a request validation error.

  • spaceName :: Maybe Text

    The name of the space. If this value is not set, then UserProfileName must be set.

  • tags :: Maybe [Tag]

    Each tag consists of a key and an optional value. Tag keys must be unique per resource.

  • userProfileName :: Maybe Text

    The user profile name. If this value is not set, then SpaceName must be set.

  • domainId :: Text

    The domain ID.

  • appType :: AppType

    The type of app.

  • appName :: Text

    The name of the app.

Instances

Instances details
ToJSON CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

ToHeaders CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Methods

toHeaders :: CreateApp -> [Header] #

ToPath CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

ToQuery CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

AWSRequest CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Associated Types

type AWSResponse CreateApp #

Generic CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Associated Types

type Rep CreateApp :: Type -> Type #

Read CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Show CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

NFData CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Methods

rnf :: CreateApp -> () #

Eq CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Hashable CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

type AWSResponse CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

type Rep CreateApp Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

newCreateApp Source #

Create a value of CreateApp with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:resourceSpec:CreateApp', createApp_resourceSpec - The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

The value of InstanceType passed as part of the ResourceSpec in the CreateApp call overrides the value passed as part of the ResourceSpec configured for the user profile or the domain. If InstanceType is not specified in any of those three ResourceSpec values for a KernelGateway app, the CreateApp call fails with a request validation error.

CreateApp, createApp_spaceName - The name of the space. If this value is not set, then UserProfileName must be set.

CreateApp, createApp_tags - Each tag consists of a key and an optional value. Tag keys must be unique per resource.

CreateApp, createApp_userProfileName - The user profile name. If this value is not set, then SpaceName must be set.

CreateApp, createApp_domainId - The domain ID.

CreateApp, createApp_appType - The type of app.

CreateApp, createApp_appName - The name of the app.

Request Lenses

createApp_resourceSpec :: Lens' CreateApp (Maybe ResourceSpec) Source #

The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.

The value of InstanceType passed as part of the ResourceSpec in the CreateApp call overrides the value passed as part of the ResourceSpec configured for the user profile or the domain. If InstanceType is not specified in any of those three ResourceSpec values for a KernelGateway app, the CreateApp call fails with a request validation error.

createApp_spaceName :: Lens' CreateApp (Maybe Text) Source #

The name of the space. If this value is not set, then UserProfileName must be set.

createApp_tags :: Lens' CreateApp (Maybe [Tag]) Source #

Each tag consists of a key and an optional value. Tag keys must be unique per resource.

createApp_userProfileName :: Lens' CreateApp (Maybe Text) Source #

The user profile name. If this value is not set, then SpaceName must be set.

createApp_appName :: Lens' CreateApp Text Source #

The name of the app.

Destructuring the Response

data CreateAppResponse Source #

See: newCreateAppResponse smart constructor.

Constructors

CreateAppResponse' 

Fields

Instances

Instances details
Generic CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Associated Types

type Rep CreateAppResponse :: Type -> Type #

Read CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Show CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

NFData CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

Methods

rnf :: CreateAppResponse -> () #

Eq CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

type Rep CreateAppResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateApp

type Rep CreateAppResponse = D1 ('MetaData "CreateAppResponse" "Amazonka.SageMaker.CreateApp" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "CreateAppResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "appArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAppResponse Source #

Create a value of CreateAppResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:appArn:CreateAppResponse', createAppResponse_appArn - The Amazon Resource Name (ARN) of the app.

$sel:httpStatus:CreateAppResponse', createAppResponse_httpStatus - The response's http status code.

Response Lenses

createAppResponse_appArn :: Lens' CreateAppResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the app.

createAppResponse_httpStatus :: Lens' CreateAppResponse Int Source #

The response's http status code.