amazonka-codedeploy-2.0: Amazon CodeDeploy 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.CodeDeploy.ListDeployments

Description

Lists the deployments in a deployment group for an application registered with the IAM user or Amazon Web Services account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListDeployments Source #

Represents the input of a ListDeployments operation.

See: newListDeployments smart constructor.

Constructors

ListDeployments' 

Fields

  • applicationName :: Maybe Text

    The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account.

    If applicationName is specified, then deploymentGroupName must be specified. If it is not specified, then deploymentGroupName must not be specified.

  • createTimeRange :: Maybe TimeRange

    A time range (start and end) for returning a subset of the list of deployments.

  • deploymentGroupName :: Maybe Text

    The name of a deployment group for the specified application.

    If deploymentGroupName is specified, then applicationName must be specified. If it is not specified, then applicationName must not be specified.

  • externalId :: Maybe Text

    The unique ID of an external resource for returning deployments linked to the external resource.

  • includeOnlyStatuses :: Maybe [DeploymentStatus]

    A subset of deployments to list by status:

    • Created: Include created deployments in the resulting list.
    • Queued: Include queued deployments in the resulting list.
    • In Progress: Include in-progress deployments in the resulting list.
    • Succeeded: Include successful deployments in the resulting list.
    • Failed: Include failed deployments in the resulting list.
    • Stopped: Include stopped deployments in the resulting list.
  • nextToken :: Maybe Text

    An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list.

Instances

Instances details
ToJSON ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

ToHeaders ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

ToPath ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

ToQuery ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

AWSPager ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

AWSRequest ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Associated Types

type AWSResponse ListDeployments #

Generic ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Associated Types

type Rep ListDeployments :: Type -> Type #

Read ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Show ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

NFData ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Methods

rnf :: ListDeployments -> () #

Eq ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Hashable ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

type AWSResponse ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

type Rep ListDeployments Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

type Rep ListDeployments = D1 ('MetaData "ListDeployments" "Amazonka.CodeDeploy.ListDeployments" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "ListDeployments'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "applicationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "createTimeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeRange)) :*: S1 ('MetaSel ('Just "deploymentGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "externalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "includeOnlyStatuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeploymentStatus])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newListDeployments :: ListDeployments Source #

Create a value of ListDeployments 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:

ListDeployments, listDeployments_applicationName - The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account.

If applicationName is specified, then deploymentGroupName must be specified. If it is not specified, then deploymentGroupName must not be specified.

$sel:createTimeRange:ListDeployments', listDeployments_createTimeRange - A time range (start and end) for returning a subset of the list of deployments.

ListDeployments, listDeployments_deploymentGroupName - The name of a deployment group for the specified application.

If deploymentGroupName is specified, then applicationName must be specified. If it is not specified, then applicationName must not be specified.

ListDeployments, listDeployments_externalId - The unique ID of an external resource for returning deployments linked to the external resource.

$sel:includeOnlyStatuses:ListDeployments', listDeployments_includeOnlyStatuses - A subset of deployments to list by status:

  • Created: Include created deployments in the resulting list.
  • Queued: Include queued deployments in the resulting list.
  • In Progress: Include in-progress deployments in the resulting list.
  • Succeeded: Include successful deployments in the resulting list.
  • Failed: Include failed deployments in the resulting list.
  • Stopped: Include stopped deployments in the resulting list.

ListDeployments, listDeployments_nextToken - An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list.

Request Lenses

listDeployments_applicationName :: Lens' ListDeployments (Maybe Text) Source #

The name of an CodeDeploy application associated with the IAM user or Amazon Web Services account.

If applicationName is specified, then deploymentGroupName must be specified. If it is not specified, then deploymentGroupName must not be specified.

listDeployments_createTimeRange :: Lens' ListDeployments (Maybe TimeRange) Source #

A time range (start and end) for returning a subset of the list of deployments.

listDeployments_deploymentGroupName :: Lens' ListDeployments (Maybe Text) Source #

The name of a deployment group for the specified application.

If deploymentGroupName is specified, then applicationName must be specified. If it is not specified, then applicationName must not be specified.

listDeployments_externalId :: Lens' ListDeployments (Maybe Text) Source #

The unique ID of an external resource for returning deployments linked to the external resource.

listDeployments_includeOnlyStatuses :: Lens' ListDeployments (Maybe [DeploymentStatus]) Source #

A subset of deployments to list by status:

  • Created: Include created deployments in the resulting list.
  • Queued: Include queued deployments in the resulting list.
  • In Progress: Include in-progress deployments in the resulting list.
  • Succeeded: Include successful deployments in the resulting list.
  • Failed: Include failed deployments in the resulting list.
  • Stopped: Include stopped deployments in the resulting list.

listDeployments_nextToken :: Lens' ListDeployments (Maybe Text) Source #

An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list.

Destructuring the Response

data ListDeploymentsResponse Source #

Represents the output of a ListDeployments operation.

See: newListDeploymentsResponse smart constructor.

Constructors

ListDeploymentsResponse' 

Fields

  • deployments :: Maybe [Text]

    A list of deployment IDs.

  • nextToken :: Maybe Text

    If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Associated Types

type Rep ListDeploymentsResponse :: Type -> Type #

Read ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Show ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

NFData ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

Methods

rnf :: ListDeploymentsResponse -> () #

Eq ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

type Rep ListDeploymentsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.ListDeployments

type Rep ListDeploymentsResponse = D1 ('MetaData "ListDeploymentsResponse" "Amazonka.CodeDeploy.ListDeployments" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "ListDeploymentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deployments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListDeploymentsResponse Source #

Create a value of ListDeploymentsResponse 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:deployments:ListDeploymentsResponse', listDeploymentsResponse_deployments - A list of deployment IDs.

ListDeployments, listDeploymentsResponse_nextToken - If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.

$sel:httpStatus:ListDeploymentsResponse', listDeploymentsResponse_httpStatus - The response's http status code.

Response Lenses

listDeploymentsResponse_nextToken :: Lens' ListDeploymentsResponse (Maybe Text) Source #

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.