public void ModifyIdentityIdFormatMarshallTest() { var operation = service_model.FindOperation("ModifyIdentityIdFormat"); var request = InstantiateClassGenerator.Execute<ModifyIdentityIdFormatRequest>(); var marshaller = new ModifyIdentityIdFormatRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Modifies the ID format of a resource for a specified IAM user, IAM role, or the root /// user for an account; or all IAM users, IAM roles, and the root user for an account. /// You can specify that resources should receive longer IDs (17-character IDs) when they /// are created. /// /// /// <para> /// The following resource types support longer IDs: <code>instance</code> | <code>reservation</code> /// | <code>snapshot</code> | <code>volume</code>. For more information, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html">Resource /// IDs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>. /// </para> /// /// <para> /// This setting applies to the principal specified in the request; it does not apply /// to the principal that makes the request. /// </para> /// /// <para> /// Resources created with longer IDs are visible to all IAM roles and users, regardless /// of these settings and provided that they have permission to use the relevant <code>Describe</code> /// command for the resource type. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyIdentityIdFormat service method.</param> /// /// <returns>The response from the ModifyIdentityIdFormat service method, as returned by EC2.</returns> public ModifyIdentityIdFormatResponse ModifyIdentityIdFormat(ModifyIdentityIdFormatRequest request) { var marshaller = new ModifyIdentityIdFormatRequestMarshaller(); var unmarshaller = ModifyIdentityIdFormatResponseUnmarshaller.Instance; return Invoke<ModifyIdentityIdFormatRequest,ModifyIdentityIdFormatResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ModifyIdentityIdFormat operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyIdentityIdFormat operation on AmazonEC2Client.</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 EndModifyIdentityIdFormat /// operation.</returns> public IAsyncResult BeginModifyIdentityIdFormat(ModifyIdentityIdFormatRequest request, AsyncCallback callback, object state) { var marshaller = new ModifyIdentityIdFormatRequestMarshaller(); var unmarshaller = ModifyIdentityIdFormatResponseUnmarshaller.Instance; return BeginInvoke<ModifyIdentityIdFormatRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the ModifyIdentityIdFormat operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyIdentityIdFormat 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<ModifyIdentityIdFormatResponse> ModifyIdentityIdFormatAsync(ModifyIdentityIdFormatRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyIdentityIdFormatRequestMarshaller(); var unmarshaller = ModifyIdentityIdFormatResponseUnmarshaller.Instance; return InvokeAsync<ModifyIdentityIdFormatRequest,ModifyIdentityIdFormatResponse>(request, marshaller, unmarshaller, cancellationToken); }