public void CreateDBClusterSnapshotMarshallTest() { var operation = service_model.FindOperation("CreateDBClusterSnapshot"); var request = InstantiateClassGenerator.Execute <CreateDBClusterSnapshotRequest>(); var marshaller = new CreateDBClusterSnapshotRequestMarshaller(); 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 = CreateDBClusterSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as CreateDBClusterSnapshotResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateDBClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDBClusterSnapshot 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<CreateDBClusterSnapshotResponse> CreateDBClusterSnapshotAsync(CreateDBClusterSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateDBClusterSnapshotRequestMarshaller(); var unmarshaller = CreateDBClusterSnapshotResponseUnmarshaller.Instance; return InvokeAsync<CreateDBClusterSnapshotRequest,CreateDBClusterSnapshotResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see <a /// href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html">Aurora /// on Amazon RDS</a> in the <i>Amazon RDS User Guide.</i> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateDBClusterSnapshot service method.</param> /// /// <returns>The response from the CreateDBClusterSnapshot 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.DBClusterSnapshotAlreadyExistsException"> /// User already has a DB cluster snapshot with the given identifier. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBClusterStateException"> /// The supplied value is not a valid DB cluster state. /// </exception> /// <exception cref="Amazon.RDS.Model.SnapshotQuotaExceededException"> /// Request would result in user exceeding the allowed number of DB snapshots. /// </exception> public CreateDBClusterSnapshotResponse CreateDBClusterSnapshot(CreateDBClusterSnapshotRequest request) { var marshaller = new CreateDBClusterSnapshotRequestMarshaller(); var unmarshaller = CreateDBClusterSnapshotResponseUnmarshaller.Instance; return Invoke<CreateDBClusterSnapshotRequest,CreateDBClusterSnapshotResponse>(request, marshaller, unmarshaller); }
public void CreateDBClusterSnapshotMarshallTest() { var operation = service_model.FindOperation("CreateDBClusterSnapshot"); var request = InstantiateClassGenerator.Execute<CreateDBClusterSnapshotRequest>(); var marshaller = new CreateDBClusterSnapshotRequestMarshaller(); 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 = CreateDBClusterSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as CreateDBClusterSnapshotResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateDBClusterSnapshot operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateDBClusterSnapshot 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 EndCreateDBClusterSnapshot /// operation.</returns> public IAsyncResult BeginCreateDBClusterSnapshot(CreateDBClusterSnapshotRequest request, AsyncCallback callback, object state) { var marshaller = new CreateDBClusterSnapshotRequestMarshaller(); var unmarshaller = CreateDBClusterSnapshotResponseUnmarshaller.Instance; return BeginInvoke<CreateDBClusterSnapshotRequest>(request, marshaller, unmarshaller, callback, state); }