libZSservicesZSamazonka-codestarZSamazonka-codestar
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.CodeStar.DeleteProject

Description

Deletes a project, including project resources. Does not delete users associated with the project, but does delete the IAM roles that allowed access to the project.

Synopsis

Creating a Request

data DeleteProject Source #

See: newDeleteProject smart constructor.

Constructors

DeleteProject' 

Fields

  • deleteStack :: Maybe Bool

    Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.

  • clientRequestToken :: Maybe Text

    A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.

  • id :: Text

    The ID of the project to be deleted in AWS CodeStar.

Instances

Instances details
Eq DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Read DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Show DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Generic DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Associated Types

type Rep DeleteProject :: Type -> Type #

NFData DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Methods

rnf :: DeleteProject -> () #

Hashable DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

ToJSON DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

AWSRequest DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Associated Types

type AWSResponse DeleteProject #

ToHeaders DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

ToPath DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

ToQuery DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

type Rep DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

type Rep DeleteProject = D1 ('MetaData "DeleteProject" "Amazonka.CodeStar.DeleteProject" "libZSservicesZSamazonka-codestarZSamazonka-codestar" 'False) (C1 ('MetaCons "DeleteProject'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteStack") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteProject Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

newDeleteProject Source #

Create a value of DeleteProject 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:deleteStack:DeleteProject', deleteProject_deleteStack - Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.

$sel:clientRequestToken:DeleteProject', deleteProject_clientRequestToken - A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.

$sel:id:DeleteProject', deleteProject_id - The ID of the project to be deleted in AWS CodeStar.

Request Lenses

deleteProject_deleteStack :: Lens' DeleteProject (Maybe Bool) Source #

Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.

deleteProject_clientRequestToken :: Lens' DeleteProject (Maybe Text) Source #

A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.

deleteProject_id :: Lens' DeleteProject Text Source #

The ID of the project to be deleted in AWS CodeStar.

Destructuring the Response

data DeleteProjectResponse Source #

See: newDeleteProjectResponse smart constructor.

Constructors

DeleteProjectResponse' 

Fields

  • projectArn :: Maybe Text

    The Amazon Resource Name (ARN) of the deleted project.

  • stackId :: Maybe Text

    The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Read DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Show DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Generic DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Associated Types

type Rep DeleteProjectResponse :: Type -> Type #

NFData DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

Methods

rnf :: DeleteProjectResponse -> () #

type Rep DeleteProjectResponse Source # 
Instance details

Defined in Amazonka.CodeStar.DeleteProject

type Rep DeleteProjectResponse = D1 ('MetaData "DeleteProjectResponse" "Amazonka.CodeStar.DeleteProject" "libZSservicesZSamazonka-codestarZSamazonka-codestar" 'False) (C1 ('MetaCons "DeleteProjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stackId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteProjectResponse Source #

Create a value of DeleteProjectResponse 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:projectArn:DeleteProjectResponse', deleteProjectResponse_projectArn - The Amazon Resource Name (ARN) of the deleted project.

$sel:stackId:DeleteProjectResponse', deleteProjectResponse_stackId - The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.

$sel:httpStatus:DeleteProjectResponse', deleteProjectResponse_httpStatus - The response's http status code.

Response Lenses

deleteProjectResponse_projectArn :: Lens' DeleteProjectResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the deleted project.

deleteProjectResponse_stackId :: Lens' DeleteProjectResponse (Maybe Text) Source #

The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.