/* * 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.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: /// /// /// /// Teams and team members, by calling the following: /// /// /// /// Users, by calling the following: /// /// /// 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); } /// /// Initiates the asynchronous execution of the AssociateTeamMember operation. /// /// /// Container for the necessary parameters to execute the AssociateTeamMember operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateTeamMember /// operation. /// REST API Reference for AssociateTeamMember Operation public virtual IAsyncResult BeginAssociateTeamMember(AssociateTeamMemberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateTeamMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateTeamMemberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AssociateTeamMember operation. /// /// /// The IAsyncResult returned by the call to BeginAssociateTeamMember. /// /// Returns a AssociateTeamMemberResult from CodeStar. /// REST API Reference for AssociateTeamMember Operation public virtual AssociateTeamMemberResponse EndAssociateTeamMember(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateProject operation. /// /// /// Container for the necessary parameters to execute the CreateProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateProject /// operation. /// REST API Reference for CreateProject Operation public virtual IAsyncResult BeginCreateProject(CreateProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateProject operation. /// /// /// The IAsyncResult returned by the call to BeginCreateProject. /// /// Returns a CreateProjectResult from CodeStar. /// REST API Reference for CreateProject Operation public virtual CreateProjectResponse EndCreateProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the CreateUserProfile operation. /// /// /// Container for the necessary parameters to execute the CreateUserProfile operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateUserProfile /// operation. /// REST API Reference for CreateUserProfile Operation public virtual IAsyncResult BeginCreateUserProfile(CreateUserProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateUserProfile operation. /// /// /// The IAsyncResult returned by the call to BeginCreateUserProfile. /// /// Returns a CreateUserProfileResult from CodeStar. /// REST API Reference for CreateUserProfile Operation public virtual CreateUserProfileResponse EndCreateUserProfile(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteProject operation. /// /// /// Container for the necessary parameters to execute the DeleteProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteProject /// operation. /// REST API Reference for DeleteProject Operation public virtual IAsyncResult BeginDeleteProject(DeleteProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteProject operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteProject. /// /// Returns a DeleteProjectResult from CodeStar. /// REST API Reference for DeleteProject Operation public virtual DeleteProjectResponse EndDeleteProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DeleteUserProfile operation. /// /// /// Container for the necessary parameters to execute the DeleteUserProfile operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteUserProfile /// operation. /// REST API Reference for DeleteUserProfile Operation public virtual IAsyncResult BeginDeleteUserProfile(DeleteUserProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteUserProfile operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteUserProfile. /// /// Returns a DeleteUserProfileResult from CodeStar. /// REST API Reference for DeleteUserProfile Operation public virtual DeleteUserProfileResponse EndDeleteUserProfile(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeProject operation. /// /// /// Container for the necessary parameters to execute the DescribeProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProject /// operation. /// REST API Reference for DescribeProject Operation public virtual IAsyncResult BeginDescribeProject(DescribeProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeProject operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeProject. /// /// Returns a DescribeProjectResult from CodeStar. /// REST API Reference for DescribeProject Operation public virtual DescribeProjectResponse EndDescribeProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DescribeUserProfile operation. /// /// /// Container for the necessary parameters to execute the DescribeUserProfile operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeUserProfile /// operation. /// REST API Reference for DescribeUserProfile Operation public virtual IAsyncResult BeginDescribeUserProfile(DescribeUserProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUserProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeUserProfile operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeUserProfile. /// /// Returns a DescribeUserProfileResult from CodeStar. /// REST API Reference for DescribeUserProfile Operation public virtual DescribeUserProfileResponse EndDescribeUserProfile(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the DisassociateTeamMember operation. /// /// /// Container for the necessary parameters to execute the DisassociateTeamMember operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateTeamMember /// operation. /// REST API Reference for DisassociateTeamMember Operation public virtual IAsyncResult BeginDisassociateTeamMember(DisassociateTeamMemberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateTeamMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateTeamMemberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DisassociateTeamMember operation. /// /// /// The IAsyncResult returned by the call to BeginDisassociateTeamMember. /// /// Returns a DisassociateTeamMemberResult from CodeStar. /// REST API Reference for DisassociateTeamMember Operation public virtual DisassociateTeamMemberResponse EndDisassociateTeamMember(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListProjects operation. /// /// /// Container for the necessary parameters to execute the ListProjects operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProjects /// operation. /// REST API Reference for ListProjects Operation public virtual IAsyncResult BeginListProjects(ListProjectsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListProjects operation. /// /// /// The IAsyncResult returned by the call to BeginListProjects. /// /// Returns a ListProjectsResult from CodeStar. /// REST API Reference for ListProjects Operation public virtual ListProjectsResponse EndListProjects(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListResources operation. /// /// /// Container for the necessary parameters to execute the ListResources operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListResources /// operation. /// REST API Reference for ListResources Operation public virtual IAsyncResult BeginListResources(ListResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListResources operation. /// /// /// The IAsyncResult returned by the call to BeginListResources. /// /// Returns a ListResourcesResult from CodeStar. /// REST API Reference for ListResources Operation public virtual ListResourcesResponse EndListResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListTagsForProject operation. /// /// /// Container for the necessary parameters to execute the ListTagsForProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForProject /// operation. /// REST API Reference for ListTagsForProject Operation public virtual IAsyncResult BeginListTagsForProject(ListTagsForProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForProject operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForProject. /// /// Returns a ListTagsForProjectResult from CodeStar. /// REST API Reference for ListTagsForProject Operation public virtual ListTagsForProjectResponse EndListTagsForProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListTeamMembers operation. /// /// /// Container for the necessary parameters to execute the ListTeamMembers operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTeamMembers /// operation. /// REST API Reference for ListTeamMembers Operation public virtual IAsyncResult BeginListTeamMembers(ListTeamMembersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTeamMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTeamMembersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTeamMembers operation. /// /// /// The IAsyncResult returned by the call to BeginListTeamMembers. /// /// Returns a ListTeamMembersResult from CodeStar. /// REST API Reference for ListTeamMembers Operation public virtual ListTeamMembersResponse EndListTeamMembers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the ListUserProfiles operation. /// /// /// Container for the necessary parameters to execute the ListUserProfiles operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListUserProfiles /// operation. /// REST API Reference for ListUserProfiles Operation public virtual IAsyncResult BeginListUserProfiles(ListUserProfilesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListUserProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListUserProfilesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListUserProfiles operation. /// /// /// The IAsyncResult returned by the call to BeginListUserProfiles. /// /// Returns a ListUserProfilesResult from CodeStar. /// REST API Reference for ListUserProfiles Operation public virtual ListUserProfilesResponse EndListUserProfiles(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the TagProject operation. /// /// /// Container for the necessary parameters to execute the TagProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagProject /// operation. /// REST API Reference for TagProject Operation public virtual IAsyncResult BeginTagProject(TagProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = TagProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagProject operation. /// /// /// The IAsyncResult returned by the call to BeginTagProject. /// /// Returns a TagProjectResult from CodeStar. /// REST API Reference for TagProject Operation public virtual TagProjectResponse EndTagProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UntagProject operation. /// /// /// Container for the necessary parameters to execute the UntagProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagProject /// operation. /// REST API Reference for UntagProject Operation public virtual IAsyncResult BeginUntagProject(UntagProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagProject operation. /// /// /// The IAsyncResult returned by the call to BeginUntagProject. /// /// Returns a UntagProjectResult from CodeStar. /// REST API Reference for UntagProject Operation public virtual UntagProjectResponse EndUntagProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateProject operation. /// /// /// Container for the necessary parameters to execute the UpdateProject operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateProject /// operation. /// REST API Reference for UpdateProject Operation public virtual IAsyncResult BeginUpdateProject(UpdateProjectRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateProject operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateProject. /// /// Returns a UpdateProjectResult from CodeStar. /// REST API Reference for UpdateProject Operation public virtual UpdateProjectResponse EndUpdateProject(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateTeamMember operation. /// /// /// Container for the necessary parameters to execute the UpdateTeamMember operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTeamMember /// operation. /// REST API Reference for UpdateTeamMember Operation public virtual IAsyncResult BeginUpdateTeamMember(UpdateTeamMemberRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTeamMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTeamMemberResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateTeamMember operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateTeamMember. /// /// Returns a UpdateTeamMemberResult from CodeStar. /// REST API Reference for UpdateTeamMember Operation public virtual UpdateTeamMemberResponse EndUpdateTeamMember(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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); } /// /// Initiates the asynchronous execution of the UpdateUserProfile operation. /// /// /// Container for the necessary parameters to execute the UpdateUserProfile operation on AmazonCodeStarClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateUserProfile /// operation. /// REST API Reference for UpdateUserProfile Operation public virtual IAsyncResult BeginUpdateUserProfile(UpdateUserProfileRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserProfileRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserProfileResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateUserProfile operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateUserProfile. /// /// Returns a UpdateUserProfileResult from CodeStar. /// REST API Reference for UpdateUserProfile Operation public virtual UpdateUserProfileResponse EndUpdateUserProfile(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }