Struct aws_sdk_codepipeline::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS CodePipeline
Client for invoking operations on AWS CodePipeline. Each operation on AWS CodePipeline is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_codepipeline::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_codepipeline::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_codepipeline::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn acknowledge_job(&self) -> AcknowledgeJob
pub fn acknowledge_job(&self) -> AcknowledgeJob
Constructs a fluent builder for the AcknowledgeJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID of the job for which you want to confirm receipt.
nonce(impl Into<String>)
/set_nonce(Option<String>)
:A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the
PollForJobs
request that returned this job.
- On success, responds with
AcknowledgeJobOutput
with field(s):status(Option<JobStatus>)
:Whether the job worker has received the specified job.
- On failure, responds with
SdkError<AcknowledgeJobError>
sourcepub fn acknowledge_third_party_job(&self) -> AcknowledgeThirdPartyJob
pub fn acknowledge_third_party_job(&self) -> AcknowledgeThirdPartyJob
Constructs a fluent builder for the AcknowledgeThirdPartyJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID of the job.
nonce(impl Into<String>)
/set_nonce(Option<String>)
:A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response to a
GetThirdPartyJobDetails
request.client_token(impl Into<String>)
/set_client_token(Option<String>)
:The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
- On success, responds with
AcknowledgeThirdPartyJobOutput
with field(s):status(Option<JobStatus>)
:The status information for the third party job, if any.
- On failure, responds with
SdkError<AcknowledgeThirdPartyJobError>
sourcepub fn create_custom_action_type(&self) -> CreateCustomActionType
pub fn create_custom_action_type(&self) -> CreateCustomActionType
Constructs a fluent builder for the CreateCustomActionType
operation.
- The fluent builder is configurable:
category(ActionCategory)
/set_category(Option<ActionCategory>)
:The category of the custom action, such as a build action or a test action.
provider(impl Into<String>)
/set_provider(Option<String>)
:The provider of the service used in the custom action, such as AWS CodeDeploy.
version(impl Into<String>)
/set_version(Option<String>)
:The version identifier of the custom action.
settings(ActionTypeSettings)
/set_settings(Option<ActionTypeSettings>)
:URLs that provide users information about this custom action.
configuration_properties(Vec<ActionConfigurationProperty>)
/set_configuration_properties(Option<Vec<ActionConfigurationProperty>>)
:The configuration properties for the custom action.
You can refer to a name in the configuration properties of the custom action within the URL templates by following the format of {Config:name}, as long as the configuration property is both required and not secret. For more information, see Create a Custom Action for a Pipeline.
input_artifact_details(ArtifactDetails)
/set_input_artifact_details(Option<ArtifactDetails>)
:The details of the input artifact for the action, such as its commit ID.
output_artifact_details(ArtifactDetails)
/set_output_artifact_details(Option<ArtifactDetails>)
:The details of the output artifact of the action, such as its commit ID.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags for the custom action.
- On success, responds with
CreateCustomActionTypeOutput
with field(s):action_type(Option<ActionType>)
:Returns information about the details of an action type.
tags(Option<Vec<Tag>>)
:Specifies the tags applied to the custom action.
- On failure, responds with
SdkError<CreateCustomActionTypeError>
sourcepub fn create_pipeline(&self) -> CreatePipeline
pub fn create_pipeline(&self) -> CreatePipeline
Constructs a fluent builder for the CreatePipeline
operation.
- The fluent builder is configurable:
pipeline(PipelineDeclaration)
/set_pipeline(Option<PipelineDeclaration>)
:Represents the structure of actions and stages to be performed in the pipeline.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags for the pipeline.
- On success, responds with
CreatePipelineOutput
with field(s):pipeline(Option<PipelineDeclaration>)
:Represents the structure of actions and stages to be performed in the pipeline.
tags(Option<Vec<Tag>>)
:Specifies the tags applied to the pipeline.
- On failure, responds with
SdkError<CreatePipelineError>
sourcepub fn delete_custom_action_type(&self) -> DeleteCustomActionType
pub fn delete_custom_action_type(&self) -> DeleteCustomActionType
Constructs a fluent builder for the DeleteCustomActionType
operation.
- The fluent builder is configurable:
category(ActionCategory)
/set_category(Option<ActionCategory>)
:The category of the custom action that you want to delete, such as source or deploy.
provider(impl Into<String>)
/set_provider(Option<String>)
:The provider of the service used in the custom action, such as AWS CodeDeploy.
version(impl Into<String>)
/set_version(Option<String>)
:The version of the custom action to delete.
- On success, responds with
DeleteCustomActionTypeOutput
- On failure, responds with
SdkError<DeleteCustomActionTypeError>
sourcepub fn delete_pipeline(&self) -> DeletePipeline
pub fn delete_pipeline(&self) -> DeletePipeline
Constructs a fluent builder for the DeletePipeline
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the pipeline to be deleted.
- On success, responds with
DeletePipelineOutput
- On failure, responds with
SdkError<DeletePipelineError>
sourcepub fn delete_webhook(&self) -> DeleteWebhook
pub fn delete_webhook(&self) -> DeleteWebhook
Constructs a fluent builder for the DeleteWebhook
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the webhook you want to delete.
- On success, responds with
DeleteWebhookOutput
- On failure, responds with
SdkError<DeleteWebhookError>
sourcepub fn deregister_webhook_with_third_party(
&self
) -> DeregisterWebhookWithThirdParty
pub fn deregister_webhook_with_third_party(
&self
) -> DeregisterWebhookWithThirdParty
Constructs a fluent builder for the DeregisterWebhookWithThirdParty
operation.
- The fluent builder is configurable:
webhook_name(impl Into<String>)
/set_webhook_name(Option<String>)
:The name of the webhook you want to deregister.
- On success, responds with
DeregisterWebhookWithThirdPartyOutput
- On failure, responds with
SdkError<DeregisterWebhookWithThirdPartyError>
sourcepub fn disable_stage_transition(&self) -> DisableStageTransition
pub fn disable_stage_transition(&self) -> DisableStageTransition
Constructs a fluent builder for the DisableStageTransition
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline in which you want to disable the flow of artifacts from one stage to another.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage where you want to disable the inbound or outbound transition of artifacts.
transition_type(StageTransitionType)
/set_transition_type(Option<StageTransitionType>)
:Specifies whether artifacts are prevented from transitioning into the stage and being processed by the actions in that stage (inbound), or prevented from transitioning from the stage after they have been processed by the actions in that stage (outbound).
reason(impl Into<String>)
/set_reason(Option<String>)
:The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI.
- On success, responds with
DisableStageTransitionOutput
- On failure, responds with
SdkError<DisableStageTransitionError>
sourcepub fn enable_stage_transition(&self) -> EnableStageTransition
pub fn enable_stage_transition(&self) -> EnableStageTransition
Constructs a fluent builder for the EnableStageTransition
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline in which you want to enable the flow of artifacts from one stage to another.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage where you want to enable the transition of artifacts, either into the stage (inbound) or from that stage to the next stage (outbound).
transition_type(StageTransitionType)
/set_transition_type(Option<StageTransitionType>)
:Specifies whether artifacts are allowed to enter the stage and be processed by the actions in that stage (inbound) or whether already processed artifacts are allowed to transition to the next stage (outbound).
- On success, responds with
EnableStageTransitionOutput
- On failure, responds with
SdkError<EnableStageTransitionError>
sourcepub fn get_action_type(&self) -> GetActionType
pub fn get_action_type(&self) -> GetActionType
Constructs a fluent builder for the GetActionType
operation.
- The fluent builder is configurable:
category(ActionCategory)
/set_category(Option<ActionCategory>)
:Defines what kind of action can be taken in the stage. The following are the valid values:
-
Source
-
Build
-
Test
-
Deploy
-
Approval
-
Invoke
-
owner(impl Into<String>)
/set_owner(Option<String>)
:The creator of an action type that was created with any supported integration model. There are two valid values:
AWS
andThirdParty
.provider(impl Into<String>)
/set_provider(Option<String>)
:The provider of the action type being called. The provider name is specified when the action type is created.
version(impl Into<String>)
/set_version(Option<String>)
:A string that describes the action type version.
- On success, responds with
GetActionTypeOutput
with field(s):action_type(Option<ActionTypeDeclaration>)
:The action type information for the requested action type, such as the action type ID.
- On failure, responds with
SdkError<GetActionTypeError>
sourcepub fn get_job_details(&self) -> GetJobDetails
pub fn get_job_details(&self) -> GetJobDetails
Constructs a fluent builder for the GetJobDetails
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID for the job.
- On success, responds with
GetJobDetailsOutput
with field(s):job_details(Option<JobDetails>)
:The details of the job.
If AWSSessionCredentials is used, a long-running job can call
GetJobDetails
again to obtain new credentials.
- On failure, responds with
SdkError<GetJobDetailsError>
sourcepub fn get_pipeline(&self) -> GetPipeline
pub fn get_pipeline(&self) -> GetPipeline
Constructs a fluent builder for the GetPipeline
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the pipeline for which you want to get information. Pipeline names must be unique under an AWS user account.
version(i32)
/set_version(Option<i32>)
:The version number of the pipeline. If you do not specify a version, defaults to the current version.
- On success, responds with
GetPipelineOutput
with field(s):pipeline(Option<PipelineDeclaration>)
:Represents the structure of actions and stages to be performed in the pipeline.
metadata(Option<PipelineMetadata>)
:Represents the pipeline metadata information returned as part of the output of a
GetPipeline
action.
- On failure, responds with
SdkError<GetPipelineError>
sourcepub fn get_pipeline_execution(&self) -> GetPipelineExecution
pub fn get_pipeline_execution(&self) -> GetPipelineExecution
Constructs a fluent builder for the GetPipelineExecution
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline about which you want to get execution details.
pipeline_execution_id(impl Into<String>)
/set_pipeline_execution_id(Option<String>)
:The ID of the pipeline execution about which you want to get execution details.
- On success, responds with
GetPipelineExecutionOutput
with field(s):pipeline_execution(Option<PipelineExecution>)
:Represents information about the execution of a pipeline.
- On failure, responds with
SdkError<GetPipelineExecutionError>
sourcepub fn get_pipeline_state(&self) -> GetPipelineState
pub fn get_pipeline_state(&self) -> GetPipelineState
Constructs a fluent builder for the GetPipelineState
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the pipeline about which you want to get information.
- On success, responds with
GetPipelineStateOutput
with field(s):pipeline_name(Option<String>)
:The name of the pipeline for which you want to get the state.
pipeline_version(Option<i32>)
:The version number of the pipeline.
A newly created pipeline is always assigned a version number of
1
.stage_states(Option<Vec<StageState>>)
:A list of the pipeline stage output information, including stage name, state, most recent run details, whether the stage is disabled, and other data.
created(Option<DateTime>)
:The date and time the pipeline was created, in timestamp format.
updated(Option<DateTime>)
:The date and time the pipeline was last updated, in timestamp format.
- On failure, responds with
SdkError<GetPipelineStateError>
sourcepub fn get_third_party_job_details(&self) -> GetThirdPartyJobDetails
pub fn get_third_party_job_details(&self) -> GetThirdPartyJobDetails
Constructs a fluent builder for the GetThirdPartyJobDetails
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID used for identifying the job.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
- On success, responds with
GetThirdPartyJobDetailsOutput
with field(s):job_details(Option<ThirdPartyJobDetails>)
:The details of the job, including any protected values defined for the job.
- On failure, responds with
SdkError<GetThirdPartyJobDetailsError>
sourcepub fn list_action_executions(&self) -> ListActionExecutions
pub fn list_action_executions(&self) -> ListActionExecutions
Constructs a fluent builder for the ListActionExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline for which you want to list action execution history.
filter(ActionExecutionFilter)
/set_filter(Option<ActionExecutionFilter>)
:Input information used to filter action execution history.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Action execution history is retained for up to 12 months, based on action execution start times. Default value is 100.
Detailed execution history is available for executions run on or after February 21, 2019.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token that was returned from the previous
ListActionExecutions
call, which can be used to return the next set of action executions in the list.
- On success, responds with
ListActionExecutionsOutput
with field(s):action_execution_details(Option<Vec<ActionExecutionDetail>>)
:The details for a list of recent executions, such as action execution ID.
next_token(Option<String>)
:If the amount of returned information is significantly large, an identifier is also returned and can be used in a subsequent
ListActionExecutions
call to return the next set of action executions in the list.
- On failure, responds with
SdkError<ListActionExecutionsError>
sourcepub fn list_action_types(&self) -> ListActionTypes
pub fn list_action_types(&self) -> ListActionTypes
Constructs a fluent builder for the ListActionTypes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
action_owner_filter(ActionOwner)
/set_action_owner_filter(Option<ActionOwner>)
:Filters the list of action types to those created by a specified entity.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An identifier that was returned from the previous list action types call, which can be used to return the next set of action types in the list.
region_filter(impl Into<String>)
/set_region_filter(Option<String>)
:The Region to filter on for the list of action types.
- On success, responds with
ListActionTypesOutput
with field(s):action_types(Option<Vec<ActionType>>)
:Provides details of the action types.
next_token(Option<String>)
:If the amount of returned information is significantly large, an identifier is also returned. It can be used in a subsequent list action types call to return the next set of action types in the list.
- On failure, responds with
SdkError<ListActionTypesError>
sourcepub fn list_pipeline_executions(&self) -> ListPipelineExecutions
pub fn list_pipeline_executions(&self) -> ListPipelineExecutions
Constructs a fluent builder for the ListPipelineExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline for which you want to get execution summary information.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Pipeline history is limited to the most recent 12 months, based on pipeline execution start times. Default value is 100.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token that was returned from the previous
ListPipelineExecutions
call, which can be used to return the next set of pipeline executions in the list.
- On success, responds with
ListPipelineExecutionsOutput
with field(s):pipeline_execution_summaries(Option<Vec<PipelineExecutionSummary>>)
:A list of executions in the history of a pipeline.
next_token(Option<String>)
:A token that can be used in the next
ListPipelineExecutions
call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.
- On failure, responds with
SdkError<ListPipelineExecutionsError>
sourcepub fn list_pipelines(&self) -> ListPipelines
pub fn list_pipelines(&self) -> ListPipelines
Constructs a fluent builder for the ListPipelines
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:An identifier that was returned from the previous list pipelines call. It can be used to return the next set of pipelines in the list.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of pipelines to return in a single call. To retrieve the remaining pipelines, make another call with the returned nextToken value. The minimum value you can specify is 1. The maximum accepted value is 1000.
- On success, responds with
ListPipelinesOutput
with field(s):pipelines(Option<Vec<PipelineSummary>>)
:The list of pipelines.
next_token(Option<String>)
:If the amount of returned information is significantly large, an identifier is also returned. It can be used in a subsequent list pipelines call to return the next set of pipelines in the list.
- On failure, responds with
SdkError<ListPipelinesError>
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to get tags for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token that was returned from the previous API call, which would be used to return the next page of the list. The ListTagsforResource call lists all available tags in one call and does not use pagination.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in a single call.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<Tag>>)
:The tags for the resource.
next_token(Option<String>)
:If the amount of returned information is significantly large, an identifier is also returned and can be used in a subsequent API call to return the next page of the list. The ListTagsforResource call lists all available tags in one call and does not use pagination.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_webhooks(&self) -> ListWebhooks
pub fn list_webhooks(&self) -> ListWebhooks
Constructs a fluent builder for the ListWebhooks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token that was returned from the previous ListWebhooks call, which can be used to return the next set of webhooks in the list.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.
- On success, responds with
ListWebhooksOutput
with field(s):webhooks(Option<Vec<ListWebhookItem>>)
:The JSON detail returned for each webhook in the list output for the ListWebhooks call.
next_token(Option<String>)
:If the amount of returned information is significantly large, an identifier is also returned and can be used in a subsequent ListWebhooks call to return the next set of webhooks in the list.
- On failure, responds with
SdkError<ListWebhooksError>
sourcepub fn poll_for_jobs(&self) -> PollForJobs
pub fn poll_for_jobs(&self) -> PollForJobs
Constructs a fluent builder for the PollForJobs
operation.
- The fluent builder is configurable:
action_type_id(ActionTypeId)
/set_action_type_id(Option<ActionTypeId>)
:Represents information about an action type.
max_batch_size(i32)
/set_max_batch_size(Option<i32>)
:The maximum number of jobs to return in a poll for jobs call.
query_param(HashMap<String, String>)
/set_query_param(Option<HashMap<String, String>>)
: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.
- On success, responds with
PollForJobsOutput
with field(s):jobs(Option<Vec<Job>>)
:Information about the jobs to take action on.
- On failure, responds with
SdkError<PollForJobsError>
sourcepub fn poll_for_third_party_jobs(&self) -> PollForThirdPartyJobs
pub fn poll_for_third_party_jobs(&self) -> PollForThirdPartyJobs
Constructs a fluent builder for the PollForThirdPartyJobs
operation.
- The fluent builder is configurable:
action_type_id(ActionTypeId)
/set_action_type_id(Option<ActionTypeId>)
:Represents information about an action type.
max_batch_size(i32)
/set_max_batch_size(Option<i32>)
:The maximum number of jobs to return in a poll for jobs call.
- On success, responds with
PollForThirdPartyJobsOutput
with field(s):jobs(Option<Vec<ThirdPartyJob>>)
:Information about the jobs to take action on.
- On failure, responds with
SdkError<PollForThirdPartyJobsError>
sourcepub fn put_action_revision(&self) -> PutActionRevision
pub fn put_action_revision(&self) -> PutActionRevision
Constructs a fluent builder for the PutActionRevision
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline that starts processing the revision to the source.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage that contains the action that acts on the revision.
action_name(impl Into<String>)
/set_action_name(Option<String>)
:The name of the action that processes the revision.
action_revision(ActionRevision)
/set_action_revision(Option<ActionRevision>)
:Represents information about the version (or revision) of an action.
- On success, responds with
PutActionRevisionOutput
with field(s):new_revision(bool)
:Indicates whether the artifact revision was previously used in an execution of the specified pipeline.
pipeline_execution_id(Option<String>)
:The ID of the current workflow state of the pipeline.
- On failure, responds with
SdkError<PutActionRevisionError>
sourcepub fn put_approval_result(&self) -> PutApprovalResult
pub fn put_approval_result(&self) -> PutApprovalResult
Constructs a fluent builder for the PutApprovalResult
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline that contains the action.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the stage that contains the action.
action_name(impl Into<String>)
/set_action_name(Option<String>)
:The name of the action for which approval is requested.
result(ApprovalResult)
/set_result(Option<ApprovalResult>)
:Represents information about the result of the approval request.
token(impl Into<String>)
/set_token(Option<String>)
:The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the
GetPipelineState
action. It is used to validate that the approval request corresponding to this token is still valid.
- On success, responds with
PutApprovalResultOutput
with field(s):approved_at(Option<DateTime>)
:The timestamp showing when the approval or rejection was submitted.
- On failure, responds with
SdkError<PutApprovalResultError>
sourcepub fn put_job_failure_result(&self) -> PutJobFailureResult
pub fn put_job_failure_result(&self) -> PutJobFailureResult
Constructs a fluent builder for the PutJobFailureResult
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID of the job that failed. This is the same ID returned from
PollForJobs
.failure_details(FailureDetails)
/set_failure_details(Option<FailureDetails>)
:The details about the failure of a job.
- On success, responds with
PutJobFailureResultOutput
- On failure, responds with
SdkError<PutJobFailureResultError>
sourcepub fn put_job_success_result(&self) -> PutJobSuccessResult
pub fn put_job_success_result(&self) -> PutJobSuccessResult
Constructs a fluent builder for the PutJobSuccessResult
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The unique system-generated ID of the job that succeeded. This is the same ID returned from
PollForJobs
.current_revision(CurrentRevision)
/set_current_revision(Option<CurrentRevision>)
:The ID of the current revision of the artifact successfully worked on by the job.
continuation_token(impl Into<String>)
/set_continuation_token(Option<String>)
:A token generated by a job worker, such as an AWS CodeDeploy deployment ID, that a successful job provides to identify a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be reused to return more information about the progress of the custom action. When the action is complete, no continuation token should be supplied.
execution_details(ExecutionDetails)
/set_execution_details(Option<ExecutionDetails>)
:The execution details of the successful job, such as the actions taken by the job worker.
output_variables(HashMap<String, String>)
/set_output_variables(Option<HashMap<String, String>>)
:Key-value pairs produced as output by a job worker that can be made available to a downstream action configuration.
outputVariables
can be included only when there is no continuation token on the request.
- On success, responds with
PutJobSuccessResultOutput
- On failure, responds with
SdkError<PutJobSuccessResultError>
sourcepub fn put_third_party_job_failure_result(
&self
) -> PutThirdPartyJobFailureResult
pub fn put_third_party_job_failure_result(
&self
) -> PutThirdPartyJobFailureResult
Constructs a fluent builder for the PutThirdPartyJobFailureResult
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The ID of the job that failed. This is the same ID returned from
PollForThirdPartyJobs
.client_token(impl Into<String>)
/set_client_token(Option<String>)
:The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
failure_details(FailureDetails)
/set_failure_details(Option<FailureDetails>)
:Represents information about failure details.
- On success, responds with
PutThirdPartyJobFailureResultOutput
- On failure, responds with
SdkError<PutThirdPartyJobFailureResultError>
sourcepub fn put_third_party_job_success_result(
&self
) -> PutThirdPartyJobSuccessResult
pub fn put_third_party_job_success_result(
&self
) -> PutThirdPartyJobSuccessResult
Constructs a fluent builder for the PutThirdPartyJobSuccessResult
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The ID of the job that successfully completed. This is the same ID returned from
PollForThirdPartyJobs
.client_token(impl Into<String>)
/set_client_token(Option<String>)
:The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
current_revision(CurrentRevision)
/set_current_revision(Option<CurrentRevision>)
:Represents information about a current revision.
continuation_token(impl Into<String>)
/set_continuation_token(Option<String>)
:A token generated by a job worker, such as an AWS CodeDeploy deployment ID, that a successful job provides to identify a partner action in progress. Future jobs use this token to identify the running instance of the action. It can be reused to return more information about the progress of the partner action. When the action is complete, no continuation token should be supplied.
execution_details(ExecutionDetails)
/set_execution_details(Option<ExecutionDetails>)
:The details of the actions taken and results produced on an artifact as it passes through stages in the pipeline.
- On success, responds with
PutThirdPartyJobSuccessResultOutput
- On failure, responds with
SdkError<PutThirdPartyJobSuccessResultError>
sourcepub fn put_webhook(&self) -> PutWebhook
pub fn put_webhook(&self) -> PutWebhook
Constructs a fluent builder for the PutWebhook
operation.
- The fluent builder is configurable:
webhook(WebhookDefinition)
/set_webhook(Option<WebhookDefinition>)
:The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it’s used for later.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags for the webhook.
- On success, responds with
PutWebhookOutput
with field(s):webhook(Option<ListWebhookItem>)
:The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.
- On failure, responds with
SdkError<PutWebhookError>
sourcepub fn register_webhook_with_third_party(&self) -> RegisterWebhookWithThirdParty
pub fn register_webhook_with_third_party(&self) -> RegisterWebhookWithThirdParty
Constructs a fluent builder for the RegisterWebhookWithThirdParty
operation.
- The fluent builder is configurable:
webhook_name(impl Into<String>)
/set_webhook_name(Option<String>)
:The name of an existing webhook created with PutWebhook to register with a supported third party.
- On success, responds with
RegisterWebhookWithThirdPartyOutput
- On failure, responds with
SdkError<RegisterWebhookWithThirdPartyError>
sourcepub fn retry_stage_execution(&self) -> RetryStageExecution
pub fn retry_stage_execution(&self) -> RetryStageExecution
Constructs a fluent builder for the RetryStageExecution
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline that contains the failed stage.
stage_name(impl Into<String>)
/set_stage_name(Option<String>)
:The name of the failed stage to be retried.
pipeline_execution_id(impl Into<String>)
/set_pipeline_execution_id(Option<String>)
:The ID of the pipeline execution in the failed stage to be retried. Use the
GetPipelineState
action to retrieve the current pipelineExecutionId of the failed stageretry_mode(StageRetryMode)
/set_retry_mode(Option<StageRetryMode>)
:The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
- On success, responds with
RetryStageExecutionOutput
with field(s):pipeline_execution_id(Option<String>)
:The ID of the current workflow execution in the failed stage.
- On failure, responds with
SdkError<RetryStageExecutionError>
sourcepub fn start_pipeline_execution(&self) -> StartPipelineExecution
pub fn start_pipeline_execution(&self) -> StartPipelineExecution
Constructs a fluent builder for the StartPipelineExecution
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:The name of the pipeline to start.
client_request_token(impl Into<String>)
/set_client_request_token(Option<String>)
:The system-generated unique ID used to identify a unique execution request.
- On success, responds with
StartPipelineExecutionOutput
with field(s):pipeline_execution_id(Option<String>)
:The unique system-generated ID of the pipeline execution that was started.
- On failure, responds with
SdkError<StartPipelineExecutionError>
sourcepub fn stop_pipeline_execution(&self) -> StopPipelineExecution
pub fn stop_pipeline_execution(&self) -> StopPipelineExecution
Constructs a fluent builder for the StopPipelineExecution
operation.
- The fluent builder is configurable:
pipeline_name(impl Into<String>)
/set_pipeline_name(Option<String>)
:The name of the pipeline to stop.
pipeline_execution_id(impl Into<String>)
/set_pipeline_execution_id(Option<String>)
:The ID of the pipeline execution to be stopped in the current stage. Use the
GetPipelineState
action to retrieve the current pipelineExecutionId.abandon(bool)
/set_abandon(bool)
:Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.
This option can lead to failed or out-of-sequence tasks.
reason(impl Into<String>)
/set_reason(Option<String>)
:Use this option to enter comments, such as the reason the pipeline was stopped.
- On success, responds with
StopPipelineExecutionOutput
with field(s):pipeline_execution_id(Option<String>)
:The unique system-generated ID of the pipeline execution that was stopped.
- On failure, responds with
SdkError<StopPipelineExecutionError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource you want to add tags to.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The tags you want to modify or add to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to remove tags from.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The list of keys for the tags to be removed from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_action_type(&self) -> UpdateActionType
pub fn update_action_type(&self) -> UpdateActionType
Constructs a fluent builder for the UpdateActionType
operation.
- The fluent builder is configurable:
action_type(ActionTypeDeclaration)
/set_action_type(Option<ActionTypeDeclaration>)
:The action type definition for the action type to be updated.
- On success, responds with
UpdateActionTypeOutput
- On failure, responds with
SdkError<UpdateActionTypeError>
sourcepub fn update_pipeline(&self) -> UpdatePipeline
pub fn update_pipeline(&self) -> UpdatePipeline
Constructs a fluent builder for the UpdatePipeline
operation.
- The fluent builder is configurable:
pipeline(PipelineDeclaration)
/set_pipeline(Option<PipelineDeclaration>)
:The name of the pipeline to be updated.
- On success, responds with
UpdatePipelineOutput
with field(s):pipeline(Option<PipelineDeclaration>)
:The structure of the updated pipeline.
- On failure, responds with
SdkError<UpdatePipelineError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more