libZSservicesZSamazonka-iot1click-projectsZSamazonka-iot1click-projects
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.IoT1ClickProjects.CreateProject

Description

Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.

Synopsis

Creating a Request

data CreateProject Source #

See: newCreateProject smart constructor.

Constructors

CreateProject' 

Fields

  • placementTemplate :: Maybe PlacementTemplate

    The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides for the device templates using the UpdateProject API.

  • description :: Maybe Text

    An optional description for the project.

  • tags :: Maybe (HashMap Text Text)

    Optional tags (metadata key/value pairs) to be associated with the project. For example, { {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

  • projectName :: Text

    The name of the project to create.

Instances

Instances details
Eq CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Read CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Show CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Generic CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Associated Types

type Rep CreateProject :: Type -> Type #

NFData CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Methods

rnf :: CreateProject -> () #

Hashable CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

ToJSON CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

AWSRequest CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Associated Types

type AWSResponse CreateProject #

ToHeaders CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

ToPath CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

ToQuery CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

type Rep CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

type Rep CreateProject = D1 ('MetaData "CreateProject" "Amazonka.IoT1ClickProjects.CreateProject" "libZSservicesZSamazonka-iot1click-projectsZSamazonka-iot1click-projects" 'False) (C1 ('MetaCons "CreateProject'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "placementTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PlacementTemplate)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateProject Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.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:placementTemplate:CreateProject', createProject_placementTemplate - The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides for the device templates using the UpdateProject API.

$sel:description:CreateProject', createProject_description - An optional description for the project.

$sel:tags:CreateProject', createProject_tags - Optional tags (metadata key/value pairs) to be associated with the project. For example, { {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

$sel:projectName:CreateProject', createProject_projectName - The name of the project to create.

Request Lenses

createProject_placementTemplate :: Lens' CreateProject (Maybe PlacementTemplate) Source #

The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides for the device templates using the UpdateProject API.

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

An optional description for the project.

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

Optional tags (metadata key/value pairs) to be associated with the project. For example, { {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

createProject_projectName :: Lens' CreateProject Text Source #

The name of the project to create.

Destructuring the Response

data CreateProjectResponse Source #

See: newCreateProjectResponse smart constructor.

Constructors

CreateProjectResponse' 

Fields

Instances

Instances details
Eq CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Read CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Show CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Generic CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

NFData CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickProjects.CreateProject

type Rep CreateProjectResponse = D1 ('MetaData "CreateProjectResponse" "Amazonka.IoT1ClickProjects.CreateProject" "libZSservicesZSamazonka-iot1click-projectsZSamazonka-iot1click-projects" 'False) (C1 ('MetaCons "CreateProjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.

Response Lenses