libZSservicesZSamazonka-ampZSamazonka-amp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AMP.CreateWorkspace

Description

Creates a new AMP workspace.

Synopsis

Creating a Request

data CreateWorkspace Source #

Represents the input of a CreateWorkspace operation.

See: newCreateWorkspace smart constructor.

Constructors

CreateWorkspace' 

Fields

  • clientToken :: Maybe Text

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

  • alias :: Maybe Text

    An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.

  • tags :: Maybe (HashMap Text Text)

    Optional, user-provided tags for this workspace.

Instances

Instances details
Eq CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Read CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Show CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Generic CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Associated Types

type Rep CreateWorkspace :: Type -> Type #

NFData CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Methods

rnf :: CreateWorkspace -> () #

Hashable CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

ToJSON CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

AWSRequest CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Associated Types

type AWSResponse CreateWorkspace #

ToHeaders CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

ToPath CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

ToQuery CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

type Rep CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

type Rep CreateWorkspace = D1 ('MetaData "CreateWorkspace" "Amazonka.AMP.CreateWorkspace" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "CreateWorkspace'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))))
type AWSResponse CreateWorkspace Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

newCreateWorkspace :: CreateWorkspace Source #

Create a value of CreateWorkspace 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:clientToken:CreateWorkspace', createWorkspace_clientToken - Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

$sel:alias:CreateWorkspace', createWorkspace_alias - An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.

$sel:tags:CreateWorkspace', createWorkspace_tags - Optional, user-provided tags for this workspace.

Request Lenses

createWorkspace_clientToken :: Lens' CreateWorkspace (Maybe Text) Source #

Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

createWorkspace_alias :: Lens' CreateWorkspace (Maybe Text) Source #

An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.

createWorkspace_tags :: Lens' CreateWorkspace (Maybe (HashMap Text Text)) Source #

Optional, user-provided tags for this workspace.

Destructuring the Response

data CreateWorkspaceResponse Source #

Represents the output of a CreateWorkspace operation.

See: newCreateWorkspaceResponse smart constructor.

Constructors

CreateWorkspaceResponse' 

Fields

Instances

Instances details
Eq CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Read CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Show CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Generic CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Associated Types

type Rep CreateWorkspaceResponse :: Type -> Type #

NFData CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

Methods

rnf :: CreateWorkspaceResponse -> () #

type Rep CreateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateWorkspace

type Rep CreateWorkspaceResponse = D1 ('MetaData "CreateWorkspaceResponse" "Amazonka.AMP.CreateWorkspace" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "CreateWorkspaceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WorkspaceStatus) :*: S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateWorkspaceResponse Source #

Create a value of CreateWorkspaceResponse 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:tags:CreateWorkspace', createWorkspaceResponse_tags - The tags of this workspace.

$sel:httpStatus:CreateWorkspaceResponse', createWorkspaceResponse_httpStatus - The response's http status code.

$sel:arn:CreateWorkspaceResponse', createWorkspaceResponse_arn - The ARN of the workspace that was just created.

$sel:status:CreateWorkspaceResponse', createWorkspaceResponse_status - The status of the workspace that was just created (usually CREATING).

$sel:workspaceId:CreateWorkspaceResponse', createWorkspaceResponse_workspaceId - The generated ID of the workspace that was just created.

Response Lenses

createWorkspaceResponse_arn :: Lens' CreateWorkspaceResponse Text Source #

The ARN of the workspace that was just created.

createWorkspaceResponse_status :: Lens' CreateWorkspaceResponse WorkspaceStatus Source #

The status of the workspace that was just created (usually CREATING).

createWorkspaceResponse_workspaceId :: Lens' CreateWorkspaceResponse Text Source #

The generated ID of the workspace that was just created.