internal CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request) { var marshaller = new CreateChangeSetRequestMarshaller(); var unmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return(Invoke <CreateChangeSetRequest, CreateChangeSetResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the CreateChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet 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 <CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateChangeSetRequestMarshaller(); var unmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return(InvokeAsync <CreateChangeSetRequest, CreateChangeSetResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void CreateChangeSetMarshallTest() { var operation = service_model.FindOperation("CreateChangeSet"); var request = InstantiateClassGenerator.Execute <CreateChangeSetRequest>(); var marshaller = new CreateChangeSetRequestMarshaller(); 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 = CreateChangeSetResponseUnmarshaller.Instance.Unmarshall(context) as CreateChangeSetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void CreateChangeSetMarshallTest() { var operation = service_model.FindOperation("CreateChangeSet"); var request = InstantiateClassGenerator.Execute<CreateChangeSetRequest>(); var marshaller = new CreateChangeSetRequestMarshaller(); 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 = CreateChangeSetResponseUnmarshaller.Instance.Unmarshall(context) as CreateChangeSetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet 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<CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateChangeSetRequestMarshaller(); var unmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return InvokeAsync<CreateChangeSetRequest,CreateChangeSetResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Creates a list of changes for a stack. AWS CloudFormation generates the change set /// by comparing the template's information with the information that you submit. A change /// set can help you understand which resources AWS CloudFormation will change, and how /// it will change them, before you update your stack. Change sets allow you to check /// before making a change to avoid deleting or replacing critical resources. /// /// /// <para> /// AWS CloudFormation doesn't make any changes to the stack when you create a change /// set. To make the specified changes, you must execute the change set by using the <a>ExecuteChangeSet</a> /// action. /// </para> /// /// <para> /// After the call successfully completes, AWS CloudFormation starts creating the change /// set. To check the status of the change set, use the <a>DescribeChangeSet</a> action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet service method.</param> /// /// <returns>The response from the CreateChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// Resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that were not specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// Quota for the resource has already been reached. /// </exception> public CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request) { var marshaller = new CreateChangeSetRequestMarshaller(); var unmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return Invoke<CreateChangeSetRequest,CreateChangeSetResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet operation on AmazonCloudFormationClient.</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 EndCreateChangeSet /// operation.</returns> public IAsyncResult BeginCreateChangeSet(CreateChangeSetRequest request, AsyncCallback callback, object state) { var marshaller = new CreateChangeSetRequestMarshaller(); var unmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return BeginInvoke<CreateChangeSetRequest>(request, marshaller, unmarshaller, callback, state); }