/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the codestar-2017-04-19.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.CodeStar.Model;
using Amazon.CodeStar.Model.Internal.MarshallTransformations;
using Amazon.CodeStar.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CodeStar
{
///
/// Implementation for accessing CodeStar
///
/// AWS CodeStar
///
/// This is the API reference for AWS CodeStar. This reference provides descriptions of
/// the operations and data types for the AWS CodeStar API along with usage examples.
///
///
///
/// You can use the AWS CodeStar API to work with:
///
///
///
/// Projects and their resources, by calling the following:
///
/// -
///
///
DeleteProject
, which deletes a project.
///
/// -
///
///
DescribeProject
, which lists the attributes of a project.
///
/// -
///
///
ListProjects
, which lists all projects associated with your AWS account.
///
/// -
///
///
ListResources
, which lists the resources associated with a project.
///
/// -
///
///
ListTagsForProject
, which lists the tags associated with a project.
///
/// -
///
///
TagProject
, which adds tags to a project.
///
/// -
///
///
UntagProject
, which removes tags from a project.
///
/// -
///
///
UpdateProject
, which updates the attributes of a project.
///
///
///
/// Teams and team members, by calling the following:
///
/// -
///
///
AssociateTeamMember
, which adds an IAM user to the team for a project.
///
/// -
///
///
DisassociateTeamMember
, which removes an IAM user from the team for
/// a project.
///
/// -
///
///
ListTeamMembers
, which lists all the IAM users in the team for a project,
/// including their roles and attributes.
///
/// -
///
///
UpdateTeamMember
, which updates a team member's attributes in a project.
///
///
///
/// Users, by calling the following:
///
/// -
///
///
CreateUserProfile
, which creates a user profile that contains data associated
/// with the user across all projects.
///
/// -
///
///
DeleteUserProfile
, which deletes all user profile information across
/// all projects.
///
/// -
///
///
DescribeUserProfile
, which describes the profile of a user.
///
/// -
///
///
ListUserProfiles
, which lists all user profiles.
///
/// -
///
///
UpdateUserProfile
, which updates the profile for a user.
///
///
///
public partial class AmazonCodeStarClient : AmazonServiceClient, IAmazonCodeStar
{
private static IServiceMetadata serviceMetadata = new AmazonCodeStarMetadata();
#region Constructors
///
/// Constructs AmazonCodeStarClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonCodeStarClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeStarConfig()) { }
///
/// Constructs AmazonCodeStarClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonCodeStarClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeStarConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonCodeStarClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonCodeStarClient Configuration Object
public AmazonCodeStarClient(AmazonCodeStarConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonCodeStarClient with AWS Credentials
///
/// AWS Credentials
public AmazonCodeStarClient(AWSCredentials credentials)
: this(credentials, new AmazonCodeStarConfig())
{
}
///
/// Constructs AmazonCodeStarClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonCodeStarClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCodeStarConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonCodeStarClient with AWS Credentials and an
/// AmazonCodeStarClient Configuration object.
///
/// AWS Credentials
/// The AmazonCodeStarClient Configuration Object
public AmazonCodeStarClient(AWSCredentials credentials, AmazonCodeStarConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeStarConfig())
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeStarConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCodeStarClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonCodeStarClient Configuration Object
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeStarConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeStarConfig())
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeStarConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonCodeStarClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCodeStarClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonCodeStarClient Configuration Object
public AmazonCodeStarClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeStarConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonCodeStarEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateTeamMember
///
/// Adds an IAM user to the team for an AWS CodeStar project.
///
/// Container for the necessary parameters to execute the AssociateTeamMember service method.
///
/// The response from the AssociateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The team member is already associated with a role in this project.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for AssociateTeamMember Operation
public virtual AssociateTeamMemberResponse AssociateTeamMember(AssociateTeamMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateTeamMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds an IAM user to the team for an AWS CodeStar project.
///
/// Container for the necessary parameters to execute the AssociateTeamMember service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The team member is already associated with a role in this project.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for AssociateTeamMember Operation
public virtual Task AssociateTeamMemberAsync(AssociateTeamMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateTeamMemberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateProject
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateProject service method.
///
/// The response from the CreateProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// 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.
///
///
/// Project configuration information is required but not specified.
///
///
/// 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.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for CreateProject Operation
public virtual CreateProjectResponse CreateProject(CreateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// 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.
///
///
/// Project configuration information is required but not specified.
///
///
/// 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.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for CreateProject Operation
public virtual Task CreateProjectAsync(CreateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateUserProfile
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateUserProfile service method.
///
/// The response from the CreateUserProfile service method, as returned by CodeStar.
///
/// 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.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for CreateUserProfile Operation
public virtual CreateUserProfileResponse CreateUserProfile(CreateUserProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateUserProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the CreateUserProfile service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateUserProfile service method, as returned by CodeStar.
///
/// 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.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for CreateUserProfile Operation
public virtual Task CreateUserProfileAsync(CreateUserProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateUserProfileResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteProject
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteProject service method.
///
/// The response from the DeleteProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DeleteProject Operation
public virtual DeleteProjectResponse DeleteProject(DeleteProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DeleteProject Operation
public virtual Task DeleteProjectAsync(DeleteProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteUserProfile
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteUserProfile service method.
///
/// The response from the DeleteUserProfile service method, as returned by CodeStar.
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DeleteUserProfile Operation
public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the DeleteUserProfile service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteUserProfile service method, as returned by CodeStar.
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DeleteUserProfile Operation
public virtual Task DeleteUserProfileAsync(DeleteUserProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeProject
///
/// Describes a project and its resources.
///
/// Container for the necessary parameters to execute the DescribeProject service method.
///
/// The response from the DescribeProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DescribeProject Operation
public virtual DescribeProjectResponse DescribeProject(DescribeProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes a project and its resources.
///
/// Container for the necessary parameters to execute the DescribeProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DescribeProject Operation
public virtual Task DescribeProjectAsync(DescribeProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeUserProfile
///
/// Describes a user in AWS CodeStar and the user attributes across all projects.
///
/// Container for the necessary parameters to execute the DescribeUserProfile service method.
///
/// The response from the DescribeUserProfile service method, as returned by CodeStar.
///
/// The user profile was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DescribeUserProfile Operation
public virtual DescribeUserProfileResponse DescribeUserProfile(DescribeUserProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes a user in AWS CodeStar and the user attributes across all projects.
///
/// Container for the necessary parameters to execute the DescribeUserProfile service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeUserProfile service method, as returned by CodeStar.
///
/// The user profile was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DescribeUserProfile Operation
public virtual Task DescribeUserProfileAsync(DescribeUserProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateTeamMember
///
/// Removes a user from a project. Removing a user from a project also removes the IAM
/// policies from that user that allowed access to the project and its resources. Disassociating
/// a team member does not remove that user's profile from AWS CodeStar. It does not remove
/// the user from IAM.
///
/// Container for the necessary parameters to execute the DisassociateTeamMember service method.
///
/// The response from the DisassociateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DisassociateTeamMember Operation
public virtual DisassociateTeamMemberResponse DisassociateTeamMember(DisassociateTeamMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateTeamMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes a user from a project. Removing a user from a project also removes the IAM
/// policies from that user that allowed access to the project and its resources. Disassociating
/// a team member does not remove that user's profile from AWS CodeStar. It does not remove
/// the user from IAM.
///
/// Container for the necessary parameters to execute the DisassociateTeamMember service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for DisassociateTeamMember Operation
public virtual Task DisassociateTeamMemberAsync(DisassociateTeamMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateTeamMemberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListProjects
///
/// Lists all projects in AWS CodeStar associated with your AWS account.
///
/// Container for the necessary parameters to execute the ListProjects service method.
///
/// The response from the ListProjects service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListProjects Operation
public virtual ListProjectsResponse ListProjects(ListProjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all projects in AWS CodeStar associated with your AWS account.
///
/// Container for the necessary parameters to execute the ListProjects service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListProjects service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListProjects Operation
public virtual Task ListProjectsAsync(ListProjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListResources
///
/// Lists resources associated with a project in AWS CodeStar.
///
/// Container for the necessary parameters to execute the ListResources service method.
///
/// The response from the ListResources service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListResources Operation
public virtual ListResourcesResponse ListResources(ListResourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists resources associated with a project in AWS CodeStar.
///
/// Container for the necessary parameters to execute the ListResources service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListResources service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListResources Operation
public virtual Task ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForProject
///
/// Gets the tags for a project.
///
/// Container for the necessary parameters to execute the ListTagsForProject service method.
///
/// The response from the ListTagsForProject service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListTagsForProject Operation
public virtual ListTagsForProjectResponse ListTagsForProject(ListTagsForProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the tags for a project.
///
/// Container for the necessary parameters to execute the ListTagsForProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForProject service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListTagsForProject Operation
public virtual Task ListTagsForProjectAsync(ListTagsForProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTeamMembers
///
/// Lists all team members associated with a project.
///
/// Container for the necessary parameters to execute the ListTeamMembers service method.
///
/// The response from the ListTeamMembers service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListTeamMembers Operation
public virtual ListTeamMembersResponse ListTeamMembers(ListTeamMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTeamMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTeamMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all team members associated with a project.
///
/// Container for the necessary parameters to execute the ListTeamMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTeamMembers service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListTeamMembers Operation
public virtual Task ListTeamMembersAsync(ListTeamMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTeamMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTeamMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListUserProfiles
///
/// Lists all the user profiles configured for your AWS account in AWS CodeStar.
///
/// Container for the necessary parameters to execute the ListUserProfiles service method.
///
/// The response from the ListUserProfiles service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListUserProfiles Operation
public virtual ListUserProfilesResponse ListUserProfiles(ListUserProfilesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListUserProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListUserProfilesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all the user profiles configured for your AWS account in AWS CodeStar.
///
/// Container for the necessary parameters to execute the ListUserProfiles service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListUserProfiles service method, as returned by CodeStar.
///
/// The next token is not valid.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for ListUserProfiles Operation
public virtual Task ListUserProfilesAsync(ListUserProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListUserProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListUserProfilesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagProject
///
/// Adds tags to a project.
///
/// Container for the necessary parameters to execute the TagProject service method.
///
/// The response from the TagProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// A resource limit has been exceeded.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for TagProject Operation
public virtual TagProjectResponse TagProject(TagProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds tags to a project.
///
/// Container for the necessary parameters to execute the TagProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// A resource limit has been exceeded.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for TagProject Operation
public virtual Task TagProjectAsync(TagProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagProject
///
/// Removes tags from a project.
///
/// Container for the necessary parameters to execute the UntagProject service method.
///
/// The response from the UntagProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// A resource limit has been exceeded.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UntagProject Operation
public virtual UntagProjectResponse UntagProject(UntagProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes tags from a project.
///
/// Container for the necessary parameters to execute the UntagProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagProject service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// A resource limit has been exceeded.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UntagProject Operation
public virtual Task UntagProjectAsync(UntagProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateProject
///
/// Updates a project in AWS CodeStar.
///
/// Container for the necessary parameters to execute the UpdateProject service method.
///
/// The response from the UpdateProject service method, as returned by CodeStar.
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateProject Operation
public virtual UpdateProjectResponse UpdateProject(UpdateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a project in AWS CodeStar.
///
/// Container for the necessary parameters to execute the UpdateProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateProject service method, as returned by CodeStar.
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateProject Operation
public virtual Task UpdateProjectAsync(UpdateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateTeamMember
///
/// Updates a team member's attributes in an AWS CodeStar project. For example, you can
/// change a team member's role in the project, or change whether they have remote access
/// to project resources.
///
/// Container for the necessary parameters to execute the UpdateTeamMember service method.
///
/// The response from the UpdateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified team member was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateTeamMember Operation
public virtual UpdateTeamMemberResponse UpdateTeamMember(UpdateTeamMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateTeamMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a team member's attributes in an AWS CodeStar project. For example, you can
/// change a team member's role in the project, or change whether they have remote access
/// to project resources.
///
/// Container for the necessary parameters to execute the UpdateTeamMember service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateTeamMember service method, as returned by CodeStar.
///
/// Another modification is being made. That modification must complete before you can
/// make your change.
///
///
/// The service role is not valid.
///
///
/// A resource limit has been exceeded.
///
///
/// Project configuration information is required but not specified.
///
///
/// The specified AWS CodeStar project was not found.
///
///
/// The specified team member was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateTeamMember Operation
public virtual Task UpdateTeamMemberAsync(UpdateTeamMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateTeamMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateTeamMemberResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateUserProfile
///
/// Updates a user's profile 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.
///
/// Container for the necessary parameters to execute the UpdateUserProfile service method.
///
/// The response from the UpdateUserProfile service method, as returned by CodeStar.
///
/// The user profile was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateUserProfile Operation
public virtual UpdateUserProfileResponse UpdateUserProfile(UpdateUserProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateUserProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a user's profile 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.
///
/// Container for the necessary parameters to execute the UpdateUserProfile service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateUserProfile service method, as returned by CodeStar.
///
/// The user profile was not found.
///
///
/// The specified input is either not valid, or it could not be validated.
///
/// REST API Reference for UpdateUserProfile Operation
public virtual Task UpdateUserProfileAsync(UpdateUserProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateUserProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateUserProfileResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}