/// <summary> /// Initiates the asynchronous execution of the ModifyClusterIamRoles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyClusterIamRoles 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<ModifyClusterIamRolesResponse> ModifyClusterIamRolesAsync(ModifyClusterIamRolesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyClusterIamRolesRequestMarshaller(); var unmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance; return InvokeAsync<ModifyClusterIamRolesRequest,ModifyClusterIamRolesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ModifyClusterIamRolesMarshallTest() { var operation = service_model.FindOperation("ModifyClusterIamRoles"); var request = InstantiateClassGenerator.Execute<ModifyClusterIamRolesRequest>(); var marshaller = new ModifyClusterIamRolesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ModifyClusterIamRolesResponseUnmarshaller.Instance.Unmarshall(context) as ModifyClusterIamRolesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Modifies the list of AWS Identity and Access Management (IAM) roles that can be used /// by the cluster to access other AWS services. /// /// /// <para> /// A cluster can have up to 10 IAM roles associated at any time. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyClusterIamRoles service method.</param> /// /// <returns>The response from the ModifyClusterIamRoles service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ClusterNotFoundException"> /// The <code>ClusterIdentifier</code> parameter does not refer to an existing cluster. /// </exception> /// <exception cref="Amazon.Redshift.Model.InvalidClusterStateException"> /// The specified cluster is not in the <code>available</code> state. /// </exception> public ModifyClusterIamRolesResponse ModifyClusterIamRoles(ModifyClusterIamRolesRequest request) { var marshaller = new ModifyClusterIamRolesRequestMarshaller(); var unmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance; return Invoke<ModifyClusterIamRolesRequest,ModifyClusterIamRolesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ModifyClusterIamRoles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyClusterIamRoles operation on AmazonRedshiftClient.</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 EndModifyClusterIamRoles /// operation.</returns> public IAsyncResult BeginModifyClusterIamRoles(ModifyClusterIamRolesRequest request, AsyncCallback callback, object state) { var marshaller = new ModifyClusterIamRolesRequestMarshaller(); var unmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance; return BeginInvoke<ModifyClusterIamRolesRequest>(request, marshaller, unmarshaller, callback, state); }