libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
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.IoTSiteWise.CreateProject

Description

Creates a project in the specified portal.

Synopsis

Creating a Request

data CreateProject Source #

See: newCreateProject smart constructor.

Constructors

CreateProject' 

Fields

Instances

Instances details
Eq CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Read CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Show CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Generic CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Associated Types

type Rep CreateProject :: Type -> Type #

NFData CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Methods

rnf :: CreateProject -> () #

Hashable CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

ToJSON CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

AWSRequest CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Associated Types

type AWSResponse CreateProject #

ToHeaders CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

ToPath CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

ToQuery CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

type Rep CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

type Rep CreateProject = D1 ('MetaData "CreateProject" "Amazonka.IoTSiteWise.CreateProject" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "CreateProject'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "projectDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "portalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateProject Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

newCreateProject Source #

Create a value of CreateProject 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:CreateProject', createProject_clientToken - A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

$sel:projectDescription:CreateProject', createProject_projectDescription - A description for the project.

$sel:tags:CreateProject', createProject_tags - A list of key-value pairs that contain metadata for the project. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

$sel:portalId:CreateProject', createProject_portalId - The ID of the portal in which to create the project.

$sel:projectName:CreateProject', createProject_projectName - A friendly name for the project.

Request Lenses

createProject_clientToken :: Lens' CreateProject (Maybe Text) Source #

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text)) Source #

A list of key-value pairs that contain metadata for the project. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

createProject_portalId :: Lens' CreateProject Text Source #

The ID of the portal in which to create the project.

createProject_projectName :: Lens' CreateProject Text Source #

A friendly name for the project.

Destructuring the Response

data CreateProjectResponse Source #

See: newCreateProjectResponse smart constructor.

Constructors

CreateProjectResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • projectId :: Text

    The ID of the project.

  • projectArn :: Text

    The ARN of the project, which has the following format.

    arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}

Instances

Instances details
Eq CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Read CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Show CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Generic CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

NFData CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.CreateProject

type Rep CreateProjectResponse = D1 ('MetaData "CreateProjectResponse" "Amazonka.IoTSiteWise.CreateProject" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "CreateProjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateProjectResponse Source #

Create a value of CreateProjectResponse 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:httpStatus:CreateProjectResponse', createProjectResponse_httpStatus - The response's http status code.

$sel:projectId:CreateProjectResponse', createProjectResponse_projectId - The ID of the project.

$sel:projectArn:CreateProjectResponse', createProjectResponse_projectArn - The ARN of the project, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}

Response Lenses

createProjectResponse_projectArn :: Lens' CreateProjectResponse Text Source #

The ARN of the project, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}