libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline
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.CodePipeline.PollForJobs

Description

Returns information about any jobs for AWS CodePipeline to act on. PollForJobs is valid only for action types with "Custom" in the owner field. If the action type contains "AWS" or "ThirdParty" in the owner field, the PollForJobs action returns an error.

When this API is called, AWS CodePipeline returns temporary credentials for the S3 bucket used to store artifacts for the pipeline, if the action requires access to that S3 bucket for input or output artifacts. This API also returns any secret values defined for the action.

Synopsis

Creating a Request

data PollForJobs Source #

Represents the input of a PollForJobs action.

See: newPollForJobs smart constructor.

Constructors

PollForJobs' 

Fields

  • maxBatchSize :: Maybe Natural

    The maximum number of jobs to return in a poll for jobs call.

  • queryParam :: Maybe (HashMap Text Text)

    A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned.

  • actionTypeId :: ActionTypeId

    Represents information about an action type.

Instances

Instances details
Eq PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Read PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Show PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Generic PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Associated Types

type Rep PollForJobs :: Type -> Type #

NFData PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Methods

rnf :: PollForJobs -> () #

Hashable PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

ToJSON PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

AWSRequest PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Associated Types

type AWSResponse PollForJobs #

ToHeaders PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Methods

toHeaders :: PollForJobs -> [Header] #

ToPath PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

ToQuery PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

type Rep PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

type Rep PollForJobs = D1 ('MetaData "PollForJobs" "Amazonka.CodePipeline.PollForJobs" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PollForJobs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxBatchSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "queryParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "actionTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionTypeId))))
type AWSResponse PollForJobs Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

newPollForJobs Source #

Create a value of PollForJobs 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:maxBatchSize:PollForJobs', pollForJobs_maxBatchSize - The maximum number of jobs to return in a poll for jobs call.

$sel:queryParam:PollForJobs', pollForJobs_queryParam - A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned.

$sel:actionTypeId:PollForJobs', pollForJobs_actionTypeId - Represents information about an action type.

Request Lenses

pollForJobs_maxBatchSize :: Lens' PollForJobs (Maybe Natural) Source #

The maximum number of jobs to return in a poll for jobs call.

pollForJobs_queryParam :: Lens' PollForJobs (Maybe (HashMap Text Text)) Source #

A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned.

pollForJobs_actionTypeId :: Lens' PollForJobs ActionTypeId Source #

Represents information about an action type.

Destructuring the Response

data PollForJobsResponse Source #

Represents the output of a PollForJobs action.

See: newPollForJobsResponse smart constructor.

Constructors

PollForJobsResponse' 

Fields

Instances

Instances details
Eq PollForJobsResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Show PollForJobsResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Generic PollForJobsResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Associated Types

type Rep PollForJobsResponse :: Type -> Type #

NFData PollForJobsResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

Methods

rnf :: PollForJobsResponse -> () #

type Rep PollForJobsResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PollForJobs

type Rep PollForJobsResponse = D1 ('MetaData "PollForJobsResponse" "Amazonka.CodePipeline.PollForJobs" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PollForJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Job])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPollForJobsResponse Source #

Create a value of PollForJobsResponse 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:jobs:PollForJobsResponse', pollForJobsResponse_jobs - Information about the jobs to take action on.

$sel:httpStatus:PollForJobsResponse', pollForJobsResponse_httpStatus - The response's http status code.

Response Lenses

pollForJobsResponse_jobs :: Lens' PollForJobsResponse (Maybe [Job]) Source #

Information about the jobs to take action on.