vendor: update all dependencies
This commit is contained in:
parent
0b6fba34a3
commit
eb87cf6f12
2008 changed files with 352633 additions and 1004750 deletions
277
vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go
generated
vendored
277
vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go
generated
vendored
|
@ -1249,6 +1249,93 @@ func (c *CodePipeline) ListActionTypesWithContext(ctx aws.Context, input *ListAc
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opListPipelineExecutions = "ListPipelineExecutions"
|
||||
|
||||
// ListPipelineExecutionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPipelineExecutions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See ListPipelineExecutions for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPipelineExecutions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPipelineExecutionsRequest method.
|
||||
// req, resp := client.ListPipelineExecutionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
|
||||
func (c *CodePipeline) ListPipelineExecutionsRequest(input *ListPipelineExecutionsInput) (req *request.Request, output *ListPipelineExecutionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListPipelineExecutions,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &ListPipelineExecutionsInput{}
|
||||
}
|
||||
|
||||
output = &ListPipelineExecutionsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// ListPipelineExecutions API operation for AWS CodePipeline.
|
||||
//
|
||||
// Gets a summary of the most recent executions for a pipeline.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS CodePipeline's
|
||||
// API operation ListPipelineExecutions for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// The validation was specified in an invalid format.
|
||||
//
|
||||
// * ErrCodePipelineNotFoundException "PipelineNotFoundException"
|
||||
// The specified pipeline was specified in an invalid format or cannot be found.
|
||||
//
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The next token was specified in an invalid format. Make sure that the next
|
||||
// token you provided is the token returned by a previous call.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
|
||||
func (c *CodePipeline) ListPipelineExecutions(input *ListPipelineExecutionsInput) (*ListPipelineExecutionsOutput, error) {
|
||||
req, out := c.ListPipelineExecutionsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// ListPipelineExecutionsWithContext is the same as ListPipelineExecutions with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See ListPipelineExecutions for details on how to use this API operation.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *CodePipeline) ListPipelineExecutionsWithContext(ctx aws.Context, input *ListPipelineExecutionsInput, opts ...request.Option) (*ListPipelineExecutionsOutput, error) {
|
||||
req, out := c.ListPipelineExecutionsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opListPipelines = "ListPipelines"
|
||||
|
||||
// ListPipelinesRequest generates a "aws/request.Request" representing the
|
||||
|
@ -3624,9 +3711,7 @@ func (s *ArtifactRevision) SetRevisionUrl(v string) *ArtifactRevision {
|
|||
return s
|
||||
}
|
||||
|
||||
// The Amazon S3 location where artifacts are stored for the pipeline. If this
|
||||
// Amazon S3 bucket is created manually, it must meet the requirements for AWS
|
||||
// CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
|
||||
// The Amazon S3 bucket where artifacts are stored for the pipeline.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ArtifactStore
|
||||
type ArtifactStore struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -3636,8 +3721,11 @@ type ArtifactStore struct {
|
|||
// key for Amazon S3 is used.
|
||||
EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
|
||||
|
||||
// The location for storing the artifacts for a pipeline, such as an S3 bucket
|
||||
// or folder.
|
||||
// The Amazon S3 bucket used for storing the artifacts for a pipeline. You can
|
||||
// specify the name of an S3 bucket but not a folder within the bucket. A folder
|
||||
// to contain the pipeline artifacts is created for you based on the name of
|
||||
// the pipeline. You can use any Amazon S3 bucket in the same AWS Region as
|
||||
// the pipeline to store your pipeline artifacts.
|
||||
//
|
||||
// Location is a required field
|
||||
Location *string `locationName:"location" min:"3" type:"string" required:"true"`
|
||||
|
@ -3778,12 +3866,12 @@ type CreateCustomActionTypeInput struct {
|
|||
// see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html).
|
||||
ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
|
||||
|
||||
// Returns information about the details of an artifact.
|
||||
// The details of the input artifact for the action, such as its commit ID.
|
||||
//
|
||||
// InputArtifactDetails is a required field
|
||||
InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
|
||||
|
||||
// Returns information about the details of an artifact.
|
||||
// The details of the output artifact of the action, such as its commit ID.
|
||||
//
|
||||
// OutputArtifactDetails is a required field
|
||||
OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
|
||||
|
@ -5400,6 +5488,111 @@ func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput {
|
|||
return s
|
||||
}
|
||||
|
||||
// Represents the input of a list pipeline executions action.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsInput
|
||||
type ListPipelineExecutionsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The maximum number of results to return in a single call. To retrieve the
|
||||
// remaining results, make another call with the returned nextToken value. The
|
||||
// available pipeline execution history is limited to the most recent 12 months,
|
||||
// based on pipeline execution start times. Default value is 100.
|
||||
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
|
||||
|
||||
// The token that was returned from the previous list pipeline executions call,
|
||||
// which can be used to return the next set of pipeline executions in the list.
|
||||
NextToken *string `locationName:"nextToken" type:"string"`
|
||||
|
||||
// The name of the pipeline for which you want to get execution summary information.
|
||||
//
|
||||
// PipelineName is a required field
|
||||
PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ListPipelineExecutionsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ListPipelineExecutionsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *ListPipelineExecutionsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "ListPipelineExecutionsInput"}
|
||||
if s.MaxResults != nil && *s.MaxResults < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
|
||||
}
|
||||
if s.PipelineName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("PipelineName"))
|
||||
}
|
||||
if s.PipelineName != nil && len(*s.PipelineName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetMaxResults sets the MaxResults field's value.
|
||||
func (s *ListPipelineExecutionsInput) SetMaxResults(v int64) *ListPipelineExecutionsInput {
|
||||
s.MaxResults = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *ListPipelineExecutionsInput) SetNextToken(v string) *ListPipelineExecutionsInput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPipelineName sets the PipelineName field's value.
|
||||
func (s *ListPipelineExecutionsInput) SetPipelineName(v string) *ListPipelineExecutionsInput {
|
||||
s.PipelineName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Represents the output of a list pipeline executions action.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsOutput
|
||||
type ListPipelineExecutionsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A token that can be used in the next list pipeline executions call to return
|
||||
// the next set of pipeline executions. To view all items in the list, continue
|
||||
// to call this operation with each subsequent token until no more nextToken
|
||||
// values are returned.
|
||||
NextToken *string `locationName:"nextToken" type:"string"`
|
||||
|
||||
// A list of executions in the history of a pipeline.
|
||||
PipelineExecutionSummaries []*PipelineExecutionSummary `locationName:"pipelineExecutionSummaries" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ListPipelineExecutionsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ListPipelineExecutionsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *ListPipelineExecutionsOutput) SetNextToken(v string) *ListPipelineExecutionsOutput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPipelineExecutionSummaries sets the PipelineExecutionSummaries field's value.
|
||||
func (s *ListPipelineExecutionsOutput) SetPipelineExecutionSummaries(v []*PipelineExecutionSummary) *ListPipelineExecutionsOutput {
|
||||
s.PipelineExecutionSummaries = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Represents the input of a list pipelines action.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesInput
|
||||
type ListPipelinesInput struct {
|
||||
|
@ -5563,9 +5756,8 @@ func (s *PipelineContext) SetStage(v *StageContext) *PipelineContext {
|
|||
type PipelineDeclaration struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The Amazon S3 location where artifacts are stored for the pipeline. If this
|
||||
// Amazon S3 bucket is created manually, it must meet the requirements for AWS
|
||||
// CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
|
||||
// Represents the context of an action within the stage of a pipeline to a job
|
||||
// worker.
|
||||
//
|
||||
// ArtifactStore is a required field
|
||||
ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
|
||||
|
@ -5702,7 +5894,7 @@ type PipelineExecution struct {
|
|||
// to be completed, a newer pipeline execution caught up and continued through
|
||||
// the pipeline instead.
|
||||
//
|
||||
// * Failed: The pipeline did not complete successfully.
|
||||
// * Failed: The pipeline execution did not complete successfully.
|
||||
Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
|
||||
}
|
||||
|
||||
|
@ -5746,6 +5938,69 @@ func (s *PipelineExecution) SetStatus(v string) *PipelineExecution {
|
|||
return s
|
||||
}
|
||||
|
||||
// Summary information about a pipeline execution.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecutionSummary
|
||||
type PipelineExecutionSummary struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The date and time of the last change to the pipeline execution, in timestamp
|
||||
// format.
|
||||
LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"`
|
||||
|
||||
// The ID of the pipeline execution.
|
||||
PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
|
||||
|
||||
// The date and time when the pipeline execution began, in timestamp format.
|
||||
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
|
||||
|
||||
// The status of the pipeline execution.
|
||||
//
|
||||
// * InProgress: The pipeline execution is currently running.
|
||||
//
|
||||
// * Succeeded: The pipeline execution completed successfully.
|
||||
//
|
||||
// * Superseded: While this pipeline execution was waiting for the next stage
|
||||
// to be completed, a newer pipeline execution caught up and continued through
|
||||
// the pipeline instead.
|
||||
//
|
||||
// * Failed: The pipeline execution did not complete successfully.
|
||||
Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PipelineExecutionSummary) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PipelineExecutionSummary) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetLastUpdateTime sets the LastUpdateTime field's value.
|
||||
func (s *PipelineExecutionSummary) SetLastUpdateTime(v time.Time) *PipelineExecutionSummary {
|
||||
s.LastUpdateTime = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPipelineExecutionId sets the PipelineExecutionId field's value.
|
||||
func (s *PipelineExecutionSummary) SetPipelineExecutionId(v string) *PipelineExecutionSummary {
|
||||
s.PipelineExecutionId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStartTime sets the StartTime field's value.
|
||||
func (s *PipelineExecutionSummary) SetStartTime(v time.Time) *PipelineExecutionSummary {
|
||||
s.StartTime = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStatus sets the Status field's value.
|
||||
func (s *PipelineExecutionSummary) SetStatus(v string) *PipelineExecutionSummary {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Returns a summary of a pipeline.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineSummary
|
||||
type PipelineSummary struct {
|
||||
|
|
4
vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go
generated
vendored
|
@ -116,6 +116,10 @@ type CodePipelineAPI interface {
|
|||
ListActionTypesWithContext(aws.Context, *codepipeline.ListActionTypesInput, ...request.Option) (*codepipeline.ListActionTypesOutput, error)
|
||||
ListActionTypesRequest(*codepipeline.ListActionTypesInput) (*request.Request, *codepipeline.ListActionTypesOutput)
|
||||
|
||||
ListPipelineExecutions(*codepipeline.ListPipelineExecutionsInput) (*codepipeline.ListPipelineExecutionsOutput, error)
|
||||
ListPipelineExecutionsWithContext(aws.Context, *codepipeline.ListPipelineExecutionsInput, ...request.Option) (*codepipeline.ListPipelineExecutionsOutput, error)
|
||||
ListPipelineExecutionsRequest(*codepipeline.ListPipelineExecutionsInput) (*request.Request, *codepipeline.ListPipelineExecutionsOutput)
|
||||
|
||||
ListPipelines(*codepipeline.ListPipelinesInput) (*codepipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesWithContext(aws.Context, *codepipeline.ListPipelinesInput, ...request.Option) (*codepipeline.ListPipelinesOutput, error)
|
||||
ListPipelinesRequest(*codepipeline.ListPipelinesInput) (*request.Request, *codepipeline.ListPipelinesOutput)
|
||||
|
|
783
vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go
generated
vendored
783
vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go
generated
vendored
|
@ -1,783 +0,0 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codepipeline_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/codepipeline"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCodePipeline_AcknowledgeJob() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.AcknowledgeJobInput{
|
||||
JobId: aws.String("JobId"), // Required
|
||||
Nonce: aws.String("Nonce"), // Required
|
||||
}
|
||||
resp, err := svc.AcknowledgeJob(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_AcknowledgeThirdPartyJob() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.AcknowledgeThirdPartyJobInput{
|
||||
ClientToken: aws.String("ClientToken"), // Required
|
||||
JobId: aws.String("ThirdPartyJobId"), // Required
|
||||
Nonce: aws.String("Nonce"), // Required
|
||||
}
|
||||
resp, err := svc.AcknowledgeThirdPartyJob(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_CreateCustomActionType() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.CreateCustomActionTypeInput{
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
InputArtifactDetails: &codepipeline.ArtifactDetails{ // Required
|
||||
MaximumCount: aws.Int64(1), // Required
|
||||
MinimumCount: aws.Int64(1), // Required
|
||||
},
|
||||
OutputArtifactDetails: &codepipeline.ArtifactDetails{ // Required
|
||||
MaximumCount: aws.Int64(1), // Required
|
||||
MinimumCount: aws.Int64(1), // Required
|
||||
},
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
ConfigurationProperties: []*codepipeline.ActionConfigurationProperty{
|
||||
{ // Required
|
||||
Key: aws.Bool(true), // Required
|
||||
Name: aws.String("ActionConfigurationKey"), // Required
|
||||
Required: aws.Bool(true), // Required
|
||||
Secret: aws.Bool(true), // Required
|
||||
Description: aws.String("Description"),
|
||||
Queryable: aws.Bool(true),
|
||||
Type: aws.String("ActionConfigurationPropertyType"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Settings: &codepipeline.ActionTypeSettings{
|
||||
EntityUrlTemplate: aws.String("UrlTemplate"),
|
||||
ExecutionUrlTemplate: aws.String("UrlTemplate"),
|
||||
RevisionUrlTemplate: aws.String("UrlTemplate"),
|
||||
ThirdPartyConfigurationUrl: aws.String("Url"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateCustomActionType(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_CreatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.CreatePipelineInput{
|
||||
Pipeline: &codepipeline.PipelineDeclaration{ // Required
|
||||
ArtifactStore: &codepipeline.ArtifactStore{ // Required
|
||||
Location: aws.String("ArtifactStoreLocation"), // Required
|
||||
Type: aws.String("ArtifactStoreType"), // Required
|
||||
EncryptionKey: &codepipeline.EncryptionKey{
|
||||
Id: aws.String("EncryptionKeyId"), // Required
|
||||
Type: aws.String("EncryptionKeyType"), // Required
|
||||
},
|
||||
},
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
RoleArn: aws.String("RoleArn"), // Required
|
||||
Stages: []*codepipeline.StageDeclaration{ // Required
|
||||
{ // Required
|
||||
Actions: []*codepipeline.ActionDeclaration{ // Required
|
||||
{ // Required
|
||||
ActionTypeId: &codepipeline.ActionTypeId{ // Required
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
Owner: aws.String("ActionOwner"), // Required
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
},
|
||||
Name: aws.String("ActionName"), // Required
|
||||
Configuration: map[string]*string{
|
||||
"Key": aws.String("ActionConfigurationValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
InputArtifacts: []*codepipeline.InputArtifact{
|
||||
{ // Required
|
||||
Name: aws.String("ArtifactName"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
OutputArtifacts: []*codepipeline.OutputArtifact{
|
||||
{ // Required
|
||||
Name: aws.String("ArtifactName"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
RoleArn: aws.String("RoleArn"),
|
||||
RunOrder: aws.Int64(1),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Name: aws.String("StageName"), // Required
|
||||
Blockers: []*codepipeline.BlockerDeclaration{
|
||||
{ // Required
|
||||
Name: aws.String("BlockerName"), // Required
|
||||
Type: aws.String("BlockerType"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Version: aws.Int64(1),
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_DeleteCustomActionType() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.DeleteCustomActionTypeInput{
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteCustomActionType(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_DeletePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.DeletePipelineInput{
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
}
|
||||
resp, err := svc.DeletePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_DisableStageTransition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.DisableStageTransitionInput{
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
Reason: aws.String("DisabledReason"), // Required
|
||||
StageName: aws.String("StageName"), // Required
|
||||
TransitionType: aws.String("StageTransitionType"), // Required
|
||||
}
|
||||
resp, err := svc.DisableStageTransition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_EnableStageTransition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.EnableStageTransitionInput{
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
StageName: aws.String("StageName"), // Required
|
||||
TransitionType: aws.String("StageTransitionType"), // Required
|
||||
}
|
||||
resp, err := svc.EnableStageTransition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_GetJobDetails() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.GetJobDetailsInput{
|
||||
JobId: aws.String("JobId"), // Required
|
||||
}
|
||||
resp, err := svc.GetJobDetails(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_GetPipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.GetPipelineInput{
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
Version: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.GetPipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_GetPipelineExecution() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.GetPipelineExecutionInput{
|
||||
PipelineExecutionId: aws.String("PipelineExecutionId"), // Required
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
}
|
||||
resp, err := svc.GetPipelineExecution(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_GetPipelineState() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.GetPipelineStateInput{
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
}
|
||||
resp, err := svc.GetPipelineState(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_GetThirdPartyJobDetails() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.GetThirdPartyJobDetailsInput{
|
||||
ClientToken: aws.String("ClientToken"), // Required
|
||||
JobId: aws.String("ThirdPartyJobId"), // Required
|
||||
}
|
||||
resp, err := svc.GetThirdPartyJobDetails(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_ListActionTypes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.ListActionTypesInput{
|
||||
ActionOwnerFilter: aws.String("ActionOwner"),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListActionTypes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_ListPipelines() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.ListPipelinesInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListPipelines(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PollForJobs() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PollForJobsInput{
|
||||
ActionTypeId: &codepipeline.ActionTypeId{ // Required
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
Owner: aws.String("ActionOwner"), // Required
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
},
|
||||
MaxBatchSize: aws.Int64(1),
|
||||
QueryParam: map[string]*string{
|
||||
"Key": aws.String("ActionConfigurationQueryableValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.PollForJobs(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PollForThirdPartyJobs() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PollForThirdPartyJobsInput{
|
||||
ActionTypeId: &codepipeline.ActionTypeId{ // Required
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
Owner: aws.String("ActionOwner"), // Required
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
},
|
||||
MaxBatchSize: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.PollForThirdPartyJobs(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutActionRevision() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutActionRevisionInput{
|
||||
ActionName: aws.String("ActionName"), // Required
|
||||
ActionRevision: &codepipeline.ActionRevision{ // Required
|
||||
Created: aws.Time(time.Now()), // Required
|
||||
RevisionChangeId: aws.String("RevisionChangeIdentifier"), // Required
|
||||
RevisionId: aws.String("Revision"), // Required
|
||||
},
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
StageName: aws.String("StageName"), // Required
|
||||
}
|
||||
resp, err := svc.PutActionRevision(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutApprovalResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutApprovalResultInput{
|
||||
ActionName: aws.String("ActionName"), // Required
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
Result: &codepipeline.ApprovalResult{ // Required
|
||||
Status: aws.String("ApprovalStatus"), // Required
|
||||
Summary: aws.String("ApprovalSummary"), // Required
|
||||
},
|
||||
StageName: aws.String("StageName"), // Required
|
||||
Token: aws.String("ApprovalToken"), // Required
|
||||
}
|
||||
resp, err := svc.PutApprovalResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutJobFailureResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutJobFailureResultInput{
|
||||
FailureDetails: &codepipeline.FailureDetails{ // Required
|
||||
Message: aws.String("Message"), // Required
|
||||
Type: aws.String("FailureType"), // Required
|
||||
ExternalExecutionId: aws.String("ExecutionId"),
|
||||
},
|
||||
JobId: aws.String("JobId"), // Required
|
||||
}
|
||||
resp, err := svc.PutJobFailureResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutJobSuccessResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutJobSuccessResultInput{
|
||||
JobId: aws.String("JobId"), // Required
|
||||
ContinuationToken: aws.String("ContinuationToken"),
|
||||
CurrentRevision: &codepipeline.CurrentRevision{
|
||||
ChangeIdentifier: aws.String("RevisionChangeIdentifier"), // Required
|
||||
Revision: aws.String("Revision"), // Required
|
||||
Created: aws.Time(time.Now()),
|
||||
RevisionSummary: aws.String("RevisionSummary"),
|
||||
},
|
||||
ExecutionDetails: &codepipeline.ExecutionDetails{
|
||||
ExternalExecutionId: aws.String("ExecutionId"),
|
||||
PercentComplete: aws.Int64(1),
|
||||
Summary: aws.String("ExecutionSummary"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutJobSuccessResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutThirdPartyJobFailureResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutThirdPartyJobFailureResultInput{
|
||||
ClientToken: aws.String("ClientToken"), // Required
|
||||
FailureDetails: &codepipeline.FailureDetails{ // Required
|
||||
Message: aws.String("Message"), // Required
|
||||
Type: aws.String("FailureType"), // Required
|
||||
ExternalExecutionId: aws.String("ExecutionId"),
|
||||
},
|
||||
JobId: aws.String("ThirdPartyJobId"), // Required
|
||||
}
|
||||
resp, err := svc.PutThirdPartyJobFailureResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_PutThirdPartyJobSuccessResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.PutThirdPartyJobSuccessResultInput{
|
||||
ClientToken: aws.String("ClientToken"), // Required
|
||||
JobId: aws.String("ThirdPartyJobId"), // Required
|
||||
ContinuationToken: aws.String("ContinuationToken"),
|
||||
CurrentRevision: &codepipeline.CurrentRevision{
|
||||
ChangeIdentifier: aws.String("RevisionChangeIdentifier"), // Required
|
||||
Revision: aws.String("Revision"), // Required
|
||||
Created: aws.Time(time.Now()),
|
||||
RevisionSummary: aws.String("RevisionSummary"),
|
||||
},
|
||||
ExecutionDetails: &codepipeline.ExecutionDetails{
|
||||
ExternalExecutionId: aws.String("ExecutionId"),
|
||||
PercentComplete: aws.Int64(1),
|
||||
Summary: aws.String("ExecutionSummary"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutThirdPartyJobSuccessResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_RetryStageExecution() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.RetryStageExecutionInput{
|
||||
PipelineExecutionId: aws.String("PipelineExecutionId"), // Required
|
||||
PipelineName: aws.String("PipelineName"), // Required
|
||||
RetryMode: aws.String("StageRetryMode"), // Required
|
||||
StageName: aws.String("StageName"), // Required
|
||||
}
|
||||
resp, err := svc.RetryStageExecution(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_StartPipelineExecution() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.StartPipelineExecutionInput{
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
}
|
||||
resp, err := svc.StartPipelineExecution(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCodePipeline_UpdatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := codepipeline.New(sess)
|
||||
|
||||
params := &codepipeline.UpdatePipelineInput{
|
||||
Pipeline: &codepipeline.PipelineDeclaration{ // Required
|
||||
ArtifactStore: &codepipeline.ArtifactStore{ // Required
|
||||
Location: aws.String("ArtifactStoreLocation"), // Required
|
||||
Type: aws.String("ArtifactStoreType"), // Required
|
||||
EncryptionKey: &codepipeline.EncryptionKey{
|
||||
Id: aws.String("EncryptionKeyId"), // Required
|
||||
Type: aws.String("EncryptionKeyType"), // Required
|
||||
},
|
||||
},
|
||||
Name: aws.String("PipelineName"), // Required
|
||||
RoleArn: aws.String("RoleArn"), // Required
|
||||
Stages: []*codepipeline.StageDeclaration{ // Required
|
||||
{ // Required
|
||||
Actions: []*codepipeline.ActionDeclaration{ // Required
|
||||
{ // Required
|
||||
ActionTypeId: &codepipeline.ActionTypeId{ // Required
|
||||
Category: aws.String("ActionCategory"), // Required
|
||||
Owner: aws.String("ActionOwner"), // Required
|
||||
Provider: aws.String("ActionProvider"), // Required
|
||||
Version: aws.String("Version"), // Required
|
||||
},
|
||||
Name: aws.String("ActionName"), // Required
|
||||
Configuration: map[string]*string{
|
||||
"Key": aws.String("ActionConfigurationValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
InputArtifacts: []*codepipeline.InputArtifact{
|
||||
{ // Required
|
||||
Name: aws.String("ArtifactName"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
OutputArtifacts: []*codepipeline.OutputArtifact{
|
||||
{ // Required
|
||||
Name: aws.String("ArtifactName"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
RoleArn: aws.String("RoleArn"),
|
||||
RunOrder: aws.Int64(1),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Name: aws.String("StageName"), // Required
|
||||
Blockers: []*codepipeline.BlockerDeclaration{
|
||||
{ // Required
|
||||
Name: aws.String("BlockerName"), // Required
|
||||
Type: aws.String("BlockerType"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Version: aws.Int64(1),
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue