2017-10-06 00:08:03 +03:00
|
|
|
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
|
|
|
|
|
|
|
package codestar
|
|
|
|
|
|
|
|
import (
|
2019-03-11 19:18:55 +03:00
|
|
|
"fmt"
|
2017-10-06 00:08:03 +03:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/aws/aws-sdk-go/aws"
|
|
|
|
"github.com/aws/aws-sdk-go/aws/awsutil"
|
|
|
|
"github.com/aws/aws-sdk-go/aws/request"
|
2019-03-11 19:18:55 +03:00
|
|
|
"github.com/aws/aws-sdk-go/private/protocol"
|
|
|
|
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
2017-10-06 00:08:03 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
const opAssociateTeamMember = "AssociateTeamMember"
|
|
|
|
|
|
|
|
// AssociateTeamMemberRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the AssociateTeamMember operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See AssociateTeamMember for more information on using the AssociateTeamMember
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the AssociateTeamMemberRequest method.
|
|
|
|
// req, resp := client.AssociateTeamMemberRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMember
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) AssociateTeamMemberRequest(input *AssociateTeamMemberInput) (req *request.Request, output *AssociateTeamMemberOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opAssociateTeamMember,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &AssociateTeamMemberInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &AssociateTeamMemberOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssociateTeamMember API operation for AWS CodeStar.
|
|
|
|
//
|
|
|
|
// Adds an IAM user to the team for an AWS CodeStar project.
|
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|
|
|
// API operation AssociateTeamMember for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
|
|
|
// * ErrCodeLimitExceededException "LimitExceededException"
|
|
|
|
// A resource limit has been exceeded.
|
|
|
|
//
|
|
|
|
// * ErrCodeProjectNotFoundException "ProjectNotFoundException"
|
|
|
|
// The specified AWS CodeStar project was not found.
|
|
|
|
//
|
|
|
|
// * ErrCodeTeamMemberAlreadyAssociatedException "TeamMemberAlreadyAssociatedException"
|
|
|
|
// The team member is already associated with a role in this project.
|
|
|
|
//
|
|
|
|
// * ErrCodeValidationException "ValidationException"
|
|
|
|
// The specified input is either not valid, or it could not be validated.
|
|
|
|
//
|
|
|
|
// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
|
|
|
|
// The service role is not valid.
|
|
|
|
//
|
|
|
|
// * ErrCodeProjectConfigurationException "ProjectConfigurationException"
|
|
|
|
// Project configuration information is required but not specified.
|
|
|
|
//
|
|
|
|
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
|
|
|
// Another modification is being made. That modification must complete before
|
|
|
|
// you can make your change.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMember
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) AssociateTeamMember(input *AssociateTeamMemberInput) (*AssociateTeamMemberOutput, error) {
|
|
|
|
req, out := c.AssociateTeamMemberRequest(input)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssociateTeamMemberWithContext is the same as AssociateTeamMember with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See AssociateTeamMember 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 *CodeStar) AssociateTeamMemberWithContext(ctx aws.Context, input *AssociateTeamMemberInput, opts ...request.Option) (*AssociateTeamMemberOutput, error) {
|
|
|
|
req, out := c.AssociateTeamMemberRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
const opCreateProject = "CreateProject"
|
|
|
|
|
|
|
|
// CreateProjectRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the CreateProject operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See CreateProject for more information on using the CreateProject
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the CreateProjectRequest method.
|
|
|
|
// req, resp := client.CreateProjectRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateProject
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opCreateProject,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &CreateProjectInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &CreateProjectOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateProject API operation for AWS CodeStar.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// Creates a project, including project resources. This action creates a project
|
|
|
|
// based on a submitted project request. A set of source code files and a toolchain
|
|
|
|
// template file can be included with the project request. If these are not
|
|
|
|
// provided, an empty project is created.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|
|
|
// API operation CreateProject for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
|
|
|
// * ErrCodeProjectAlreadyExistsException "ProjectAlreadyExistsException"
|
|
|
|
// An AWS CodeStar project with the same ID already exists in this region for
|
|
|
|
// the AWS account. AWS CodeStar project IDs must be unique within a region
|
|
|
|
// for the AWS account.
|
|
|
|
//
|
|
|
|
// * ErrCodeLimitExceededException "LimitExceededException"
|
|
|
|
// A resource limit has been exceeded.
|
|
|
|
//
|
|
|
|
// * ErrCodeValidationException "ValidationException"
|
|
|
|
// The specified input is either not valid, or it could not be validated.
|
|
|
|
//
|
|
|
|
// * ErrCodeProjectCreationFailedException "ProjectCreationFailedException"
|
|
|
|
// The project creation request was valid, but a nonspecific exception or error
|
|
|
|
// occurred during project creation. The project could not be created in AWS
|
|
|
|
// CodeStar.
|
|
|
|
//
|
|
|
|
// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
|
|
|
|
// The service role is not valid.
|
|
|
|
//
|
|
|
|
// * ErrCodeProjectConfigurationException "ProjectConfigurationException"
|
|
|
|
// Project configuration information is required but not specified.
|
|
|
|
//
|
|
|
|
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
|
|
|
// Another modification is being made. That modification must complete before
|
|
|
|
// you can make your change.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateProject
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) {
|
|
|
|
req, out := c.CreateProjectRequest(input)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateProjectWithContext is the same as CreateProject with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See CreateProject 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 *CodeStar) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error) {
|
|
|
|
req, out := c.CreateProjectRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
const opCreateUserProfile = "CreateUserProfile"
|
|
|
|
|
|
|
|
// CreateUserProfileRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the CreateUserProfile operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See CreateUserProfile for more information on using the CreateUserProfile
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the CreateUserProfileRequest method.
|
|
|
|
// req, resp := client.CreateUserProfileRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opCreateUserProfile,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &CreateUserProfileInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &CreateUserProfileOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateUserProfile API operation for AWS CodeStar.
|
|
|
|
//
|
|
|
|
// Creates a profile for a user that includes user preferences, such as the
|
|
|
|
// display name and email address assocciated with the user, in AWS CodeStar.
|
|
|
|
// The user profile is not project-specific. Information in the user profile
|
|
|
|
// is displayed wherever the user's information appears to other users in AWS
|
|
|
|
// CodeStar.
|
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|
|
|
// API operation CreateUserProfile for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
|
|
|
// * ErrCodeUserProfileAlreadyExistsException "UserProfileAlreadyExistsException"
|
|
|
|
// A user profile with that name already exists in this region for the AWS account.
|
|
|
|
// AWS CodeStar user profile names must be unique within a region for the AWS
|
|
|
|
// account.
|
|
|
|
//
|
|
|
|
// * ErrCodeValidationException "ValidationException"
|
|
|
|
// The specified input is either not valid, or it could not be validated.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) {
|
|
|
|
req, out := c.CreateUserProfileRequest(input)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateUserProfileWithContext is the same as CreateUserProfile with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See CreateUserProfile 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 *CodeStar) CreateUserProfileWithContext(ctx aws.Context, input *CreateUserProfileInput, opts ...request.Option) (*CreateUserProfileOutput, error) {
|
|
|
|
req, out := c.CreateUserProfileRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
const opDeleteProject = "DeleteProject"
|
|
|
|
|
|
|
|
// DeleteProjectRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the DeleteProject operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See DeleteProject for more information on using the DeleteProject
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the DeleteProjectRequest method.
|
|
|
|
// req, resp := client.DeleteProjectRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opDeleteProject,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &DeleteProjectInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &DeleteProjectOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteProject API operation for AWS CodeStar.
|
|
|
|
//
|
|
|
|
// Deletes a project, including project resources. Does not delete users associated
|
|
|
|
// with the project, but does delete the IAM roles that allowed access to the
|
|
|
|
// project.
|
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|
|
|
// API operation DeleteProject for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
|
|
|
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
|
|
|
// Another modification is being made. That modification must complete before
|
|
|
|
// you can make your change.
|
|
|
|
//
|
|
|
|
// * ErrCodeValidationException "ValidationException"
|
|
|
|
// The specified input is either not valid, or it could not be validated.
|
|
|
|
//
|
|
|
|
// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
|
|
|
|
// The service role is not valid.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) {
|
|
|
|
req, out := c.DeleteProjectRequest(input)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteProjectWithContext is the same as DeleteProject with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See DeleteProject 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 *CodeStar) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error) {
|
|
|
|
req, out := c.DeleteProjectRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
const opDeleteUserProfile = "DeleteUserProfile"
|
|
|
|
|
|
|
|
// DeleteUserProfileRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the DeleteUserProfile operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See DeleteUserProfile for more information on using the DeleteUserProfile
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the DeleteUserProfileRequest method.
|
|
|
|
// req, resp := client.DeleteUserProfileRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opDeleteUserProfile,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &DeleteUserProfileInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &DeleteUserProfileOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteUserProfile API operation for AWS CodeStar.
|
|
|
|
//
|
|
|
|
// Deletes a user profile in AWS CodeStar, including all personal preference
|
|
|
|
// data associated with that profile, such as display name and email address.
|
|
|
|
// It does not delete the history of that user, for example the history of commits
|
|
|
|
// made by that user.
|
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|
|
|
// API operation DeleteUserProfile for usage and error information.
|
|
|
|
//
|
|
|
|
// Returned Error Codes:
|
|
|
|
// * ErrCodeValidationException "ValidationException"
|
|
|
|
// The specified input is either not valid, or it could not be validated.
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) {
|
|
|
|
req, out := c.DeleteUserProfileRequest(input)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteUserProfileWithContext is the same as DeleteUserProfile with the addition of
|
|
|
|
// the ability to pass a context and additional request options.
|
|
|
|
//
|
|
|
|
// See DeleteUserProfile 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 *CodeStar) DeleteUserProfileWithContext(ctx aws.Context, input *DeleteUserProfileInput, opts ...request.Option) (*DeleteUserProfileOutput, error) {
|
|
|
|
req, out := c.DeleteUserProfileRequest(input)
|
|
|
|
req.SetContext(ctx)
|
|
|
|
req.ApplyOptions(opts...)
|
|
|
|
return out, req.Send()
|
|
|
|
}
|
|
|
|
|
|
|
|
const opDescribeProject = "DescribeProject"
|
|
|
|
|
|
|
|
// DescribeProjectRequest generates a "aws/request.Request" representing the
|
|
|
|
// client's request for the DescribeProject operation. The "output" return
|
2019-03-11 19:18:55 +03:00
|
|
|
// value will be populated with the request's response once the request completes
|
|
|
|
// successfully.
|
2017-10-06 00:08:03 +03:00
|
|
|
//
|
|
|
|
// Use "Send" method on the returned Request to send the API call to the service.
|
|
|
|
// the "output" return value is not valid until after Send returns without error.
|
|
|
|
//
|
|
|
|
// See DescribeProject for more information on using the DescribeProject
|
|
|
|
// API call, and error handling.
|
|
|
|
//
|
|
|
|
// This method is useful when you want to inject custom logic or configuration
|
|
|
|
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// // Example sending a request using the DescribeProjectRequest method.
|
|
|
|
// req, resp := client.DescribeProjectRequest(params)
|
|
|
|
//
|
|
|
|
// err := req.Send()
|
|
|
|
// if err == nil { // resp is now filled
|
|
|
|
// fmt.Println(resp)
|
|
|
|
// }
|
|
|
|
//
|
2019-03-11 19:18:55 +03:00
|
|
|
// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeProject
|
2017-10-06 00:08:03 +03:00
|
|
|
func (c *CodeStar) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput) {
|
|
|
|
op := &request.Operation{
|
|
|
|
Name: opDescribeProject,
|
|
|
|
HTTPMethod: "POST",
|
|
|
|
HTTPPath: "/",
|
|
|
|
}
|
|
|
|
|
|
|
|
if input == nil {
|
|
|
|
input = &DescribeProjectInput{}
|
|
|
|
}
|
|
|
|
|
|
|
|
output = &DescribeProjectOutput{}
|
|
|
|
req = c.newRequest(op, input, output)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DescribeProject API operation for AWS CodeStar.
|
|
|
|
//
|
|
|
|
// Describes a project and its resources.
|
|
|
|
//
|
|
|
|
// 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 CodeStar's
|
|