public void AddRoleToDBClusterMarshallTest() { var operation = service_model.FindOperation("AddRoleToDBCluster"); var request = InstantiateClassGenerator.Execute<AddRoleToDBClusterRequest>(); var marshaller = new AddRoleToDBClusterRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Associates an Identity and Access Management (IAM) role from an Aurora DB cluster. /// For more information, see <a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Authorizing.AWSServices.html">Authorizing /// Amazon Aurora to Access Other AWS Services On Your Behalf</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddRoleToDBCluster service method.</param> /// /// <returns>The response from the AddRoleToDBCluster service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBClusterNotFoundException"> /// <i>DBClusterIdentifier</i> does not refer to an existing DB cluster. /// </exception> /// <exception cref="Amazon.RDS.Model.DBClusterRoleAlreadyExistsException"> /// The specified IAM role Amazon Resource Name (ARN) is already associated with the specified /// DB cluster. /// </exception> /// <exception cref="Amazon.RDS.Model.DBClusterRoleQuotaExceededException"> /// You have exceeded the maximum number of IAM roles that can be associated with the /// specified DB cluster. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBClusterStateException"> /// The DB cluster is not in a valid state. /// </exception> public AddRoleToDBClusterResponse AddRoleToDBCluster(AddRoleToDBClusterRequest request) { var marshaller = new AddRoleToDBClusterRequestMarshaller(); var unmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance; return Invoke<AddRoleToDBClusterRequest,AddRoleToDBClusterResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AddRoleToDBCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddRoleToDBCluster operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AddRoleToDBClusterResponse> AddRoleToDBClusterAsync(AddRoleToDBClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddRoleToDBClusterRequestMarshaller(); var unmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance; return InvokeAsync<AddRoleToDBClusterRequest,AddRoleToDBClusterResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the AddRoleToDBCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddRoleToDBCluster operation on AmazonRDSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddRoleToDBCluster /// operation.</returns> public IAsyncResult BeginAddRoleToDBCluster(AddRoleToDBClusterRequest request, AsyncCallback callback, object state) { var marshaller = new AddRoleToDBClusterRequestMarshaller(); var unmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance; return BeginInvoke<AddRoleToDBClusterRequest>(request, marshaller, unmarshaller, callback, state); }