AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Adds a specific service association to an AgentSpace. It overwrites the existing association of the same service. Returns 201 Created on success.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to AssociateServiceAsync.

Namespace: Amazon.DevOpsAgent
Assembly: AWSSDK.DevOpsAgent.dll
Version: 3.x.y.z

Syntax

C#
public virtual AssociateServiceResponse AssociateService(
         AssociateServiceRequest request
)

Parameters

request
Type: Amazon.DevOpsAgent.Model.AssociateServiceRequest

Container for the necessary parameters to execute the AssociateService service method.

Return Value


The response from the AssociateService service method, as returned by DevOpsAgent.

Exceptions

ExceptionCondition
AccessDeniedException Access to the requested resource is denied due to insufficient permissions.
ConflictException The request conflicts with the current state of the resource.
ContentSizeExceededException This exception is thrown when the content size exceeds the allowed limit.
InternalServerException This exception is thrown when an unexpected error occurs in the processing of a request.
InvalidParameterException One or more parameters provided in the request are invalid.
ResourceNotFoundException The requested resource could not be found.
ServiceQuotaExceededException The request would exceed the service quota limit.
ThrottlingException The request was throttled due to too many requests. Please slow down and try again.
ValidationException The input fails to satisfy the constraints specified by the service.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also