repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Stack Object /// </summary> public class StackUnmarshaller : IUnmarshaller<Stack, XmlUnmarshallerContext>, IUnmarshaller<Stack, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Stack Unmarshall(XmlUnmarshallerContext context) { Stack unmarshalledObject = new Stack(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Capabilities/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Capabilities.Add(item); continue; } if (context.TestExpression("ChangeSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChangeSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeletionTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DeletionTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisableRollback", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.DisableRollback = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DriftInformation", targetDepth)) { var unmarshaller = StackDriftInformationUnmarshaller.Instance; unmarshalledObject.DriftInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnableTerminationProtection", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableTerminationProtection = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotificationARNs/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.NotificationARNs.Add(item); continue; } if (context.TestExpression("Outputs/member", targetDepth)) { var unmarshaller = OutputUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Outputs.Add(item); continue; } if (context.TestExpression("Parameters/member", targetDepth)) { var unmarshaller = ParameterUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Parameters.Add(item); continue; } if (context.TestExpression("ParentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RoleARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RollbackConfiguration", targetDepth)) { var unmarshaller = RollbackConfigurationUnmarshaller.Instance; unmarshalledObject.RollbackConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RootId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RootId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags/member", targetDepth)) { var unmarshaller = TagUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Tags.Add(item); continue; } if (context.TestExpression("TimeoutInMinutes", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.TimeoutInMinutes = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Stack Unmarshall(JsonUnmarshallerContext context) { return null; } private static StackUnmarshaller _instance = new StackUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StackUnmarshaller Instance { get { return _instance; } } } }
228
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StaleRequestException operation /// </summary> public class StaleRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<StaleRequestException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StaleRequestException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public StaleRequestException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { StaleRequestException response = new StaleRequestException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static StaleRequestExceptionUnmarshaller _instance = new StaleRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StaleRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// StopStackSetOperation Request Marshaller /// </summary> public class StopStackSetOperationRequestMarshaller : IMarshaller<IRequest, StopStackSetOperationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((StopStackSetOperationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StopStackSetOperationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "StopStackSetOperation"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static StopStackSetOperationRequestMarshaller _instance = new StopStackSetOperationRequestMarshaller(); internal static StopStackSetOperationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopStackSetOperationRequestMarshaller Instance { get { return _instance; } } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StopStackSetOperation operation /// </summary> public class StopStackSetOperationResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { StopStackSetOperationResponse response = new StopStackSetOperationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("StopStackSetOperationResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, StopStackSetOperationResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOperationException")) { return InvalidOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotFoundException")) { return OperationNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static StopStackSetOperationResponseUnmarshaller _instance = new StopStackSetOperationResponseUnmarshaller(); internal static StopStackSetOperationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopStackSetOperationResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(XmlUnmarshallerContext context) { Tag unmarshalledObject = new Tag(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(JsonUnmarshallerContext context) { return null; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TemplateParameter Object /// </summary> public class TemplateParameterUnmarshaller : IUnmarshaller<TemplateParameter, XmlUnmarshallerContext>, IUnmarshaller<TemplateParameter, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TemplateParameter Unmarshall(XmlUnmarshallerContext context) { TemplateParameter unmarshalledObject = new TemplateParameter(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NoEcho", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.NoEcho = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParameterKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ParameterKey = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TemplateParameter Unmarshall(JsonUnmarshallerContext context) { return null; } private static TemplateParameterUnmarshaller _instance = new TemplateParameterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TemplateParameterUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// TestType Request Marshaller /// </summary> public class TestTypeRequestMarshaller : IMarshaller<IRequest, TestTypeRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((TestTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TestTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "TestType"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetArn()) { request.Parameters.Add("Arn", StringUtils.FromString(publicRequest.Arn)); } if(publicRequest.IsSetLogDeliveryBucket()) { request.Parameters.Add("LogDeliveryBucket", StringUtils.FromString(publicRequest.LogDeliveryBucket)); } if(publicRequest.IsSetType()) { request.Parameters.Add("Type", StringUtils.FromString(publicRequest.Type)); } if(publicRequest.IsSetTypeName()) { request.Parameters.Add("TypeName", StringUtils.FromString(publicRequest.TypeName)); } if(publicRequest.IsSetVersionId()) { request.Parameters.Add("VersionId", StringUtils.FromString(publicRequest.VersionId)); } } return request; } private static TestTypeRequestMarshaller _instance = new TestTypeRequestMarshaller(); internal static TestTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TestTypeRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TestType operation /// </summary> public class TestTypeResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { TestTypeResponse response = new TestTypeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("TestTypeResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, TestTypeResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("TypeVersionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TypeVersionArn = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CFNRegistryException")) { return CFNRegistryExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static TestTypeResponseUnmarshaller _instance = new TestTypeResponseUnmarshaller(); internal static TestTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TestTypeResponseUnmarshaller Instance { get { return _instance; } } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TokenAlreadyExistsException operation /// </summary> public class TokenAlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<TokenAlreadyExistsException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TokenAlreadyExistsException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TokenAlreadyExistsException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { TokenAlreadyExistsException response = new TokenAlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static TokenAlreadyExistsExceptionUnmarshaller _instance = new TokenAlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TokenAlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeConfigurationDetails Object /// </summary> public class TypeConfigurationDetailsUnmarshaller : IUnmarshaller<TypeConfigurationDetails, XmlUnmarshallerContext>, IUnmarshaller<TypeConfigurationDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeConfigurationDetails Unmarshall(XmlUnmarshallerContext context) { TypeConfigurationDetails unmarshalledObject = new TypeConfigurationDetails(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Alias", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Alias = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Configuration", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Configuration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsDefaultConfiguration", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsDefaultConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeName = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeConfigurationDetails Unmarshall(JsonUnmarshallerContext context) { return null; } private static TypeConfigurationDetailsUnmarshaller _instance = new TypeConfigurationDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeConfigurationDetailsUnmarshaller Instance { get { return _instance; } } } }
133
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeConfigurationIdentifier Object /// </summary> public class TypeConfigurationIdentifierUnmarshaller : IUnmarshaller<TypeConfigurationIdentifier, XmlUnmarshallerContext>, IUnmarshaller<TypeConfigurationIdentifier, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeConfigurationIdentifier Unmarshall(XmlUnmarshallerContext context) { TypeConfigurationIdentifier unmarshalledObject = new TypeConfigurationIdentifier(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeConfigurationAlias", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeConfigurationAlias = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeConfigurationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeConfigurationArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeName = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeConfigurationIdentifier Unmarshall(JsonUnmarshallerContext context) { return null; } private static TypeConfigurationIdentifierUnmarshaller _instance = new TypeConfigurationIdentifierUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeConfigurationIdentifierUnmarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeConfigurationNotFoundException operation /// </summary> public class TypeConfigurationNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<TypeConfigurationNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeConfigurationNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TypeConfigurationNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { TypeConfigurationNotFoundException response = new TypeConfigurationNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static TypeConfigurationNotFoundExceptionUnmarshaller _instance = new TypeConfigurationNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeConfigurationNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeNotFoundException operation /// </summary> public class TypeNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<TypeNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TypeNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { TypeNotFoundException response = new TypeNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static TypeNotFoundExceptionUnmarshaller _instance = new TypeNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeSummary Object /// </summary> public class TypeSummaryUnmarshaller : IUnmarshaller<TypeSummary, XmlUnmarshallerContext>, IUnmarshaller<TypeSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeSummary Unmarshall(XmlUnmarshallerContext context) { TypeSummary unmarshalledObject = new TypeSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultVersionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultVersionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsActivated", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsActivated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestPublicVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LatestPublicVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OriginalTypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OriginalTypeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicVersionNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicVersionNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublisherId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublisherId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublisherIdentity", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublisherIdentity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublisherName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublisherName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeName = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static TypeSummaryUnmarshaller _instance = new TypeSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeSummaryUnmarshaller Instance { get { return _instance; } } } }
169
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeVersionSummary Object /// </summary> public class TypeVersionSummaryUnmarshaller : IUnmarshaller<TypeVersionSummary, XmlUnmarshallerContext>, IUnmarshaller<TypeVersionSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeVersionSummary Unmarshall(XmlUnmarshallerContext context) { TypeVersionSummary unmarshalledObject = new TypeVersionSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsDefaultVersion", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsDefaultVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicVersionNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicVersionNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TimeCreated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.TimeCreated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VersionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VersionId = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeVersionSummary Unmarshall(JsonUnmarshallerContext context) { return null; } private static TypeVersionSummaryUnmarshaller _instance = new TypeVersionSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeVersionSummaryUnmarshaller Instance { get { return _instance; } } } }
139
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// UpdateStackInstances Request Marshaller /// </summary> public class UpdateStackInstancesRequestMarshaller : IMarshaller<IRequest, UpdateStackInstancesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateStackInstancesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateStackInstancesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "UpdateStackInstances"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetAccounts()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Accounts) { request.Parameters.Add("Accounts" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetDeploymentTargets()) { if(publicRequest.DeploymentTargets.IsSetAccountFilterType()) { request.Parameters.Add("DeploymentTargets" + "." + "AccountFilterType", StringUtils.FromString(publicRequest.DeploymentTargets.AccountFilterType)); } if(publicRequest.DeploymentTargets.IsSetAccounts()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.Accounts) { request.Parameters.Add("DeploymentTargets" + "." + "Accounts" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } if(publicRequest.DeploymentTargets.IsSetAccountsUrl()) { request.Parameters.Add("DeploymentTargets" + "." + "AccountsUrl", StringUtils.FromString(publicRequest.DeploymentTargets.AccountsUrl)); } if(publicRequest.DeploymentTargets.IsSetOrganizationalUnitIds()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.OrganizationalUnitIds) { request.Parameters.Add("DeploymentTargets" + "." + "OrganizationalUnitIds" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } else if(!(publicRequest.IsSetOperationId())) { request.Parameters.Add("OperationId", StringUtils.FromString(Guid.NewGuid().ToString())); } if(publicRequest.IsSetOperationPreferences()) { if(publicRequest.OperationPreferences.IsSetFailureToleranceCount()) { request.Parameters.Add("OperationPreferences" + "." + "FailureToleranceCount", StringUtils.FromInt(publicRequest.OperationPreferences.FailureToleranceCount)); } if(publicRequest.OperationPreferences.IsSetFailureTolerancePercentage()) { request.Parameters.Add("OperationPreferences" + "." + "FailureTolerancePercentage", StringUtils.FromInt(publicRequest.OperationPreferences.FailureTolerancePercentage)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentCount()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentCount", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentCount)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentPercentage()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentPercentage", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentPercentage)); } if(publicRequest.OperationPreferences.IsSetRegionConcurrencyType()) { request.Parameters.Add("OperationPreferences" + "." + "RegionConcurrencyType", StringUtils.FromString(publicRequest.OperationPreferences.RegionConcurrencyType)); } if(publicRequest.OperationPreferences.IsSetRegionOrder()) { int publicRequestOperationPreferenceslistValueIndex = 1; foreach(var publicRequestOperationPreferenceslistValue in publicRequest.OperationPreferences.RegionOrder) { request.Parameters.Add("OperationPreferences" + "." + "RegionOrder" + "." + "member" + "." + publicRequestOperationPreferenceslistValueIndex, StringUtils.FromString(publicRequestOperationPreferenceslistValue)); publicRequestOperationPreferenceslistValueIndex++; } } } if(publicRequest.IsSetParameterOverrides()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.ParameterOverrides) { if(publicRequestlistValue.IsSetParameterKey()) { request.Parameters.Add("ParameterOverrides" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterKey", StringUtils.FromString(publicRequestlistValue.ParameterKey)); } if(publicRequestlistValue.IsSetParameterValue()) { request.Parameters.Add("ParameterOverrides" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterValue", StringUtils.FromString(publicRequestlistValue.ParameterValue)); } if(publicRequestlistValue.IsSetResolvedValue()) { request.Parameters.Add("ParameterOverrides" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ResolvedValue", StringUtils.FromString(publicRequestlistValue.ResolvedValue)); } if(publicRequestlistValue.IsSetUsePreviousValue()) { request.Parameters.Add("ParameterOverrides" + "." + "member" + "." + publicRequestlistValueIndex + "." + "UsePreviousValue", StringUtils.FromBool(publicRequestlistValue.UsePreviousValue)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetRegions()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Regions) { request.Parameters.Add("Regions" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static UpdateStackInstancesRequestMarshaller _instance = new UpdateStackInstancesRequestMarshaller(); internal static UpdateStackInstancesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackInstancesRequestMarshaller Instance { get { return _instance; } } } }
202
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateStackInstances operation /// </summary> public class UpdateStackInstancesResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateStackInstancesResponse response = new UpdateStackInstancesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateStackInstancesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateStackInstancesResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOperationException")) { return InvalidOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationIdAlreadyExistsException")) { return OperationIdAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationInProgressException")) { return OperationInProgressExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackInstanceNotFoundException")) { return StackInstanceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StaleRequestException")) { return StaleRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateStackInstancesResponseUnmarshaller _instance = new UpdateStackInstancesResponseUnmarshaller(); internal static UpdateStackInstancesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackInstancesResponseUnmarshaller Instance { get { return _instance; } } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// UpdateStack Request Marshaller /// </summary> public class UpdateStackRequestMarshaller : IMarshaller<IRequest, UpdateStackRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateStackRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateStackRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "UpdateStack"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetCapabilities()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Capabilities) { request.Parameters.Add("Capabilities" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetClientRequestToken()) { request.Parameters.Add("ClientRequestToken", StringUtils.FromString(publicRequest.ClientRequestToken)); } if(publicRequest.IsSetDisableRollback()) { request.Parameters.Add("DisableRollback", StringUtils.FromBool(publicRequest.DisableRollback)); } if(publicRequest.IsSetNotificationARNs()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.NotificationARNs) { request.Parameters.Add("NotificationARNs" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetParameters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Parameters) { if(publicRequestlistValue.IsSetParameterKey()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterKey", StringUtils.FromString(publicRequestlistValue.ParameterKey)); } if(publicRequestlistValue.IsSetParameterValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterValue", StringUtils.FromString(publicRequestlistValue.ParameterValue)); } if(publicRequestlistValue.IsSetResolvedValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ResolvedValue", StringUtils.FromString(publicRequestlistValue.ResolvedValue)); } if(publicRequestlistValue.IsSetUsePreviousValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "UsePreviousValue", StringUtils.FromBool(publicRequestlistValue.UsePreviousValue)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetResourceTypes()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.ResourceTypes) { request.Parameters.Add("ResourceTypes" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetRoleARN()) { request.Parameters.Add("RoleARN", StringUtils.FromString(publicRequest.RoleARN)); } if(publicRequest.IsSetRollbackConfiguration()) { if(publicRequest.RollbackConfiguration.IsSetMonitoringTimeInMinutes()) { request.Parameters.Add("RollbackConfiguration" + "." + "MonitoringTimeInMinutes", StringUtils.FromInt(publicRequest.RollbackConfiguration.MonitoringTimeInMinutes)); } if(publicRequest.RollbackConfiguration.IsSetRollbackTriggers()) { int publicRequestRollbackConfigurationlistValueIndex = 1; foreach(var publicRequestRollbackConfigurationlistValue in publicRequest.RollbackConfiguration.RollbackTriggers) { if(publicRequestRollbackConfigurationlistValue.IsSetArn()) { request.Parameters.Add("RollbackConfiguration" + "." + "RollbackTriggers" + "." + "member" + "." + publicRequestRollbackConfigurationlistValueIndex + "." + "Arn", StringUtils.FromString(publicRequestRollbackConfigurationlistValue.Arn)); } if(publicRequestRollbackConfigurationlistValue.IsSetType()) { request.Parameters.Add("RollbackConfiguration" + "." + "RollbackTriggers" + "." + "member" + "." + publicRequestRollbackConfigurationlistValueIndex + "." + "Type", StringUtils.FromString(publicRequestRollbackConfigurationlistValue.Type)); } publicRequestRollbackConfigurationlistValueIndex++; } } } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } if(publicRequest.IsSetStackPolicyBody()) { request.Parameters.Add("StackPolicyBody", StringUtils.FromString(publicRequest.StackPolicyBody)); } if(publicRequest.IsSetStackPolicyDuringUpdateBody()) { request.Parameters.Add("StackPolicyDuringUpdateBody", StringUtils.FromString(publicRequest.StackPolicyDuringUpdateBody)); } if(publicRequest.IsSetStackPolicyDuringUpdateURL()) { request.Parameters.Add("StackPolicyDuringUpdateURL", StringUtils.FromString(publicRequest.StackPolicyDuringUpdateURL)); } if(publicRequest.IsSetStackPolicyURL()) { request.Parameters.Add("StackPolicyURL", StringUtils.FromString(publicRequest.StackPolicyURL)); } if(publicRequest.IsSetTags()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Tags) { if(publicRequestlistValue.IsSetKey()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Key", StringUtils.FromString(publicRequestlistValue.Key)); } if(publicRequestlistValue.IsSetValue()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Value", StringUtils.FromString(publicRequestlistValue.Value)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetTemplateBody()) { request.Parameters.Add("TemplateBody", StringUtils.FromString(publicRequest.TemplateBody)); } if(publicRequest.IsSetTemplateURL()) { request.Parameters.Add("TemplateURL", StringUtils.FromString(publicRequest.TemplateURL)); } if(publicRequest.IsSetUsePreviousTemplate()) { request.Parameters.Add("UsePreviousTemplate", StringUtils.FromBool(publicRequest.UsePreviousTemplate)); } } return request; } private static UpdateStackRequestMarshaller _instance = new UpdateStackRequestMarshaller(); internal static UpdateStackRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackRequestMarshaller Instance { get { return _instance; } } } }
217
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateStack operation /// </summary> public class UpdateStackResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateStackResponse response = new UpdateStackResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateStackResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateStackResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InsufficientCapabilitiesException")) { return InsufficientCapabilitiesExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TokenAlreadyExistsException")) { return TokenAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateStackResponseUnmarshaller _instance = new UpdateStackResponseUnmarshaller(); internal static UpdateStackResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackResponseUnmarshaller Instance { get { return _instance; } } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// UpdateStackSet Request Marshaller /// </summary> public class UpdateStackSetRequestMarshaller : IMarshaller<IRequest, UpdateStackSetRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateStackSetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateStackSetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "UpdateStackSet"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetAccounts()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Accounts) { request.Parameters.Add("Accounts" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetAdministrationRoleARN()) { request.Parameters.Add("AdministrationRoleARN", StringUtils.FromString(publicRequest.AdministrationRoleARN)); } if(publicRequest.IsSetAutoDeployment()) { if(publicRequest.AutoDeployment.IsSetEnabled()) { request.Parameters.Add("AutoDeployment" + "." + "Enabled", StringUtils.FromBool(publicRequest.AutoDeployment.Enabled)); } if(publicRequest.AutoDeployment.IsSetRetainStacksOnAccountRemoval()) { request.Parameters.Add("AutoDeployment" + "." + "RetainStacksOnAccountRemoval", StringUtils.FromBool(publicRequest.AutoDeployment.RetainStacksOnAccountRemoval)); } } if(publicRequest.IsSetCallAs()) { request.Parameters.Add("CallAs", StringUtils.FromString(publicRequest.CallAs)); } if(publicRequest.IsSetCapabilities()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Capabilities) { request.Parameters.Add("Capabilities" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetDeploymentTargets()) { if(publicRequest.DeploymentTargets.IsSetAccountFilterType()) { request.Parameters.Add("DeploymentTargets" + "." + "AccountFilterType", StringUtils.FromString(publicRequest.DeploymentTargets.AccountFilterType)); } if(publicRequest.DeploymentTargets.IsSetAccounts()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.Accounts) { request.Parameters.Add("DeploymentTargets" + "." + "Accounts" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } if(publicRequest.DeploymentTargets.IsSetAccountsUrl()) { request.Parameters.Add("DeploymentTargets" + "." + "AccountsUrl", StringUtils.FromString(publicRequest.DeploymentTargets.AccountsUrl)); } if(publicRequest.DeploymentTargets.IsSetOrganizationalUnitIds()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.OrganizationalUnitIds) { request.Parameters.Add("DeploymentTargets" + "." + "OrganizationalUnitIds" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } } if(publicRequest.IsSetDescription()) { request.Parameters.Add("Description", StringUtils.FromString(publicRequest.Description)); } if(publicRequest.IsSetExecutionRoleName()) { request.Parameters.Add("ExecutionRoleName", StringUtils.FromString(publicRequest.ExecutionRoleName)); } if(publicRequest.IsSetManagedExecution()) { if(publicRequest.ManagedExecution.IsSetActive()) { request.Parameters.Add("ManagedExecution" + "." + "Active", StringUtils.FromBool(publicRequest.ManagedExecution.Active)); } } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } else if(!(publicRequest.IsSetOperationId())) { request.Parameters.Add("OperationId", StringUtils.FromString(Guid.NewGuid().ToString())); } if(publicRequest.IsSetOperationPreferences()) { if(publicRequest.OperationPreferences.IsSetFailureToleranceCount()) { request.Parameters.Add("OperationPreferences" + "." + "FailureToleranceCount", StringUtils.FromInt(publicRequest.OperationPreferences.FailureToleranceCount)); } if(publicRequest.OperationPreferences.IsSetFailureTolerancePercentage()) { request.Parameters.Add("OperationPreferences" + "." + "FailureTolerancePercentage", StringUtils.FromInt(publicRequest.OperationPreferences.FailureTolerancePercentage)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentCount()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentCount", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentCount)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentPercentage()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentPercentage", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentPercentage)); } if(publicRequest.OperationPreferences.IsSetRegionConcurrencyType()) { request.Parameters.Add("OperationPreferences" + "." + "RegionConcurrencyType", StringUtils.FromString(publicRequest.OperationPreferences.RegionConcurrencyType)); } if(publicRequest.OperationPreferences.IsSetRegionOrder()) { int publicRequestOperationPreferenceslistValueIndex = 1; foreach(var publicRequestOperationPreferenceslistValue in publicRequest.OperationPreferences.RegionOrder) { request.Parameters.Add("OperationPreferences" + "." + "RegionOrder" + "." + "member" + "." + publicRequestOperationPreferenceslistValueIndex, StringUtils.FromString(publicRequestOperationPreferenceslistValue)); publicRequestOperationPreferenceslistValueIndex++; } } } if(publicRequest.IsSetParameters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Parameters) { if(publicRequestlistValue.IsSetParameterKey()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterKey", StringUtils.FromString(publicRequestlistValue.ParameterKey)); } if(publicRequestlistValue.IsSetParameterValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ParameterValue", StringUtils.FromString(publicRequestlistValue.ParameterValue)); } if(publicRequestlistValue.IsSetResolvedValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ResolvedValue", StringUtils.FromString(publicRequestlistValue.ResolvedValue)); } if(publicRequestlistValue.IsSetUsePreviousValue()) { request.Parameters.Add("Parameters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "UsePreviousValue", StringUtils.FromBool(publicRequestlistValue.UsePreviousValue)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetPermissionModel()) { request.Parameters.Add("PermissionModel", StringUtils.FromString(publicRequest.PermissionModel)); } if(publicRequest.IsSetRegions()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Regions) { request.Parameters.Add("Regions" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } if(publicRequest.IsSetTags()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Tags) { if(publicRequestlistValue.IsSetKey()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Key", StringUtils.FromString(publicRequestlistValue.Key)); } if(publicRequestlistValue.IsSetValue()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Value", StringUtils.FromString(publicRequestlistValue.Value)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetTemplateBody()) { request.Parameters.Add("TemplateBody", StringUtils.FromString(publicRequest.TemplateBody)); } if(publicRequest.IsSetTemplateURL()) { request.Parameters.Add("TemplateURL", StringUtils.FromString(publicRequest.TemplateURL)); } if(publicRequest.IsSetUsePreviousTemplate()) { request.Parameters.Add("UsePreviousTemplate", StringUtils.FromBool(publicRequest.UsePreviousTemplate)); } } return request; } private static UpdateStackSetRequestMarshaller _instance = new UpdateStackSetRequestMarshaller(); internal static UpdateStackSetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackSetRequestMarshaller Instance { get { return _instance; } } } }
273
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateStackSet operation /// </summary> public class UpdateStackSetResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateStackSetResponse response = new UpdateStackSetResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateStackSetResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateStackSetResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("OperationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOperationException")) { return InvalidOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationIdAlreadyExistsException")) { return OperationIdAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("OperationInProgressException")) { return OperationInProgressExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackInstanceNotFoundException")) { return StackInstanceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StackSetNotFoundException")) { return StackSetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("StaleRequestException")) { return StaleRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateStackSetResponseUnmarshaller _instance = new UpdateStackSetResponseUnmarshaller(); internal static UpdateStackSetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateStackSetResponseUnmarshaller Instance { get { return _instance; } } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// UpdateTerminationProtection Request Marshaller /// </summary> public class UpdateTerminationProtectionRequestMarshaller : IMarshaller<IRequest, UpdateTerminationProtectionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateTerminationProtectionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateTerminationProtectionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "UpdateTerminationProtection"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetEnableTerminationProtection()) { request.Parameters.Add("EnableTerminationProtection", StringUtils.FromBool(publicRequest.EnableTerminationProtection)); } if(publicRequest.IsSetStackName()) { request.Parameters.Add("StackName", StringUtils.FromString(publicRequest.StackName)); } } return request; } private static UpdateTerminationProtectionRequestMarshaller _instance = new UpdateTerminationProtectionRequestMarshaller(); internal static UpdateTerminationProtectionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTerminationProtectionRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateTerminationProtection operation /// </summary> public class UpdateTerminationProtectionResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UpdateTerminationProtectionResponse response = new UpdateTerminationProtectionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UpdateTerminationProtectionResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateTerminationProtectionResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackId = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static UpdateTerminationProtectionResponseUnmarshaller _instance = new UpdateTerminationProtectionResponseUnmarshaller(); internal static UpdateTerminationProtectionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTerminationProtectionResponseUnmarshaller Instance { get { return _instance; } } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// ValidateTemplate Request Marshaller /// </summary> public class ValidateTemplateRequestMarshaller : IMarshaller<IRequest, ValidateTemplateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ValidateTemplateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ValidateTemplateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "ValidateTemplate"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetTemplateBody()) { request.Parameters.Add("TemplateBody", StringUtils.FromString(publicRequest.TemplateBody)); } if(publicRequest.IsSetTemplateURL()) { request.Parameters.Add("TemplateURL", StringUtils.FromString(publicRequest.TemplateURL)); } } return request; } private static ValidateTemplateRequestMarshaller _instance = new ValidateTemplateRequestMarshaller(); internal static ValidateTemplateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ValidateTemplateRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidateTemplate operation /// </summary> public class ValidateTemplateResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ValidateTemplateResponse response = new ValidateTemplateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ValidateTemplateResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, ValidateTemplateResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Capabilities/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Capabilities.Add(item); continue; } if (context.TestExpression("CapabilitiesReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CapabilitiesReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeclaredTransforms/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.DeclaredTransforms.Add(item); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Parameters/member", targetDepth)) { var unmarshaller = TemplateParameterUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Parameters.Add(item); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudFormationException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static ValidateTemplateResponseUnmarshaller _instance = new ValidateTemplateResponseUnmarshaller(); internal static ValidateTemplateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ValidateTemplateResponseUnmarshaller Instance { get { return _instance; } } } }
164
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginators for the CloudFormation service ///</summary> public class CloudFormationPaginatorFactory : ICloudFormationPaginatorFactory { private readonly IAmazonCloudFormation client; internal CloudFormationPaginatorFactory(IAmazonCloudFormation client) { this.client = client; } /// <summary> /// Paginator for DescribeAccountLimits operation ///</summary> public IDescribeAccountLimitsPaginator DescribeAccountLimits(DescribeAccountLimitsRequest request) { return new DescribeAccountLimitsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeStackEvents operation ///</summary> public IDescribeStackEventsPaginator DescribeStackEvents(DescribeStackEventsRequest request) { return new DescribeStackEventsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeStackResourceDrifts operation ///</summary> public IDescribeStackResourceDriftsPaginator DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request) { return new DescribeStackResourceDriftsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeStacks operation ///</summary> public IDescribeStacksPaginator DescribeStacks(DescribeStacksRequest request) { return new DescribeStacksPaginator(this.client, request); } /// <summary> /// Paginator for ListChangeSets operation ///</summary> public IListChangeSetsPaginator ListChangeSets(ListChangeSetsRequest request) { return new ListChangeSetsPaginator(this.client, request); } /// <summary> /// Paginator for ListExports operation ///</summary> public IListExportsPaginator ListExports(ListExportsRequest request) { return new ListExportsPaginator(this.client, request); } /// <summary> /// Paginator for ListImports operation ///</summary> public IListImportsPaginator ListImports(ListImportsRequest request) { return new ListImportsPaginator(this.client, request); } /// <summary> /// Paginator for ListStackInstances operation ///</summary> public IListStackInstancesPaginator ListStackInstances(ListStackInstancesRequest request) { return new ListStackInstancesPaginator(this.client, request); } /// <summary> /// Paginator for ListStackResources operation ///</summary> public IListStackResourcesPaginator ListStackResources(ListStackResourcesRequest request) { return new ListStackResourcesPaginator(this.client, request); } /// <summary> /// Paginator for ListStacks operation ///</summary> public IListStacksPaginator ListStacks(ListStacksRequest request) { return new ListStacksPaginator(this.client, request); } /// <summary> /// Paginator for ListStackSetOperationResults operation ///</summary> public IListStackSetOperationResultsPaginator ListStackSetOperationResults(ListStackSetOperationResultsRequest request) { return new ListStackSetOperationResultsPaginator(this.client, request); } /// <summary> /// Paginator for ListStackSetOperations operation ///</summary> public IListStackSetOperationsPaginator ListStackSetOperations(ListStackSetOperationsRequest request) { return new ListStackSetOperationsPaginator(this.client, request); } /// <summary> /// Paginator for ListStackSets operation ///</summary> public IListStackSetsPaginator ListStackSets(ListStackSetsRequest request) { return new ListStackSetsPaginator(this.client, request); } /// <summary> /// Paginator for ListTypeRegistrations operation ///</summary> public IListTypeRegistrationsPaginator ListTypeRegistrations(ListTypeRegistrationsRequest request) { return new ListTypeRegistrationsPaginator(this.client, request); } /// <summary> /// Paginator for ListTypes operation ///</summary> public IListTypesPaginator ListTypes(ListTypesRequest request) { return new ListTypesPaginator(this.client, request); } /// <summary> /// Paginator for ListTypeVersions operation ///</summary> public IListTypeVersionsPaginator ListTypeVersions(ListTypeVersionsRequest request) { return new ListTypeVersionsPaginator(this.client, request); } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for DescribeAccountLimits paginators. /// </summary> internal sealed partial class DescribeAccountLimitsPaginator : IPaginator<DescribeAccountLimitsResponse>, IDescribeAccountLimitsPaginator { private readonly IAmazonCloudFormation _client; private readonly DescribeAccountLimitsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeAccountLimitsResponse> Responses => new PaginatedResponse<DescribeAccountLimitsResponse>(this); /// <summary> /// Enumerable containing all of the AccountLimits /// </summary> public IPaginatedEnumerable<AccountLimit> AccountLimits => new PaginatedResultKeyResponse<DescribeAccountLimitsResponse, AccountLimit>(this, (i) => i.AccountLimits); internal DescribeAccountLimitsPaginator(IAmazonCloudFormation client, DescribeAccountLimitsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeAccountLimitsResponse> IPaginator<DescribeAccountLimitsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeAccountLimitsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeAccountLimits(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeAccountLimitsResponse> IPaginator<DescribeAccountLimitsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeAccountLimitsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeAccountLimitsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for DescribeStackEvents paginators. /// </summary> internal sealed partial class DescribeStackEventsPaginator : IPaginator<DescribeStackEventsResponse>, IDescribeStackEventsPaginator { private readonly IAmazonCloudFormation _client; private readonly DescribeStackEventsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeStackEventsResponse> Responses => new PaginatedResponse<DescribeStackEventsResponse>(this); /// <summary> /// Enumerable containing all of the StackEvents /// </summary> public IPaginatedEnumerable<StackEvent> StackEvents => new PaginatedResultKeyResponse<DescribeStackEventsResponse, StackEvent>(this, (i) => i.StackEvents); internal DescribeStackEventsPaginator(IAmazonCloudFormation client, DescribeStackEventsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeStackEventsResponse> IPaginator<DescribeStackEventsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStackEventsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeStackEvents(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeStackEventsResponse> IPaginator<DescribeStackEventsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStackEventsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeStackEventsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for DescribeStackResourceDrifts paginators. /// </summary> internal sealed partial class DescribeStackResourceDriftsPaginator : IPaginator<DescribeStackResourceDriftsResponse>, IDescribeStackResourceDriftsPaginator { private readonly IAmazonCloudFormation _client; private readonly DescribeStackResourceDriftsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeStackResourceDriftsResponse> Responses => new PaginatedResponse<DescribeStackResourceDriftsResponse>(this); internal DescribeStackResourceDriftsPaginator(IAmazonCloudFormation client, DescribeStackResourceDriftsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeStackResourceDriftsResponse> IPaginator<DescribeStackResourceDriftsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStackResourceDriftsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeStackResourceDrifts(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeStackResourceDriftsResponse> IPaginator<DescribeStackResourceDriftsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStackResourceDriftsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeStackResourceDriftsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for DescribeStacks paginators. /// </summary> internal sealed partial class DescribeStacksPaginator : IPaginator<DescribeStacksResponse>, IDescribeStacksPaginator { private readonly IAmazonCloudFormation _client; private readonly DescribeStacksRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeStacksResponse> Responses => new PaginatedResponse<DescribeStacksResponse>(this); /// <summary> /// Enumerable containing all of the Stacks /// </summary> public IPaginatedEnumerable<Stack> Stacks => new PaginatedResultKeyResponse<DescribeStacksResponse, Stack>(this, (i) => i.Stacks); internal DescribeStacksPaginator(IAmazonCloudFormation client, DescribeStacksRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeStacksResponse> IPaginator<DescribeStacksResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStacksResponse response; do { _request.NextToken = nextToken; response = _client.DescribeStacks(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeStacksResponse> IPaginator<DescribeStacksResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; DescribeStacksResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeStacksAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ namespace Amazon.CloudFormation.Model { /// <summary> /// Paginators for the CloudFormation service ///</summary> public interface ICloudFormationPaginatorFactory { /// <summary> /// Paginator for DescribeAccountLimits operation ///</summary> IDescribeAccountLimitsPaginator DescribeAccountLimits(DescribeAccountLimitsRequest request); /// <summary> /// Paginator for DescribeStackEvents operation ///</summary> IDescribeStackEventsPaginator DescribeStackEvents(DescribeStackEventsRequest request); /// <summary> /// Paginator for DescribeStackResourceDrifts operation ///</summary> IDescribeStackResourceDriftsPaginator DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request); /// <summary> /// Paginator for DescribeStacks operation ///</summary> IDescribeStacksPaginator DescribeStacks(DescribeStacksRequest request); /// <summary> /// Paginator for ListChangeSets operation ///</summary> IListChangeSetsPaginator ListChangeSets(ListChangeSetsRequest request); /// <summary> /// Paginator for ListExports operation ///</summary> IListExportsPaginator ListExports(ListExportsRequest request); /// <summary> /// Paginator for ListImports operation ///</summary> IListImportsPaginator ListImports(ListImportsRequest request); /// <summary> /// Paginator for ListStackInstances operation ///</summary> IListStackInstancesPaginator ListStackInstances(ListStackInstancesRequest request); /// <summary> /// Paginator for ListStackResources operation ///</summary> IListStackResourcesPaginator ListStackResources(ListStackResourcesRequest request); /// <summary> /// Paginator for ListStacks operation ///</summary> IListStacksPaginator ListStacks(ListStacksRequest request); /// <summary> /// Paginator for ListStackSetOperationResults operation ///</summary> IListStackSetOperationResultsPaginator ListStackSetOperationResults(ListStackSetOperationResultsRequest request); /// <summary> /// Paginator for ListStackSetOperations operation ///</summary> IListStackSetOperationsPaginator ListStackSetOperations(ListStackSetOperationsRequest request); /// <summary> /// Paginator for ListStackSets operation ///</summary> IListStackSetsPaginator ListStackSets(ListStackSetsRequest request); /// <summary> /// Paginator for ListTypeRegistrations operation ///</summary> IListTypeRegistrationsPaginator ListTypeRegistrations(ListTypeRegistrationsRequest request); /// <summary> /// Paginator for ListTypes operation ///</summary> IListTypesPaginator ListTypes(ListTypesRequest request); /// <summary> /// Paginator for ListTypeVersions operation ///</summary> IListTypeVersionsPaginator ListTypeVersions(ListTypeVersionsRequest request); } }
108
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the DescribeAccountLimits operation ///</summary> public interface IDescribeAccountLimitsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeAccountLimitsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the AccountLimits /// </summary> IPaginatedEnumerable<AccountLimit> AccountLimits { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the DescribeStackEvents operation ///</summary> public interface IDescribeStackEventsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeStackEventsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the StackEvents /// </summary> IPaginatedEnumerable<StackEvent> StackEvents { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the DescribeStackResourceDrifts operation ///</summary> public interface IDescribeStackResourceDriftsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeStackResourceDriftsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the DescribeStacks operation ///</summary> public interface IDescribeStacksPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeStacksResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Stacks /// </summary> IPaginatedEnumerable<Stack> Stacks { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListChangeSets operation ///</summary> public interface IListChangeSetsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListChangeSetsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Summaries /// </summary> IPaginatedEnumerable<ChangeSetSummary> Summaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListExports operation ///</summary> public interface IListExportsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListExportsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Exports /// </summary> IPaginatedEnumerable<Export> Exports { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListImports operation ///</summary> public interface IListImportsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListImportsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Imports /// </summary> IPaginatedEnumerable<string> Imports { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStackInstances operation ///</summary> public interface IListStackInstancesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStackInstancesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Summaries /// </summary> IPaginatedEnumerable<StackInstanceSummary> Summaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStackResources operation ///</summary> public interface IListStackResourcesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStackResourcesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the StackResourceSummaries /// </summary> IPaginatedEnumerable<StackResourceSummary> StackResourceSummaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStackSetOperationResults operation ///</summary> public interface IListStackSetOperationResultsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStackSetOperationResultsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Summaries /// </summary> IPaginatedEnumerable<StackSetOperationResultSummary> Summaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStackSetOperations operation ///</summary> public interface IListStackSetOperationsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStackSetOperationsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Summaries /// </summary> IPaginatedEnumerable<StackSetOperationSummary> Summaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStackSets operation ///</summary> public interface IListStackSetsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStackSetsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Summaries /// </summary> IPaginatedEnumerable<StackSetSummary> Summaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListStacks operation ///</summary> public interface IListStacksPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListStacksResponse> Responses { get; } /// <summary> /// Enumerable containing all of the StackSummaries /// </summary> IPaginatedEnumerable<StackSummary> StackSummaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListTypeRegistrations operation ///</summary> public interface IListTypeRegistrationsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTypeRegistrationsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListTypes operation ///</summary> public interface IListTypesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTypesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the TypeSummaries /// </summary> IPaginatedEnumerable<TypeSummary> TypeSummaries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Paginator for the ListTypeVersions operation ///</summary> public interface IListTypeVersionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTypeVersionsResponse> Responses { get; } } }
33
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListChangeSets paginators. /// </summary> internal sealed partial class ListChangeSetsPaginator : IPaginator<ListChangeSetsResponse>, IListChangeSetsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListChangeSetsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListChangeSetsResponse> Responses => new PaginatedResponse<ListChangeSetsResponse>(this); /// <summary> /// Enumerable containing all of the Summaries /// </summary> public IPaginatedEnumerable<ChangeSetSummary> Summaries => new PaginatedResultKeyResponse<ListChangeSetsResponse, ChangeSetSummary>(this, (i) => i.Summaries); internal ListChangeSetsPaginator(IAmazonCloudFormation client, ListChangeSetsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListChangeSetsResponse> IPaginator<ListChangeSetsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChangeSetsResponse response; do { _request.NextToken = nextToken; response = _client.ListChangeSets(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListChangeSetsResponse> IPaginator<ListChangeSetsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListChangeSetsResponse response; do { _request.NextToken = nextToken; response = await _client.ListChangeSetsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListExports paginators. /// </summary> internal sealed partial class ListExportsPaginator : IPaginator<ListExportsResponse>, IListExportsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListExportsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListExportsResponse> Responses => new PaginatedResponse<ListExportsResponse>(this); /// <summary> /// Enumerable containing all of the Exports /// </summary> public IPaginatedEnumerable<Export> Exports => new PaginatedResultKeyResponse<ListExportsResponse, Export>(this, (i) => i.Exports); internal ListExportsPaginator(IAmazonCloudFormation client, ListExportsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListExportsResponse> IPaginator<ListExportsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListExportsResponse response; do { _request.NextToken = nextToken; response = _client.ListExports(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListExportsResponse> IPaginator<ListExportsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListExportsResponse response; do { _request.NextToken = nextToken; response = await _client.ListExportsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListImports paginators. /// </summary> internal sealed partial class ListImportsPaginator : IPaginator<ListImportsResponse>, IListImportsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListImportsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListImportsResponse> Responses => new PaginatedResponse<ListImportsResponse>(this); /// <summary> /// Enumerable containing all of the Imports /// </summary> public IPaginatedEnumerable<string> Imports => new PaginatedResultKeyResponse<ListImportsResponse, string>(this, (i) => i.Imports); internal ListImportsPaginator(IAmazonCloudFormation client, ListImportsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListImportsResponse> IPaginator<ListImportsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListImportsResponse response; do { _request.NextToken = nextToken; response = _client.ListImports(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListImportsResponse> IPaginator<ListImportsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListImportsResponse response; do { _request.NextToken = nextToken; response = await _client.ListImportsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStackInstances paginators. /// </summary> internal sealed partial class ListStackInstancesPaginator : IPaginator<ListStackInstancesResponse>, IListStackInstancesPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStackInstancesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStackInstancesResponse> Responses => new PaginatedResponse<ListStackInstancesResponse>(this); /// <summary> /// Enumerable containing all of the Summaries /// </summary> public IPaginatedEnumerable<StackInstanceSummary> Summaries => new PaginatedResultKeyResponse<ListStackInstancesResponse, StackInstanceSummary>(this, (i) => i.Summaries); internal ListStackInstancesPaginator(IAmazonCloudFormation client, ListStackInstancesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStackInstancesResponse> IPaginator<ListStackInstancesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackInstancesResponse response; do { _request.NextToken = nextToken; response = _client.ListStackInstances(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStackInstancesResponse> IPaginator<ListStackInstancesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackInstancesResponse response; do { _request.NextToken = nextToken; response = await _client.ListStackInstancesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStackResources paginators. /// </summary> internal sealed partial class ListStackResourcesPaginator : IPaginator<ListStackResourcesResponse>, IListStackResourcesPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStackResourcesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStackResourcesResponse> Responses => new PaginatedResponse<ListStackResourcesResponse>(this); /// <summary> /// Enumerable containing all of the StackResourceSummaries /// </summary> public IPaginatedEnumerable<StackResourceSummary> StackResourceSummaries => new PaginatedResultKeyResponse<ListStackResourcesResponse, StackResourceSummary>(this, (i) => i.StackResourceSummaries); internal ListStackResourcesPaginator(IAmazonCloudFormation client, ListStackResourcesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStackResourcesResponse> IPaginator<ListStackResourcesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackResourcesResponse response; do { _request.NextToken = nextToken; response = _client.ListStackResources(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStackResourcesResponse> IPaginator<ListStackResourcesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackResourcesResponse response; do { _request.NextToken = nextToken; response = await _client.ListStackResourcesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStackSetOperationResults paginators. /// </summary> internal sealed partial class ListStackSetOperationResultsPaginator : IPaginator<ListStackSetOperationResultsResponse>, IListStackSetOperationResultsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStackSetOperationResultsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStackSetOperationResultsResponse> Responses => new PaginatedResponse<ListStackSetOperationResultsResponse>(this); /// <summary> /// Enumerable containing all of the Summaries /// </summary> public IPaginatedEnumerable<StackSetOperationResultSummary> Summaries => new PaginatedResultKeyResponse<ListStackSetOperationResultsResponse, StackSetOperationResultSummary>(this, (i) => i.Summaries); internal ListStackSetOperationResultsPaginator(IAmazonCloudFormation client, ListStackSetOperationResultsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStackSetOperationResultsResponse> IPaginator<ListStackSetOperationResultsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetOperationResultsResponse response; do { _request.NextToken = nextToken; response = _client.ListStackSetOperationResults(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStackSetOperationResultsResponse> IPaginator<ListStackSetOperationResultsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetOperationResultsResponse response; do { _request.NextToken = nextToken; response = await _client.ListStackSetOperationResultsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStackSetOperations paginators. /// </summary> internal sealed partial class ListStackSetOperationsPaginator : IPaginator<ListStackSetOperationsResponse>, IListStackSetOperationsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStackSetOperationsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStackSetOperationsResponse> Responses => new PaginatedResponse<ListStackSetOperationsResponse>(this); /// <summary> /// Enumerable containing all of the Summaries /// </summary> public IPaginatedEnumerable<StackSetOperationSummary> Summaries => new PaginatedResultKeyResponse<ListStackSetOperationsResponse, StackSetOperationSummary>(this, (i) => i.Summaries); internal ListStackSetOperationsPaginator(IAmazonCloudFormation client, ListStackSetOperationsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStackSetOperationsResponse> IPaginator<ListStackSetOperationsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetOperationsResponse response; do { _request.NextToken = nextToken; response = _client.ListStackSetOperations(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStackSetOperationsResponse> IPaginator<ListStackSetOperationsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetOperationsResponse response; do { _request.NextToken = nextToken; response = await _client.ListStackSetOperationsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStackSets paginators. /// </summary> internal sealed partial class ListStackSetsPaginator : IPaginator<ListStackSetsResponse>, IListStackSetsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStackSetsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStackSetsResponse> Responses => new PaginatedResponse<ListStackSetsResponse>(this); /// <summary> /// Enumerable containing all of the Summaries /// </summary> public IPaginatedEnumerable<StackSetSummary> Summaries => new PaginatedResultKeyResponse<ListStackSetsResponse, StackSetSummary>(this, (i) => i.Summaries); internal ListStackSetsPaginator(IAmazonCloudFormation client, ListStackSetsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStackSetsResponse> IPaginator<ListStackSetsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetsResponse response; do { _request.NextToken = nextToken; response = _client.ListStackSets(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStackSetsResponse> IPaginator<ListStackSetsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStackSetsResponse response; do { _request.NextToken = nextToken; response = await _client.ListStackSetsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListStacks paginators. /// </summary> internal sealed partial class ListStacksPaginator : IPaginator<ListStacksResponse>, IListStacksPaginator { private readonly IAmazonCloudFormation _client; private readonly ListStacksRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListStacksResponse> Responses => new PaginatedResponse<ListStacksResponse>(this); /// <summary> /// Enumerable containing all of the StackSummaries /// </summary> public IPaginatedEnumerable<StackSummary> StackSummaries => new PaginatedResultKeyResponse<ListStacksResponse, StackSummary>(this, (i) => i.StackSummaries); internal ListStacksPaginator(IAmazonCloudFormation client, ListStacksRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListStacksResponse> IPaginator<ListStacksResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStacksResponse response; do { _request.NextToken = nextToken; response = _client.ListStacks(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListStacksResponse> IPaginator<ListStacksResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListStacksResponse response; do { _request.NextToken = nextToken; response = await _client.ListStacksAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListTypeRegistrations paginators. /// </summary> internal sealed partial class ListTypeRegistrationsPaginator : IPaginator<ListTypeRegistrationsResponse>, IListTypeRegistrationsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListTypeRegistrationsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTypeRegistrationsResponse> Responses => new PaginatedResponse<ListTypeRegistrationsResponse>(this); internal ListTypeRegistrationsPaginator(IAmazonCloudFormation client, ListTypeRegistrationsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTypeRegistrationsResponse> IPaginator<ListTypeRegistrationsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypeRegistrationsResponse response; do { _request.NextToken = nextToken; response = _client.ListTypeRegistrations(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTypeRegistrationsResponse> IPaginator<ListTypeRegistrationsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypeRegistrationsResponse response; do { _request.NextToken = nextToken; response = await _client.ListTypeRegistrationsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListTypes paginators. /// </summary> internal sealed partial class ListTypesPaginator : IPaginator<ListTypesResponse>, IListTypesPaginator { private readonly IAmazonCloudFormation _client; private readonly ListTypesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTypesResponse> Responses => new PaginatedResponse<ListTypesResponse>(this); /// <summary> /// Enumerable containing all of the TypeSummaries /// </summary> public IPaginatedEnumerable<TypeSummary> TypeSummaries => new PaginatedResultKeyResponse<ListTypesResponse, TypeSummary>(this, (i) => i.TypeSummaries); internal ListTypesPaginator(IAmazonCloudFormation client, ListTypesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTypesResponse> IPaginator<ListTypesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypesResponse response; do { _request.NextToken = nextToken; response = _client.ListTypes(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTypesResponse> IPaginator<ListTypesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypesResponse response; do { _request.NextToken = nextToken; response = await _client.ListTypesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudFormation.Model { /// <summary> /// Base class for ListTypeVersions paginators. /// </summary> internal sealed partial class ListTypeVersionsPaginator : IPaginator<ListTypeVersionsResponse>, IListTypeVersionsPaginator { private readonly IAmazonCloudFormation _client; private readonly ListTypeVersionsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTypeVersionsResponse> Responses => new PaginatedResponse<ListTypeVersionsResponse>(this); internal ListTypeVersionsPaginator(IAmazonCloudFormation client, ListTypeVersionsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTypeVersionsResponse> IPaginator<ListTypeVersionsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypeVersionsResponse response; do { _request.NextToken = nextToken; response = _client.ListTypeVersions(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTypeVersionsResponse> IPaginator<ListTypeVersionsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListTypeVersionsResponse response; do { _request.NextToken = nextToken; response = await _client.ListTypeVersionsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CloudFormation.Model; using Amazon.CloudFormation.Model.Internal.MarshallTransformations; using Amazon.CloudFormation.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudFormation { /// <summary> /// Implementation for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial class AmazonCloudFormationClient : AmazonServiceClient, IAmazonCloudFormation { private static IServiceMetadata serviceMetadata = new AmazonCloudFormationMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICloudFormationPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudFormationPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudFormationPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudFormationClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AmazonCloudFormationConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudFormationClient(AWSCredentials credentials) : this(credentials, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AWSCredentials credentials, AmazonCloudFormationConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudFormation.Internal.ProcessRequestHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudFormationEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region ActivateOrganizationsAccess /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual ActivateOrganizationsAccessResponse ActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<ActivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ActivateOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess 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 EndActivateOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual IAsyncResult BeginActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ActivateOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateOrganizationsAccess.</param> /// /// <returns>Returns a ActivateOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual ActivateOrganizationsAccessResponse EndActivateOrganizationsAccess(IAsyncResult asyncResult) { return EndInvoke<ActivateOrganizationsAccessResponse>(asyncResult); } #endregion #region ActivateType /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual ActivateTypeResponse ActivateType(ActivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return Invoke<ActivateTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ActivateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ActivateType 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 EndActivateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual IAsyncResult BeginActivateType(ActivateTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ActivateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateType.</param> /// /// <returns>Returns a ActivateTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual ActivateTypeResponse EndActivateType(IAsyncResult asyncResult) { return EndInvoke<ActivateTypeResponse>(asyncResult); } #endregion #region BatchDescribeTypeConfigurations /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual BatchDescribeTypeConfigurationsResponse BatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return Invoke<BatchDescribeTypeConfigurationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchDescribeTypeConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations 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 EndBatchDescribeTypeConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual IAsyncResult BeginBatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchDescribeTypeConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDescribeTypeConfigurations.</param> /// /// <returns>Returns a BatchDescribeTypeConfigurationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual BatchDescribeTypeConfigurationsResponse EndBatchDescribeTypeConfigurations(IAsyncResult asyncResult) { return EndInvoke<BatchDescribeTypeConfigurationsResponse>(asyncResult); } #endregion #region CancelUpdateStack /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return Invoke<CancelUpdateStackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelUpdateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack 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 EndCancelUpdateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual IAsyncResult BeginCancelUpdateStack(CancelUpdateStackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelUpdateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelUpdateStack.</param> /// /// <returns>Returns a CancelUpdateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual CancelUpdateStackResponse EndCancelUpdateStack(IAsyncResult asyncResult) { return EndInvoke<CancelUpdateStackResponse>(asyncResult); } #endregion #region ContinueUpdateRollback /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return Invoke<ContinueUpdateRollbackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ContinueUpdateRollback operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback 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 EndContinueUpdateRollback /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual IAsyncResult BeginContinueUpdateRollback(ContinueUpdateRollbackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ContinueUpdateRollback operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginContinueUpdateRollback.</param> /// /// <returns>Returns a ContinueUpdateRollbackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual ContinueUpdateRollbackResponse EndContinueUpdateRollback(IAsyncResult asyncResult) { return EndInvoke<ContinueUpdateRollbackResponse>(asyncResult); } #endregion #region CreateChangeSet /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </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"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return Invoke<CreateChangeSetResponse>(request, options); } /// <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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual IAsyncResult BeginCreateChangeSet(CreateChangeSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateChangeSet.</param> /// /// <returns>Returns a CreateChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual CreateChangeSetResponse EndCreateChangeSet(IAsyncResult asyncResult) { return EndInvoke<CreateChangeSetResponse>(asyncResult); } #endregion #region CreateStack /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual CreateStackResponse CreateStack(CreateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return Invoke<CreateStackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStack 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 EndCreateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual IAsyncResult BeginCreateStack(CreateStackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStack.</param> /// /// <returns>Returns a CreateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual CreateStackResponse EndCreateStack(IAsyncResult asyncResult) { return EndInvoke<CreateStackResponse>(asyncResult); } #endregion #region CreateStackInstances /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return Invoke<CreateStackInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances 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 EndCreateStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual IAsyncResult BeginCreateStackInstances(CreateStackInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStackInstances.</param> /// /// <returns>Returns a CreateStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual CreateStackInstancesResponse EndCreateStackInstances(IAsyncResult asyncResult) { return EndInvoke<CreateStackInstancesResponse>(asyncResult); } #endregion #region CreateStackSet /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual CreateStackSetResponse CreateStackSet(CreateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return Invoke<CreateStackSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStackSet 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 EndCreateStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual IAsyncResult BeginCreateStackSet(CreateStackSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStackSet.</param> /// /// <returns>Returns a CreateStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual CreateStackSetResponse EndCreateStackSet(IAsyncResult asyncResult) { return EndInvoke<CreateStackSetResponse>(asyncResult); } #endregion #region DeactivateOrganizationsAccess /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual DeactivateOrganizationsAccessResponse DeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DeactivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeactivateOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess 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 EndDeactivateOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual IAsyncResult BeginDeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeactivateOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateOrganizationsAccess.</param> /// /// <returns>Returns a DeactivateOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual DeactivateOrganizationsAccessResponse EndDeactivateOrganizationsAccess(IAsyncResult asyncResult) { return EndInvoke<DeactivateOrganizationsAccessResponse>(asyncResult); } #endregion #region DeactivateType /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual DeactivateTypeResponse DeactivateType(DeactivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return Invoke<DeactivateTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeactivateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeactivateType 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 EndDeactivateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual IAsyncResult BeginDeactivateType(DeactivateTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeactivateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateType.</param> /// /// <returns>Returns a DeactivateTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual DeactivateTypeResponse EndDeactivateType(IAsyncResult asyncResult) { return EndInvoke<DeactivateTypeResponse>(asyncResult); } #endregion #region DeleteChangeSet /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return Invoke<DeleteChangeSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet 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 EndDeleteChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual IAsyncResult BeginDeleteChangeSet(DeleteChangeSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteChangeSet.</param> /// /// <returns>Returns a DeleteChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual DeleteChangeSetResponse EndDeleteChangeSet(IAsyncResult asyncResult) { return EndInvoke<DeleteChangeSetResponse>(asyncResult); } #endregion #region DeleteStack /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual DeleteStackResponse DeleteStack(DeleteStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return Invoke<DeleteStackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStack 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 EndDeleteStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual IAsyncResult BeginDeleteStack(DeleteStackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStack.</param> /// /// <returns>Returns a DeleteStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual DeleteStackResponse EndDeleteStack(IAsyncResult asyncResult) { return EndInvoke<DeleteStackResponse>(asyncResult); } #endregion #region DeleteStackInstances /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return Invoke<DeleteStackInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances 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 EndDeleteStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual IAsyncResult BeginDeleteStackInstances(DeleteStackInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStackInstances.</param> /// /// <returns>Returns a DeleteStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual DeleteStackInstancesResponse EndDeleteStackInstances(IAsyncResult asyncResult) { return EndInvoke<DeleteStackInstancesResponse>(asyncResult); } #endregion #region DeleteStackSet /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return Invoke<DeleteStackSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet 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 EndDeleteStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual IAsyncResult BeginDeleteStackSet(DeleteStackSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStackSet.</param> /// /// <returns>Returns a DeleteStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual DeleteStackSetResponse EndDeleteStackSet(IAsyncResult asyncResult) { return EndInvoke<DeleteStackSetResponse>(asyncResult); } #endregion #region DeregisterType /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return Invoke<DeregisterTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeregisterType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterType 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 EndDeregisterType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual IAsyncResult BeginDeregisterType(DeregisterTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeregisterType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterType.</param> /// /// <returns>Returns a DeregisterTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual DeregisterTypeResponse EndDeregisterType(IAsyncResult asyncResult) { return EndInvoke<DeregisterTypeResponse>(asyncResult); } #endregion #region DescribeAccountLimits /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits 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 EndDescribeAccountLimits /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual IAsyncResult BeginDescribeAccountLimits(DescribeAccountLimitsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAccountLimits.</param> /// /// <returns>Returns a DescribeAccountLimitsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse EndDescribeAccountLimits(IAsyncResult asyncResult) { return EndInvoke<DescribeAccountLimitsResponse>(asyncResult); } #endregion #region DescribeChangeSet /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet 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 EndDescribeChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual IAsyncResult BeginDescribeChangeSet(DescribeChangeSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeChangeSet.</param> /// /// <returns>Returns a DescribeChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual DescribeChangeSetResponse EndDescribeChangeSet(IAsyncResult asyncResult) { return EndInvoke<DescribeChangeSetResponse>(asyncResult); } #endregion #region DescribeChangeSetHooks /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual DescribeChangeSetHooksResponse DescribeChangeSetHooks(DescribeChangeSetHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetHooksResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeChangeSetHooks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks 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 EndDescribeChangeSetHooks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual IAsyncResult BeginDescribeChangeSetHooks(DescribeChangeSetHooksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeChangeSetHooks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeChangeSetHooks.</param> /// /// <returns>Returns a DescribeChangeSetHooksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual DescribeChangeSetHooksResponse EndDescribeChangeSetHooks(IAsyncResult asyncResult) { return EndInvoke<DescribeChangeSetHooksResponse>(asyncResult); } #endregion #region DescribeOrganizationsAccess /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual DescribeOrganizationsAccessResponse DescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DescribeOrganizationsAccessResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess 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 EndDescribeOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual IAsyncResult BeginDescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeOrganizationsAccess.</param> /// /// <returns>Returns a DescribeOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual DescribeOrganizationsAccessResponse EndDescribeOrganizationsAccess(IAsyncResult asyncResult) { return EndInvoke<DescribeOrganizationsAccessResponse>(asyncResult); } #endregion #region DescribePublisher /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual DescribePublisherResponse DescribePublisher(DescribePublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return Invoke<DescribePublisherResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribePublisher operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribePublisher 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 EndDescribePublisher /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual IAsyncResult BeginDescribePublisher(DescribePublisherRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribePublisher operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePublisher.</param> /// /// <returns>Returns a DescribePublisherResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual DescribePublisherResponse EndDescribePublisher(IAsyncResult asyncResult) { return EndInvoke<DescribePublisherResponse>(asyncResult); } #endregion #region DescribeStackDriftDetectionStatus /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return Invoke<DescribeStackDriftDetectionStatusResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackDriftDetectionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus 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 EndDescribeStackDriftDetectionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual IAsyncResult BeginDescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackDriftDetectionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackDriftDetectionStatus.</param> /// /// <returns>Returns a DescribeStackDriftDetectionStatusResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual DescribeStackDriftDetectionStatusResponse EndDescribeStackDriftDetectionStatus(IAsyncResult asyncResult) { return EndInvoke<DescribeStackDriftDetectionStatusResponse>(asyncResult); } #endregion #region DescribeStackEvents /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return Invoke<DescribeStackEventsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackEvents operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents 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 EndDescribeStackEvents /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual IAsyncResult BeginDescribeStackEvents(DescribeStackEventsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackEvents operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackEvents.</param> /// /// <returns>Returns a DescribeStackEventsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual DescribeStackEventsResponse EndDescribeStackEvents(IAsyncResult asyncResult) { return EndInvoke<DescribeStackEventsResponse>(asyncResult); } #endregion #region DescribeStackInstance /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return Invoke<DescribeStackInstanceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackInstance operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance 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 EndDescribeStackInstance /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual IAsyncResult BeginDescribeStackInstance(DescribeStackInstanceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackInstance operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackInstance.</param> /// /// <returns>Returns a DescribeStackInstanceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual DescribeStackInstanceResponse EndDescribeStackInstance(IAsyncResult asyncResult) { return EndInvoke<DescribeStackInstanceResponse>(asyncResult); } #endregion #region DescribeStackResource /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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 EndDescribeStackResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual IAsyncResult BeginDescribeStackResource(DescribeStackResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResource.</param> /// /// <returns>Returns a DescribeStackResourceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual DescribeStackResourceResponse EndDescribeStackResource(IAsyncResult asyncResult) { return EndInvoke<DescribeStackResourceResponse>(asyncResult); } #endregion #region DescribeStackResourceDrifts /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceDriftsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackResourceDrifts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts 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 EndDescribeStackResourceDrifts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual IAsyncResult BeginDescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackResourceDrifts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResourceDrifts.</param> /// /// <returns>Returns a DescribeStackResourceDriftsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual DescribeStackResourceDriftsResponse EndDescribeStackResourceDrifts(IAsyncResult asyncResult) { return EndInvoke<DescribeStackResourceDriftsResponse>(asyncResult); } #endregion #region DescribeStackResources /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return Invoke<DescribeStackResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources 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 EndDescribeStackResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual IAsyncResult BeginDescribeStackResources(DescribeStackResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResources.</param> /// /// <returns>Returns a DescribeStackResourcesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual DescribeStackResourcesResponse EndDescribeStackResources(IAsyncResult asyncResult) { return EndInvoke<DescribeStackResourcesResponse>(asyncResult); } #endregion #region DescribeStacks /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual DescribeStacksResponse DescribeStacks() { return DescribeStacks(new DescribeStacksRequest()); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return Invoke<DescribeStacksResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStacks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStacks 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 EndDescribeStacks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual IAsyncResult BeginDescribeStacks(DescribeStacksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStacks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStacks.</param> /// /// <returns>Returns a DescribeStacksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual DescribeStacksResponse EndDescribeStacks(IAsyncResult asyncResult) { return EndInvoke<DescribeStacksResponse>(asyncResult); } #endregion #region DescribeStackSet /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return Invoke<DescribeStackSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet 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 EndDescribeStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual IAsyncResult BeginDescribeStackSet(DescribeStackSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackSet.</param> /// /// <returns>Returns a DescribeStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual DescribeStackSetResponse EndDescribeStackSet(IAsyncResult asyncResult) { return EndInvoke<DescribeStackSetResponse>(asyncResult); } #endregion #region DescribeStackSetOperation /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return Invoke<DescribeStackSetOperationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeStackSetOperation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation 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 EndDescribeStackSetOperation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual IAsyncResult BeginDescribeStackSetOperation(DescribeStackSetOperationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeStackSetOperation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackSetOperation.</param> /// /// <returns>Returns a DescribeStackSetOperationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual DescribeStackSetOperationResponse EndDescribeStackSetOperation(IAsyncResult asyncResult) { return EndInvoke<DescribeStackSetOperationResponse>(asyncResult); } #endregion #region DescribeType /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return Invoke<DescribeTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeType 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 EndDescribeType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual IAsyncResult BeginDescribeType(DescribeTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeType.</param> /// /// <returns>Returns a DescribeTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual DescribeTypeResponse EndDescribeType(IAsyncResult asyncResult) { return EndInvoke<DescribeTypeResponse>(asyncResult); } #endregion #region DescribeTypeRegistration /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return Invoke<DescribeTypeRegistrationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeTypeRegistration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration 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 EndDescribeTypeRegistration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual IAsyncResult BeginDescribeTypeRegistration(DescribeTypeRegistrationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeTypeRegistration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTypeRegistration.</param> /// /// <returns>Returns a DescribeTypeRegistrationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual DescribeTypeRegistrationResponse EndDescribeTypeRegistration(IAsyncResult asyncResult) { return EndInvoke<DescribeTypeRegistrationResponse>(asyncResult); } #endregion #region DetectStackDrift /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return Invoke<DetectStackDriftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetectStackDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift 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 EndDetectStackDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual IAsyncResult BeginDetectStackDrift(DetectStackDriftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetectStackDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackDrift.</param> /// /// <returns>Returns a DetectStackDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual DetectStackDriftResponse EndDetectStackDrift(IAsyncResult asyncResult) { return EndInvoke<DetectStackDriftResponse>(asyncResult); } #endregion #region DetectStackResourceDrift /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return Invoke<DetectStackResourceDriftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetectStackResourceDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift 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 EndDetectStackResourceDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual IAsyncResult BeginDetectStackResourceDrift(DetectStackResourceDriftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetectStackResourceDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackResourceDrift.</param> /// /// <returns>Returns a DetectStackResourceDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual DetectStackResourceDriftResponse EndDetectStackResourceDrift(IAsyncResult asyncResult) { return EndInvoke<DetectStackResourceDriftResponse>(asyncResult); } #endregion #region DetectStackSetDrift /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return Invoke<DetectStackSetDriftResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetectStackSetDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift 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 EndDetectStackSetDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual IAsyncResult BeginDetectStackSetDrift(DetectStackSetDriftRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetectStackSetDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackSetDrift.</param> /// /// <returns>Returns a DetectStackSetDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual DetectStackSetDriftResponse EndDetectStackSetDrift(IAsyncResult asyncResult) { return EndInvoke<DetectStackSetDriftResponse>(asyncResult); } #endregion #region EstimateTemplateCost /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return Invoke<EstimateTemplateCostResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EstimateTemplateCost operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost 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 EndEstimateTemplateCost /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual IAsyncResult BeginEstimateTemplateCost(EstimateTemplateCostRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EstimateTemplateCost operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEstimateTemplateCost.</param> /// /// <returns>Returns a EstimateTemplateCostResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual EstimateTemplateCostResponse EndEstimateTemplateCost(IAsyncResult asyncResult) { return EndInvoke<EstimateTemplateCostResponse>(asyncResult); } #endregion #region ExecuteChangeSet /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return Invoke<ExecuteChangeSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExecuteChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet 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 EndExecuteChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual IAsyncResult BeginExecuteChangeSet(ExecuteChangeSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExecuteChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecuteChangeSet.</param> /// /// <returns>Returns a ExecuteChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual ExecuteChangeSetResponse EndExecuteChangeSet(IAsyncResult asyncResult) { return EndInvoke<ExecuteChangeSetResponse>(asyncResult); } #endregion #region GetStackPolicy /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return Invoke<GetStackPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetStackPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy 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 EndGetStackPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual IAsyncResult BeginGetStackPolicy(GetStackPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetStackPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetStackPolicy.</param> /// /// <returns>Returns a GetStackPolicyResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual GetStackPolicyResponse EndGetStackPolicy(IAsyncResult asyncResult) { return EndInvoke<GetStackPolicyResponse>(asyncResult); } #endregion #region GetTemplate /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return Invoke<GetTemplateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTemplate 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 EndGetTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual IAsyncResult BeginGetTemplate(GetTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTemplate.</param> /// /// <returns>Returns a GetTemplateResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual GetTemplateResponse EndGetTemplate(IAsyncResult asyncResult) { return EndInvoke<GetTemplateResponse>(asyncResult); } #endregion #region GetTemplateSummary /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return Invoke<GetTemplateSummaryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetTemplateSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary 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 EndGetTemplateSummary /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual IAsyncResult BeginGetTemplateSummary(GetTemplateSummaryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetTemplateSummary operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTemplateSummary.</param> /// /// <returns>Returns a GetTemplateSummaryResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual GetTemplateSummaryResponse EndGetTemplateSummary(IAsyncResult asyncResult) { return EndInvoke<GetTemplateSummaryResponse>(asyncResult); } #endregion #region ImportStacksToStackSet /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual ImportStacksToStackSetResponse ImportStacksToStackSet(ImportStacksToStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return Invoke<ImportStacksToStackSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ImportStacksToStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet 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 EndImportStacksToStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual IAsyncResult BeginImportStacksToStackSet(ImportStacksToStackSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ImportStacksToStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportStacksToStackSet.</param> /// /// <returns>Returns a ImportStacksToStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual ImportStacksToStackSetResponse EndImportStacksToStackSet(IAsyncResult asyncResult) { return EndInvoke<ImportStacksToStackSetResponse>(asyncResult); } #endregion #region ListChangeSets /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return Invoke<ListChangeSetsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListChangeSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListChangeSets 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 EndListChangeSets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual IAsyncResult BeginListChangeSets(ListChangeSetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListChangeSets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListChangeSets.</param> /// /// <returns>Returns a ListChangeSetsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual ListChangeSetsResponse EndListChangeSets(IAsyncResult asyncResult) { return EndInvoke<ListChangeSetsResponse>(asyncResult); } #endregion #region ListExports /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual ListExportsResponse ListExports(ListExportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return Invoke<ListExportsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListExports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListExports 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 EndListExports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual IAsyncResult BeginListExports(ListExportsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListExports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListExports.</param> /// /// <returns>Returns a ListExportsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual ListExportsResponse EndListExports(IAsyncResult asyncResult) { return EndInvoke<ListExportsResponse>(asyncResult); } #endregion #region ListImports /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual ListImportsResponse ListImports(ListImportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return Invoke<ListImportsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListImports 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 EndListImports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual IAsyncResult BeginListImports(ListImportsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListImports.</param> /// /// <returns>Returns a ListImportsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual ListImportsResponse EndListImports(IAsyncResult asyncResult) { return EndInvoke<ListImportsResponse>(asyncResult); } #endregion #region ListStackInstances /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return Invoke<ListStackInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackInstances 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 EndListStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual IAsyncResult BeginListStackInstances(ListStackInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackInstances.</param> /// /// <returns>Returns a ListStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual ListStackInstancesResponse EndListStackInstances(IAsyncResult asyncResult) { return EndInvoke<ListStackInstancesResponse>(asyncResult); } #endregion #region ListStackResources /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return Invoke<ListStackResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStackResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackResources 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 EndListStackResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual IAsyncResult BeginListStackResources(ListStackResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStackResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackResources.</param> /// /// <returns>Returns a ListStackResourcesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual ListStackResourcesResponse EndListStackResources(IAsyncResult asyncResult) { return EndInvoke<ListStackResourcesResponse>(asyncResult); } #endregion #region ListStacks /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual ListStacksResponse ListStacks() { return ListStacks(new ListStacksRequest()); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual ListStacksResponse ListStacks(ListStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return Invoke<ListStacksResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStacks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStacks 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 EndListStacks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual IAsyncResult BeginListStacks(ListStacksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStacks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStacks.</param> /// /// <returns>Returns a ListStacksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual ListStacksResponse EndListStacks(IAsyncResult asyncResult) { return EndInvoke<ListStacksResponse>(asyncResult); } #endregion #region ListStackSetOperationResults /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationResultsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStackSetOperationResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults 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 EndListStackSetOperationResults /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual IAsyncResult BeginListStackSetOperationResults(ListStackSetOperationResultsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStackSetOperationResults operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSetOperationResults.</param> /// /// <returns>Returns a ListStackSetOperationResultsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual ListStackSetOperationResultsResponse EndListStackSetOperationResults(IAsyncResult asyncResult) { return EndInvoke<ListStackSetOperationResultsResponse>(asyncResult); } #endregion #region ListStackSetOperations /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStackSetOperations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations 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 EndListStackSetOperations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual IAsyncResult BeginListStackSetOperations(ListStackSetOperationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStackSetOperations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSetOperations.</param> /// /// <returns>Returns a ListStackSetOperationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual ListStackSetOperationsResponse EndListStackSetOperations(IAsyncResult asyncResult) { return EndInvoke<ListStackSetOperationsResponse>(asyncResult); } #endregion #region ListStackSets /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual ListStackSetsResponse ListStackSets(ListStackSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return Invoke<ListStackSetsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListStackSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSets 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 EndListStackSets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual IAsyncResult BeginListStackSets(ListStackSetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListStackSets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSets.</param> /// /// <returns>Returns a ListStackSetsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual ListStackSetsResponse EndListStackSets(IAsyncResult asyncResult) { return EndInvoke<ListStackSetsResponse>(asyncResult); } #endregion #region ListTypeRegistrations /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return Invoke<ListTypeRegistrationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTypeRegistrations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations 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 EndListTypeRegistrations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual IAsyncResult BeginListTypeRegistrations(ListTypeRegistrationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTypeRegistrations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypeRegistrations.</param> /// /// <returns>Returns a ListTypeRegistrationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual ListTypeRegistrationsResponse EndListTypeRegistrations(IAsyncResult asyncResult) { return EndInvoke<ListTypeRegistrationsResponse>(asyncResult); } #endregion #region ListTypes /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 EndListTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual IAsyncResult BeginListTypes(ListTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypes.</param> /// /// <returns>Returns a ListTypesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse EndListTypes(IAsyncResult asyncResult) { return EndInvoke<ListTypesResponse>(asyncResult); } #endregion #region ListTypeVersions /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return Invoke<ListTypeVersionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTypeVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions 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 EndListTypeVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual IAsyncResult BeginListTypeVersions(ListTypeVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTypeVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypeVersions.</param> /// /// <returns>Returns a ListTypeVersionsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual ListTypeVersionsResponse EndListTypeVersions(IAsyncResult asyncResult) { return EndInvoke<ListTypeVersionsResponse>(asyncResult); } #endregion #region PublishType /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual PublishTypeResponse PublishType(PublishTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return Invoke<PublishTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PublishType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PublishType 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 EndPublishType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual IAsyncResult BeginPublishType(PublishTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PublishType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPublishType.</param> /// /// <returns>Returns a PublishTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual PublishTypeResponse EndPublishType(IAsyncResult asyncResult) { return EndInvoke<PublishTypeResponse>(asyncResult); } #endregion #region RecordHandlerProgress /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return Invoke<RecordHandlerProgressResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RecordHandlerProgress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress 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 EndRecordHandlerProgress /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual IAsyncResult BeginRecordHandlerProgress(RecordHandlerProgressRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RecordHandlerProgress operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRecordHandlerProgress.</param> /// /// <returns>Returns a RecordHandlerProgressResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual RecordHandlerProgressResponse EndRecordHandlerProgress(IAsyncResult asyncResult) { return EndInvoke<RecordHandlerProgressResponse>(asyncResult); } #endregion #region RegisterPublisher /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual RegisterPublisherResponse RegisterPublisher(RegisterPublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return Invoke<RegisterPublisherResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RegisterPublisher operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher 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 EndRegisterPublisher /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual IAsyncResult BeginRegisterPublisher(RegisterPublisherRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RegisterPublisher operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterPublisher.</param> /// /// <returns>Returns a RegisterPublisherResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual RegisterPublisherResponse EndRegisterPublisher(IAsyncResult asyncResult) { return EndInvoke<RegisterPublisherResponse>(asyncResult); } #endregion #region RegisterType /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual RegisterTypeResponse RegisterType(RegisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return Invoke<RegisterTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RegisterType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterType 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 EndRegisterType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual IAsyncResult BeginRegisterType(RegisterTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RegisterType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterType.</param> /// /// <returns>Returns a RegisterTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual RegisterTypeResponse EndRegisterType(IAsyncResult asyncResult) { return EndInvoke<RegisterTypeResponse>(asyncResult); } #endregion #region RollbackStack /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual RollbackStackResponse RollbackStack(RollbackStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return Invoke<RollbackStackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RollbackStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RollbackStack 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 EndRollbackStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual IAsyncResult BeginRollbackStack(RollbackStackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RollbackStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRollbackStack.</param> /// /// <returns>Returns a RollbackStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual RollbackStackResponse EndRollbackStack(IAsyncResult asyncResult) { return EndInvoke<RollbackStackResponse>(asyncResult); } #endregion #region SetStackPolicy /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return Invoke<SetStackPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetStackPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy 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 EndSetStackPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual IAsyncResult BeginSetStackPolicy(SetStackPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetStackPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetStackPolicy.</param> /// /// <returns>Returns a SetStackPolicyResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual SetStackPolicyResponse EndSetStackPolicy(IAsyncResult asyncResult) { return EndInvoke<SetStackPolicyResponse>(asyncResult); } #endregion #region SetTypeConfiguration /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual SetTypeConfigurationResponse SetTypeConfiguration(SetTypeConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return Invoke<SetTypeConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetTypeConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration 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 EndSetTypeConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual IAsyncResult BeginSetTypeConfiguration(SetTypeConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetTypeConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetTypeConfiguration.</param> /// /// <returns>Returns a SetTypeConfigurationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual SetTypeConfigurationResponse EndSetTypeConfiguration(IAsyncResult asyncResult) { return EndInvoke<SetTypeConfigurationResponse>(asyncResult); } #endregion #region SetTypeDefaultVersion /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return Invoke<SetTypeDefaultVersionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetTypeDefaultVersion operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion 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 EndSetTypeDefaultVersion /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual IAsyncResult BeginSetTypeDefaultVersion(SetTypeDefaultVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetTypeDefaultVersion operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetTypeDefaultVersion.</param> /// /// <returns>Returns a SetTypeDefaultVersionResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual SetTypeDefaultVersionResponse EndSetTypeDefaultVersion(IAsyncResult asyncResult) { return EndInvoke<SetTypeDefaultVersionResponse>(asyncResult); } #endregion #region SignalResource /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual SignalResourceResponse SignalResource(SignalResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return Invoke<SignalResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SignalResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SignalResource 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 EndSignalResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual IAsyncResult BeginSignalResource(SignalResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SignalResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSignalResource.</param> /// /// <returns>Returns a SignalResourceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual SignalResourceResponse EndSignalResource(IAsyncResult asyncResult) { return EndInvoke<SignalResourceResponse>(asyncResult); } #endregion #region StopStackSetOperation /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return Invoke<StopStackSetOperationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StopStackSetOperation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation 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 EndStopStackSetOperation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual IAsyncResult BeginStopStackSetOperation(StopStackSetOperationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StopStackSetOperation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopStackSetOperation.</param> /// /// <returns>Returns a StopStackSetOperationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual StopStackSetOperationResponse EndStopStackSetOperation(IAsyncResult asyncResult) { return EndInvoke<StopStackSetOperationResponse>(asyncResult); } #endregion #region TestType /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual TestTypeResponse TestType(TestTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return Invoke<TestTypeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TestType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TestType 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 EndTestType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual IAsyncResult BeginTestType(TestTypeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TestType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestType.</param> /// /// <returns>Returns a TestTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual TestTypeResponse EndTestType(IAsyncResult asyncResult) { return EndInvoke<TestTypeResponse>(asyncResult); } #endregion #region UpdateStack /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual UpdateStackResponse UpdateStack(UpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return Invoke<UpdateStackResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStack 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 EndUpdateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual IAsyncResult BeginUpdateStack(UpdateStackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStack.</param> /// /// <returns>Returns a UpdateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual UpdateStackResponse EndUpdateStack(IAsyncResult asyncResult) { return EndInvoke<UpdateStackResponse>(asyncResult); } #endregion #region UpdateStackInstances /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return Invoke<UpdateStackInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances 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 EndUpdateStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual IAsyncResult BeginUpdateStackInstances(UpdateStackInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStackInstances.</param> /// /// <returns>Returns a UpdateStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual UpdateStackInstancesResponse EndUpdateStackInstances(IAsyncResult asyncResult) { return EndInvoke<UpdateStackInstancesResponse>(asyncResult); } #endregion #region UpdateStackSet /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return Invoke<UpdateStackSetResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet 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 EndUpdateStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual IAsyncResult BeginUpdateStackSet(UpdateStackSetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStackSet.</param> /// /// <returns>Returns a UpdateStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual UpdateStackSetResponse EndUpdateStackSet(IAsyncResult asyncResult) { return EndInvoke<UpdateStackSetResponse>(asyncResult); } #endregion #region UpdateTerminationProtection /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return Invoke<UpdateTerminationProtectionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateTerminationProtection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection 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 EndUpdateTerminationProtection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual IAsyncResult BeginUpdateTerminationProtection(UpdateTerminationProtectionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateTerminationProtection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateTerminationProtection.</param> /// /// <returns>Returns a UpdateTerminationProtectionResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual UpdateTerminationProtectionResponse EndUpdateTerminationProtection(IAsyncResult asyncResult) { return EndInvoke<UpdateTerminationProtectionResponse>(asyncResult); } #endregion #region ValidateTemplate /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual ValidateTemplateResponse ValidateTemplate() { return ValidateTemplate(new ValidateTemplateRequest()); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return Invoke<ValidateTemplateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ValidateTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate 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 EndValidateTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual IAsyncResult BeginValidateTemplate(ValidateTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ValidateTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginValidateTemplate.</param> /// /// <returns>Returns a ValidateTemplateResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual ValidateTemplateResponse EndValidateTemplate(IAsyncResult asyncResult) { return EndInvoke<ValidateTemplateResponse>(asyncResult); } #endregion } }
5,124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudFormation.Model; namespace Amazon.CloudFormation { /// <summary> /// Interface for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial interface IAmazonCloudFormation : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudFormationPaginatorFactory Paginators { get; } #endif #region ActivateOrganizationsAccess /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> ActivateOrganizationsAccessResponse ActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request); /// <summary> /// Initiates the asynchronous execution of the ActivateOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess 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 EndActivateOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> IAsyncResult BeginActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ActivateOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateOrganizationsAccess.</param> /// /// <returns>Returns a ActivateOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> ActivateOrganizationsAccessResponse EndActivateOrganizationsAccess(IAsyncResult asyncResult); #endregion #region ActivateType /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> ActivateTypeResponse ActivateType(ActivateTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the ActivateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ActivateType 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 EndActivateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> IAsyncResult BeginActivateType(ActivateTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ActivateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginActivateType.</param> /// /// <returns>Returns a ActivateTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> ActivateTypeResponse EndActivateType(IAsyncResult asyncResult); #endregion #region BatchDescribeTypeConfigurations /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> BatchDescribeTypeConfigurationsResponse BatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchDescribeTypeConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations 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 EndBatchDescribeTypeConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> IAsyncResult BeginBatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchDescribeTypeConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDescribeTypeConfigurations.</param> /// /// <returns>Returns a BatchDescribeTypeConfigurationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> BatchDescribeTypeConfigurationsResponse EndBatchDescribeTypeConfigurations(IAsyncResult asyncResult); #endregion #region CancelUpdateStack /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelUpdateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack 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 EndCancelUpdateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> IAsyncResult BeginCancelUpdateStack(CancelUpdateStackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelUpdateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelUpdateStack.</param> /// /// <returns>Returns a CancelUpdateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> CancelUpdateStackResponse EndCancelUpdateStack(IAsyncResult asyncResult); #endregion #region ContinueUpdateRollback /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request); /// <summary> /// Initiates the asynchronous execution of the ContinueUpdateRollback operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback 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 EndContinueUpdateRollback /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> IAsyncResult BeginContinueUpdateRollback(ContinueUpdateRollbackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ContinueUpdateRollback operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginContinueUpdateRollback.</param> /// /// <returns>Returns a ContinueUpdateRollbackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> ContinueUpdateRollbackResponse EndContinueUpdateRollback(IAsyncResult asyncResult); #endregion #region CreateChangeSet /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </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"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request); /// <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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> IAsyncResult BeginCreateChangeSet(CreateChangeSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateChangeSet.</param> /// /// <returns>Returns a CreateChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> CreateChangeSetResponse EndCreateChangeSet(IAsyncResult asyncResult); #endregion #region CreateStack /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> CreateStackResponse CreateStack(CreateStackRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStack 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 EndCreateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> IAsyncResult BeginCreateStack(CreateStackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStack.</param> /// /// <returns>Returns a CreateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> CreateStackResponse EndCreateStack(IAsyncResult asyncResult); #endregion #region CreateStackInstances /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances 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 EndCreateStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> IAsyncResult BeginCreateStackInstances(CreateStackInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStackInstances.</param> /// /// <returns>Returns a CreateStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> CreateStackInstancesResponse EndCreateStackInstances(IAsyncResult asyncResult); #endregion #region CreateStackSet /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> CreateStackSetResponse CreateStackSet(CreateStackSetRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateStackSet 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 EndCreateStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> IAsyncResult BeginCreateStackSet(CreateStackSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStackSet.</param> /// /// <returns>Returns a CreateStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> CreateStackSetResponse EndCreateStackSet(IAsyncResult asyncResult); #endregion #region DeactivateOrganizationsAccess /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> DeactivateOrganizationsAccessResponse DeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request); /// <summary> /// Initiates the asynchronous execution of the DeactivateOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess 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 EndDeactivateOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> IAsyncResult BeginDeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeactivateOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateOrganizationsAccess.</param> /// /// <returns>Returns a DeactivateOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> DeactivateOrganizationsAccessResponse EndDeactivateOrganizationsAccess(IAsyncResult asyncResult); #endregion #region DeactivateType /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> DeactivateTypeResponse DeactivateType(DeactivateTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the DeactivateType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeactivateType 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 EndDeactivateType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> IAsyncResult BeginDeactivateType(DeactivateTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeactivateType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeactivateType.</param> /// /// <returns>Returns a DeactivateTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> DeactivateTypeResponse EndDeactivateType(IAsyncResult asyncResult); #endregion #region DeleteChangeSet /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet 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 EndDeleteChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> IAsyncResult BeginDeleteChangeSet(DeleteChangeSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteChangeSet.</param> /// /// <returns>Returns a DeleteChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> DeleteChangeSetResponse EndDeleteChangeSet(IAsyncResult asyncResult); #endregion #region DeleteStack /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> DeleteStackResponse DeleteStack(DeleteStackRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStack 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 EndDeleteStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> IAsyncResult BeginDeleteStack(DeleteStackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStack.</param> /// /// <returns>Returns a DeleteStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> DeleteStackResponse EndDeleteStack(IAsyncResult asyncResult); #endregion #region DeleteStackInstances /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances 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 EndDeleteStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> IAsyncResult BeginDeleteStackInstances(DeleteStackInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStackInstances.</param> /// /// <returns>Returns a DeleteStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> DeleteStackInstancesResponse EndDeleteStackInstances(IAsyncResult asyncResult); #endregion #region DeleteStackSet /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet 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 EndDeleteStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> IAsyncResult BeginDeleteStackSet(DeleteStackSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStackSet.</param> /// /// <returns>Returns a DeleteStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> DeleteStackSetResponse EndDeleteStackSet(IAsyncResult asyncResult); #endregion #region DeregisterType /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the DeregisterType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeregisterType 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 EndDeregisterType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> IAsyncResult BeginDeregisterType(DeregisterTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeregisterType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeregisterType.</param> /// /// <returns>Returns a DeregisterTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> DeregisterTypeResponse EndDeregisterType(IAsyncResult asyncResult); #endregion #region DescribeAccountLimits /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits 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 EndDescribeAccountLimits /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> IAsyncResult BeginDescribeAccountLimits(DescribeAccountLimitsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAccountLimits.</param> /// /// <returns>Returns a DescribeAccountLimitsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse EndDescribeAccountLimits(IAsyncResult asyncResult); #endregion #region DescribeChangeSet /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet 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 EndDescribeChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> IAsyncResult BeginDescribeChangeSet(DescribeChangeSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeChangeSet.</param> /// /// <returns>Returns a DescribeChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> DescribeChangeSetResponse EndDescribeChangeSet(IAsyncResult asyncResult); #endregion #region DescribeChangeSetHooks /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> DescribeChangeSetHooksResponse DescribeChangeSetHooks(DescribeChangeSetHooksRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeChangeSetHooks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks 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 EndDescribeChangeSetHooks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> IAsyncResult BeginDescribeChangeSetHooks(DescribeChangeSetHooksRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeChangeSetHooks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeChangeSetHooks.</param> /// /// <returns>Returns a DescribeChangeSetHooksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> DescribeChangeSetHooksResponse EndDescribeChangeSetHooks(IAsyncResult asyncResult); #endregion #region DescribeOrganizationsAccess /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> DescribeOrganizationsAccessResponse DescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeOrganizationsAccess operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess 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 EndDescribeOrganizationsAccess /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> IAsyncResult BeginDescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeOrganizationsAccess operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeOrganizationsAccess.</param> /// /// <returns>Returns a DescribeOrganizationsAccessResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> DescribeOrganizationsAccessResponse EndDescribeOrganizationsAccess(IAsyncResult asyncResult); #endregion #region DescribePublisher /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> DescribePublisherResponse DescribePublisher(DescribePublisherRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribePublisher operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribePublisher 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 EndDescribePublisher /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> IAsyncResult BeginDescribePublisher(DescribePublisherRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribePublisher operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePublisher.</param> /// /// <returns>Returns a DescribePublisherResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> DescribePublisherResponse EndDescribePublisher(IAsyncResult asyncResult); #endregion #region DescribeStackDriftDetectionStatus /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackDriftDetectionStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus 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 EndDescribeStackDriftDetectionStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> IAsyncResult BeginDescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackDriftDetectionStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackDriftDetectionStatus.</param> /// /// <returns>Returns a DescribeStackDriftDetectionStatusResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> DescribeStackDriftDetectionStatusResponse EndDescribeStackDriftDetectionStatus(IAsyncResult asyncResult); #endregion #region DescribeStackEvents /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackEvents operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents 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 EndDescribeStackEvents /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> IAsyncResult BeginDescribeStackEvents(DescribeStackEventsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackEvents operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackEvents.</param> /// /// <returns>Returns a DescribeStackEventsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> DescribeStackEventsResponse EndDescribeStackEvents(IAsyncResult asyncResult); #endregion #region DescribeStackInstance /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackInstance operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance 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 EndDescribeStackInstance /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> IAsyncResult BeginDescribeStackInstance(DescribeStackInstanceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackInstance operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackInstance.</param> /// /// <returns>Returns a DescribeStackInstanceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> DescribeStackInstanceResponse EndDescribeStackInstance(IAsyncResult asyncResult); #endregion #region DescribeStackResource /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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 EndDescribeStackResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> IAsyncResult BeginDescribeStackResource(DescribeStackResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResource.</param> /// /// <returns>Returns a DescribeStackResourceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> DescribeStackResourceResponse EndDescribeStackResource(IAsyncResult asyncResult); #endregion #region DescribeStackResourceDrifts /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackResourceDrifts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts 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 EndDescribeStackResourceDrifts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> IAsyncResult BeginDescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackResourceDrifts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResourceDrifts.</param> /// /// <returns>Returns a DescribeStackResourceDriftsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> DescribeStackResourceDriftsResponse EndDescribeStackResourceDrifts(IAsyncResult asyncResult); #endregion #region DescribeStackResources /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources 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 EndDescribeStackResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> IAsyncResult BeginDescribeStackResources(DescribeStackResourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackResources.</param> /// /// <returns>Returns a DescribeStackResourcesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> DescribeStackResourcesResponse EndDescribeStackResources(IAsyncResult asyncResult); #endregion #region DescribeStacks /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> DescribeStacksResponse DescribeStacks(); /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> DescribeStacksResponse DescribeStacks(DescribeStacksRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStacks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStacks 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 EndDescribeStacks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> IAsyncResult BeginDescribeStacks(DescribeStacksRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStacks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStacks.</param> /// /// <returns>Returns a DescribeStacksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> DescribeStacksResponse EndDescribeStacks(IAsyncResult asyncResult); #endregion #region DescribeStackSet /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet 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 EndDescribeStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> IAsyncResult BeginDescribeStackSet(DescribeStackSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackSet.</param> /// /// <returns>Returns a DescribeStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> DescribeStackSetResponse EndDescribeStackSet(IAsyncResult asyncResult); #endregion #region DescribeStackSetOperation /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeStackSetOperation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation 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 EndDescribeStackSetOperation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> IAsyncResult BeginDescribeStackSetOperation(DescribeStackSetOperationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeStackSetOperation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeStackSetOperation.</param> /// /// <returns>Returns a DescribeStackSetOperationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> DescribeStackSetOperationResponse EndDescribeStackSetOperation(IAsyncResult asyncResult); #endregion #region DescribeType /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> DescribeTypeResponse DescribeType(DescribeTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeType 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 EndDescribeType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> IAsyncResult BeginDescribeType(DescribeTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeType.</param> /// /// <returns>Returns a DescribeTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> DescribeTypeResponse EndDescribeType(IAsyncResult asyncResult); #endregion #region DescribeTypeRegistration /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeTypeRegistration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration 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 EndDescribeTypeRegistration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> IAsyncResult BeginDescribeTypeRegistration(DescribeTypeRegistrationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeTypeRegistration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTypeRegistration.</param> /// /// <returns>Returns a DescribeTypeRegistrationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> DescribeTypeRegistrationResponse EndDescribeTypeRegistration(IAsyncResult asyncResult); #endregion #region DetectStackDrift /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request); /// <summary> /// Initiates the asynchronous execution of the DetectStackDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift 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 EndDetectStackDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> IAsyncResult BeginDetectStackDrift(DetectStackDriftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetectStackDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackDrift.</param> /// /// <returns>Returns a DetectStackDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> DetectStackDriftResponse EndDetectStackDrift(IAsyncResult asyncResult); #endregion #region DetectStackResourceDrift /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request); /// <summary> /// Initiates the asynchronous execution of the DetectStackResourceDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift 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 EndDetectStackResourceDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> IAsyncResult BeginDetectStackResourceDrift(DetectStackResourceDriftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetectStackResourceDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackResourceDrift.</param> /// /// <returns>Returns a DetectStackResourceDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> DetectStackResourceDriftResponse EndDetectStackResourceDrift(IAsyncResult asyncResult); #endregion #region DetectStackSetDrift /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request); /// <summary> /// Initiates the asynchronous execution of the DetectStackSetDrift operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift 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 EndDetectStackSetDrift /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> IAsyncResult BeginDetectStackSetDrift(DetectStackSetDriftRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetectStackSetDrift operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetectStackSetDrift.</param> /// /// <returns>Returns a DetectStackSetDriftResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> DetectStackSetDriftResponse EndDetectStackSetDrift(IAsyncResult asyncResult); #endregion #region EstimateTemplateCost /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request); /// <summary> /// Initiates the asynchronous execution of the EstimateTemplateCost operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost 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 EndEstimateTemplateCost /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> IAsyncResult BeginEstimateTemplateCost(EstimateTemplateCostRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EstimateTemplateCost operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEstimateTemplateCost.</param> /// /// <returns>Returns a EstimateTemplateCostResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> EstimateTemplateCostResponse EndEstimateTemplateCost(IAsyncResult asyncResult); #endregion #region ExecuteChangeSet /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request); /// <summary> /// Initiates the asynchronous execution of the ExecuteChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet 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 EndExecuteChangeSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> IAsyncResult BeginExecuteChangeSet(ExecuteChangeSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExecuteChangeSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecuteChangeSet.</param> /// /// <returns>Returns a ExecuteChangeSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> ExecuteChangeSetResponse EndExecuteChangeSet(IAsyncResult asyncResult); #endregion #region GetStackPolicy /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the GetStackPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy 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 EndGetStackPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> IAsyncResult BeginGetStackPolicy(GetStackPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetStackPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetStackPolicy.</param> /// /// <returns>Returns a GetStackPolicyResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> GetStackPolicyResponse EndGetStackPolicy(IAsyncResult asyncResult); #endregion #region GetTemplate /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> GetTemplateResponse GetTemplate(GetTemplateRequest request); /// <summary> /// Initiates the asynchronous execution of the GetTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTemplate 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 EndGetTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> IAsyncResult BeginGetTemplate(GetTemplateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTemplate.</param> /// /// <returns>Returns a GetTemplateResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> GetTemplateResponse EndGetTemplate(IAsyncResult asyncResult); #endregion #region GetTemplateSummary /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request); /// <summary> /// Initiates the asynchronous execution of the GetTemplateSummary operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary 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 EndGetTemplateSummary /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> IAsyncResult BeginGetTemplateSummary(GetTemplateSummaryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetTemplateSummary operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTemplateSummary.</param> /// /// <returns>Returns a GetTemplateSummaryResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> GetTemplateSummaryResponse EndGetTemplateSummary(IAsyncResult asyncResult); #endregion #region ImportStacksToStackSet /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> ImportStacksToStackSetResponse ImportStacksToStackSet(ImportStacksToStackSetRequest request); /// <summary> /// Initiates the asynchronous execution of the ImportStacksToStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet 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 EndImportStacksToStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> IAsyncResult BeginImportStacksToStackSet(ImportStacksToStackSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ImportStacksToStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportStacksToStackSet.</param> /// /// <returns>Returns a ImportStacksToStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> ImportStacksToStackSetResponse EndImportStacksToStackSet(IAsyncResult asyncResult); #endregion #region ListChangeSets /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListChangeSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListChangeSets 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 EndListChangeSets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> IAsyncResult BeginListChangeSets(ListChangeSetsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListChangeSets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListChangeSets.</param> /// /// <returns>Returns a ListChangeSetsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> ListChangeSetsResponse EndListChangeSets(IAsyncResult asyncResult); #endregion #region ListExports /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> ListExportsResponse ListExports(ListExportsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListExports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListExports 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 EndListExports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> IAsyncResult BeginListExports(ListExportsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListExports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListExports.</param> /// /// <returns>Returns a ListExportsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> ListExportsResponse EndListExports(IAsyncResult asyncResult); #endregion #region ListImports /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> ListImportsResponse ListImports(ListImportsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListImports 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 EndListImports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> IAsyncResult BeginListImports(ListImportsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListImports.</param> /// /// <returns>Returns a ListImportsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> ListImportsResponse EndListImports(IAsyncResult asyncResult); #endregion #region ListStackInstances /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackInstances 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 EndListStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> IAsyncResult BeginListStackInstances(ListStackInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackInstances.</param> /// /// <returns>Returns a ListStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> ListStackInstancesResponse EndListStackInstances(IAsyncResult asyncResult); #endregion #region ListStackResources /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStackResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackResources 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 EndListStackResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> IAsyncResult BeginListStackResources(ListStackResourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStackResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackResources.</param> /// /// <returns>Returns a ListStackResourcesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> ListStackResourcesResponse EndListStackResources(IAsyncResult asyncResult); #endregion #region ListStacks /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> ListStacksResponse ListStacks(); /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> ListStacksResponse ListStacks(ListStacksRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStacks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStacks 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 EndListStacks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> IAsyncResult BeginListStacks(ListStacksRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStacks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStacks.</param> /// /// <returns>Returns a ListStacksResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> ListStacksResponse EndListStacks(IAsyncResult asyncResult); #endregion #region ListStackSetOperationResults /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStackSetOperationResults operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults 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 EndListStackSetOperationResults /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> IAsyncResult BeginListStackSetOperationResults(ListStackSetOperationResultsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStackSetOperationResults operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSetOperationResults.</param> /// /// <returns>Returns a ListStackSetOperationResultsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> ListStackSetOperationResultsResponse EndListStackSetOperationResults(IAsyncResult asyncResult); #endregion #region ListStackSetOperations /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStackSetOperations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations 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 EndListStackSetOperations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> IAsyncResult BeginListStackSetOperations(ListStackSetOperationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStackSetOperations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSetOperations.</param> /// /// <returns>Returns a ListStackSetOperationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> ListStackSetOperationsResponse EndListStackSetOperations(IAsyncResult asyncResult); #endregion #region ListStackSets /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> ListStackSetsResponse ListStackSets(ListStackSetsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListStackSets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStackSets 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 EndListStackSets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> IAsyncResult BeginListStackSets(ListStackSetsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListStackSets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStackSets.</param> /// /// <returns>Returns a ListStackSetsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> ListStackSetsResponse EndListStackSets(IAsyncResult asyncResult); #endregion #region ListTypeRegistrations /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTypeRegistrations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations 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 EndListTypeRegistrations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> IAsyncResult BeginListTypeRegistrations(ListTypeRegistrationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTypeRegistrations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypeRegistrations.</param> /// /// <returns>Returns a ListTypeRegistrationsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> ListTypeRegistrationsResponse EndListTypeRegistrations(IAsyncResult asyncResult); #endregion #region ListTypes /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse ListTypes(ListTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypes 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 EndListTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> IAsyncResult BeginListTypes(ListTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypes.</param> /// /// <returns>Returns a ListTypesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse EndListTypes(IAsyncResult asyncResult); #endregion #region ListTypeVersions /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTypeVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions 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 EndListTypeVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> IAsyncResult BeginListTypeVersions(ListTypeVersionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTypeVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTypeVersions.</param> /// /// <returns>Returns a ListTypeVersionsResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> ListTypeVersionsResponse EndListTypeVersions(IAsyncResult asyncResult); #endregion #region PublishType /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> PublishTypeResponse PublishType(PublishTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the PublishType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PublishType 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 EndPublishType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> IAsyncResult BeginPublishType(PublishTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PublishType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPublishType.</param> /// /// <returns>Returns a PublishTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> PublishTypeResponse EndPublishType(IAsyncResult asyncResult); #endregion #region RecordHandlerProgress /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request); /// <summary> /// Initiates the asynchronous execution of the RecordHandlerProgress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress 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 EndRecordHandlerProgress /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> IAsyncResult BeginRecordHandlerProgress(RecordHandlerProgressRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RecordHandlerProgress operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRecordHandlerProgress.</param> /// /// <returns>Returns a RecordHandlerProgressResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> RecordHandlerProgressResponse EndRecordHandlerProgress(IAsyncResult asyncResult); #endregion #region RegisterPublisher /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> RegisterPublisherResponse RegisterPublisher(RegisterPublisherRequest request); /// <summary> /// Initiates the asynchronous execution of the RegisterPublisher operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher 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 EndRegisterPublisher /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> IAsyncResult BeginRegisterPublisher(RegisterPublisherRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RegisterPublisher operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterPublisher.</param> /// /// <returns>Returns a RegisterPublisherResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> RegisterPublisherResponse EndRegisterPublisher(IAsyncResult asyncResult); #endregion #region RegisterType /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> RegisterTypeResponse RegisterType(RegisterTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the RegisterType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterType 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 EndRegisterType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> IAsyncResult BeginRegisterType(RegisterTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RegisterType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRegisterType.</param> /// /// <returns>Returns a RegisterTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> RegisterTypeResponse EndRegisterType(IAsyncResult asyncResult); #endregion #region RollbackStack /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> RollbackStackResponse RollbackStack(RollbackStackRequest request); /// <summary> /// Initiates the asynchronous execution of the RollbackStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RollbackStack 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 EndRollbackStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> IAsyncResult BeginRollbackStack(RollbackStackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RollbackStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRollbackStack.</param> /// /// <returns>Returns a RollbackStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> RollbackStackResponse EndRollbackStack(IAsyncResult asyncResult); #endregion #region SetStackPolicy /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the SetStackPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy 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 EndSetStackPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> IAsyncResult BeginSetStackPolicy(SetStackPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetStackPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetStackPolicy.</param> /// /// <returns>Returns a SetStackPolicyResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> SetStackPolicyResponse EndSetStackPolicy(IAsyncResult asyncResult); #endregion #region SetTypeConfiguration /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> SetTypeConfigurationResponse SetTypeConfiguration(SetTypeConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the SetTypeConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration 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 EndSetTypeConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> IAsyncResult BeginSetTypeConfiguration(SetTypeConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetTypeConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetTypeConfiguration.</param> /// /// <returns>Returns a SetTypeConfigurationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> SetTypeConfigurationResponse EndSetTypeConfiguration(IAsyncResult asyncResult); #endregion #region SetTypeDefaultVersion /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request); /// <summary> /// Initiates the asynchronous execution of the SetTypeDefaultVersion operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion 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 EndSetTypeDefaultVersion /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> IAsyncResult BeginSetTypeDefaultVersion(SetTypeDefaultVersionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetTypeDefaultVersion operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetTypeDefaultVersion.</param> /// /// <returns>Returns a SetTypeDefaultVersionResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> SetTypeDefaultVersionResponse EndSetTypeDefaultVersion(IAsyncResult asyncResult); #endregion #region SignalResource /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> SignalResourceResponse SignalResource(SignalResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the SignalResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SignalResource 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 EndSignalResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> IAsyncResult BeginSignalResource(SignalResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SignalResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSignalResource.</param> /// /// <returns>Returns a SignalResourceResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> SignalResourceResponse EndSignalResource(IAsyncResult asyncResult); #endregion #region StopStackSetOperation /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request); /// <summary> /// Initiates the asynchronous execution of the StopStackSetOperation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation 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 EndStopStackSetOperation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> IAsyncResult BeginStopStackSetOperation(StopStackSetOperationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StopStackSetOperation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopStackSetOperation.</param> /// /// <returns>Returns a StopStackSetOperationResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> StopStackSetOperationResponse EndStopStackSetOperation(IAsyncResult asyncResult); #endregion #region TestType /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> TestTypeResponse TestType(TestTypeRequest request); /// <summary> /// Initiates the asynchronous execution of the TestType operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TestType 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 EndTestType /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> IAsyncResult BeginTestType(TestTypeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TestType operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestType.</param> /// /// <returns>Returns a TestTypeResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> TestTypeResponse EndTestType(IAsyncResult asyncResult); #endregion #region UpdateStack /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> UpdateStackResponse UpdateStack(UpdateStackRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateStack operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStack 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 EndUpdateStack /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> IAsyncResult BeginUpdateStack(UpdateStackRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateStack operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStack.</param> /// /// <returns>Returns a UpdateStackResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> UpdateStackResponse EndUpdateStack(IAsyncResult asyncResult); #endregion #region UpdateStackInstances /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateStackInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances 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 EndUpdateStackInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> IAsyncResult BeginUpdateStackInstances(UpdateStackInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateStackInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStackInstances.</param> /// /// <returns>Returns a UpdateStackInstancesResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> UpdateStackInstancesResponse EndUpdateStackInstances(IAsyncResult asyncResult); #endregion #region UpdateStackSet /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateStackSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet 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 EndUpdateStackSet /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> IAsyncResult BeginUpdateStackSet(UpdateStackSetRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateStackSet operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStackSet.</param> /// /// <returns>Returns a UpdateStackSetResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> UpdateStackSetResponse EndUpdateStackSet(IAsyncResult asyncResult); #endregion #region UpdateTerminationProtection /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateTerminationProtection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection 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 EndUpdateTerminationProtection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> IAsyncResult BeginUpdateTerminationProtection(UpdateTerminationProtectionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateTerminationProtection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateTerminationProtection.</param> /// /// <returns>Returns a UpdateTerminationProtectionResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> UpdateTerminationProtectionResponse EndUpdateTerminationProtection(IAsyncResult asyncResult); #endregion #region ValidateTemplate /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> ValidateTemplateResponse ValidateTemplate(); /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request); /// <summary> /// Initiates the asynchronous execution of the ValidateTemplate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate 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 EndValidateTemplate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> IAsyncResult BeginValidateTemplate(ValidateTemplateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ValidateTemplate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginValidateTemplate.</param> /// /// <returns>Returns a ValidateTemplateResult from CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> ValidateTemplateResponse EndValidateTemplate(IAsyncResult asyncResult); #endregion } }
3,928
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CloudFormation.Model; using Amazon.CloudFormation.Model.Internal.MarshallTransformations; using Amazon.CloudFormation.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudFormation { /// <summary> /// Implementation for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial class AmazonCloudFormationClient : AmazonServiceClient, IAmazonCloudFormation { private static IServiceMetadata serviceMetadata = new AmazonCloudFormationMetadata(); private ICloudFormationPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudFormationPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudFormationPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudFormationClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AmazonCloudFormationConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudFormationClient(AWSCredentials credentials) : this(credentials, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AWSCredentials credentials, AmazonCloudFormationConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudFormation.Internal.ProcessRequestHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudFormationEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region ActivateOrganizationsAccess /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual ActivateOrganizationsAccessResponse ActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<ActivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual Task<ActivateOrganizationsAccessResponse> ActivateOrganizationsAccessAsync(ActivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<ActivateOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region ActivateType /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual ActivateTypeResponse ActivateType(ActivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return Invoke<ActivateTypeResponse>(request, options); } /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual Task<ActivateTypeResponse> ActivateTypeAsync(ActivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return InvokeAsync<ActivateTypeResponse>(request, options, cancellationToken); } #endregion #region BatchDescribeTypeConfigurations /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual BatchDescribeTypeConfigurationsResponse BatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return Invoke<BatchDescribeTypeConfigurationsResponse>(request, options); } /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual Task<BatchDescribeTypeConfigurationsResponse> BatchDescribeTypeConfigurationsAsync(BatchDescribeTypeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<BatchDescribeTypeConfigurationsResponse>(request, options, cancellationToken); } #endregion #region CancelUpdateStack /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return Invoke<CancelUpdateStackResponse>(request, options); } /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual Task<CancelUpdateStackResponse> CancelUpdateStackAsync(CancelUpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return InvokeAsync<CancelUpdateStackResponse>(request, options, cancellationToken); } #endregion #region ContinueUpdateRollback /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return Invoke<ContinueUpdateRollbackResponse>(request, options); } /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual Task<ContinueUpdateRollbackResponse> ContinueUpdateRollbackAsync(ContinueUpdateRollbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return InvokeAsync<ContinueUpdateRollbackResponse>(request, options, cancellationToken); } #endregion #region CreateChangeSet /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </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"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return Invoke<CreateChangeSetResponse>(request, options); } /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual Task<CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return InvokeAsync<CreateChangeSetResponse>(request, options, cancellationToken); } #endregion #region CreateStack /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual CreateStackResponse CreateStack(CreateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return Invoke<CreateStackResponse>(request, options); } /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual Task<CreateStackResponse> CreateStackAsync(CreateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return InvokeAsync<CreateStackResponse>(request, options, cancellationToken); } #endregion #region CreateStackInstances /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return Invoke<CreateStackInstancesResponse>(request, options); } /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual Task<CreateStackInstancesResponse> CreateStackInstancesAsync(CreateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<CreateStackInstancesResponse>(request, options, cancellationToken); } #endregion #region CreateStackSet /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual CreateStackSetResponse CreateStackSet(CreateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return Invoke<CreateStackSetResponse>(request, options); } /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual Task<CreateStackSetResponse> CreateStackSetAsync(CreateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return InvokeAsync<CreateStackSetResponse>(request, options, cancellationToken); } #endregion #region DeactivateOrganizationsAccess /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual DeactivateOrganizationsAccessResponse DeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DeactivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual Task<DeactivateOrganizationsAccessResponse> DeactivateOrganizationsAccessAsync(DeactivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<DeactivateOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region DeactivateType /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual DeactivateTypeResponse DeactivateType(DeactivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return Invoke<DeactivateTypeResponse>(request, options); } /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual Task<DeactivateTypeResponse> DeactivateTypeAsync(DeactivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return InvokeAsync<DeactivateTypeResponse>(request, options, cancellationToken); } #endregion #region DeleteChangeSet /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return Invoke<DeleteChangeSetResponse>(request, options); } /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual Task<DeleteChangeSetResponse> DeleteChangeSetAsync(DeleteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return InvokeAsync<DeleteChangeSetResponse>(request, options, cancellationToken); } #endregion #region DeleteStack /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual DeleteStackResponse DeleteStack(DeleteStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return Invoke<DeleteStackResponse>(request, options); } /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual Task<DeleteStackResponse> DeleteStackAsync(DeleteStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackResponse>(request, options, cancellationToken); } #endregion #region DeleteStackInstances /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return Invoke<DeleteStackInstancesResponse>(request, options); } /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual Task<DeleteStackInstancesResponse> DeleteStackInstancesAsync(DeleteStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackInstancesResponse>(request, options, cancellationToken); } #endregion #region DeleteStackSet /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return Invoke<DeleteStackSetResponse>(request, options); } /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual Task<DeleteStackSetResponse> DeleteStackSetAsync(DeleteStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackSetResponse>(request, options, cancellationToken); } #endregion #region DeregisterType /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return Invoke<DeregisterTypeResponse>(request, options); } /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual Task<DeregisterTypeResponse> DeregisterTypeAsync(DeregisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return InvokeAsync<DeregisterTypeResponse>(request, options, cancellationToken); } #endregion #region DescribeAccountLimits /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAccountLimitsResponse>(request, options, cancellationToken); } #endregion #region DescribeChangeSet /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetResponse>(request, options); } /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual Task<DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return InvokeAsync<DescribeChangeSetResponse>(request, options, cancellationToken); } #endregion #region DescribeChangeSetHooks /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual DescribeChangeSetHooksResponse DescribeChangeSetHooks(DescribeChangeSetHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetHooksResponse>(request, options); } /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual Task<DescribeChangeSetHooksResponse> DescribeChangeSetHooksAsync(DescribeChangeSetHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return InvokeAsync<DescribeChangeSetHooksResponse>(request, options, cancellationToken); } #endregion #region DescribeOrganizationsAccess /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual DescribeOrganizationsAccessResponse DescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DescribeOrganizationsAccessResponse>(request, options); } /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual Task<DescribeOrganizationsAccessResponse> DescribeOrganizationsAccessAsync(DescribeOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<DescribeOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region DescribePublisher /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual DescribePublisherResponse DescribePublisher(DescribePublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return Invoke<DescribePublisherResponse>(request, options); } /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual Task<DescribePublisherResponse> DescribePublisherAsync(DescribePublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return InvokeAsync<DescribePublisherResponse>(request, options, cancellationToken); } #endregion #region DescribeStackDriftDetectionStatus /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return Invoke<DescribeStackDriftDetectionStatusResponse>(request, options); } /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual Task<DescribeStackDriftDetectionStatusResponse> DescribeStackDriftDetectionStatusAsync(DescribeStackDriftDetectionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackDriftDetectionStatusResponse>(request, options, cancellationToken); } #endregion #region DescribeStackEvents /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return Invoke<DescribeStackEventsResponse>(request, options); } /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual Task<DescribeStackEventsResponse> DescribeStackEventsAsync(DescribeStackEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackEventsResponse>(request, options, cancellationToken); } #endregion #region DescribeStackInstance /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return Invoke<DescribeStackInstanceResponse>(request, options); } /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual Task<DescribeStackInstanceResponse> DescribeStackInstanceAsync(DescribeStackInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackInstanceResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResource /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceResponse>(request, options); } /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourceResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResourceDrifts /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceDriftsResponse>(request, options); } /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual Task<DescribeStackResourceDriftsResponse> DescribeStackResourceDriftsAsync(DescribeStackResourceDriftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourceDriftsResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResources /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return Invoke<DescribeStackResourcesResponse>(request, options); } /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual Task<DescribeStackResourcesResponse> DescribeStackResourcesAsync(DescribeStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeStacks /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual DescribeStacksResponse DescribeStacks() { return DescribeStacks(new DescribeStacksRequest()); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return Invoke<DescribeStacksResponse>(request, options); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual Task<DescribeStacksResponse> DescribeStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeStacksAsync(new DescribeStacksRequest(), cancellationToken); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual Task<DescribeStacksResponse> DescribeStacksAsync(DescribeStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return InvokeAsync<DescribeStacksResponse>(request, options, cancellationToken); } #endregion #region DescribeStackSet /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return Invoke<DescribeStackSetResponse>(request, options); } /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual Task<DescribeStackSetResponse> DescribeStackSetAsync(DescribeStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackSetResponse>(request, options, cancellationToken); } #endregion #region DescribeStackSetOperation /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return Invoke<DescribeStackSetOperationResponse>(request, options); } /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual Task<DescribeStackSetOperationResponse> DescribeStackSetOperationAsync(DescribeStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackSetOperationResponse>(request, options, cancellationToken); } #endregion #region DescribeType /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return Invoke<DescribeTypeResponse>(request, options); } /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual Task<DescribeTypeResponse> DescribeTypeAsync(DescribeTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return InvokeAsync<DescribeTypeResponse>(request, options, cancellationToken); } #endregion #region DescribeTypeRegistration /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return Invoke<DescribeTypeRegistrationResponse>(request, options); } /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual Task<DescribeTypeRegistrationResponse> DescribeTypeRegistrationAsync(DescribeTypeRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return InvokeAsync<DescribeTypeRegistrationResponse>(request, options, cancellationToken); } #endregion #region DetectStackDrift /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return Invoke<DetectStackDriftResponse>(request, options); } /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual Task<DetectStackDriftResponse> DetectStackDriftAsync(DetectStackDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackDriftResponse>(request, options, cancellationToken); } #endregion #region DetectStackResourceDrift /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return Invoke<DetectStackResourceDriftResponse>(request, options); } /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual Task<DetectStackResourceDriftResponse> DetectStackResourceDriftAsync(DetectStackResourceDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackResourceDriftResponse>(request, options, cancellationToken); } #endregion #region DetectStackSetDrift /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return Invoke<DetectStackSetDriftResponse>(request, options); } /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual Task<DetectStackSetDriftResponse> DetectStackSetDriftAsync(DetectStackSetDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackSetDriftResponse>(request, options, cancellationToken); } #endregion #region EstimateTemplateCost /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return Invoke<EstimateTemplateCostResponse>(request, options); } /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual Task<EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return InvokeAsync<EstimateTemplateCostResponse>(request, options, cancellationToken); } #endregion #region ExecuteChangeSet /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return Invoke<ExecuteChangeSetResponse>(request, options); } /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual Task<ExecuteChangeSetResponse> ExecuteChangeSetAsync(ExecuteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return InvokeAsync<ExecuteChangeSetResponse>(request, options, cancellationToken); } #endregion #region GetStackPolicy /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return Invoke<GetStackPolicyResponse>(request, options); } /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual Task<GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return InvokeAsync<GetStackPolicyResponse>(request, options, cancellationToken); } #endregion #region GetTemplate /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return Invoke<GetTemplateResponse>(request, options); } /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual Task<GetTemplateResponse> GetTemplateAsync(GetTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return InvokeAsync<GetTemplateResponse>(request, options, cancellationToken); } #endregion #region GetTemplateSummary /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return Invoke<GetTemplateSummaryResponse>(request, options); } /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual Task<GetTemplateSummaryResponse> GetTemplateSummaryAsync(GetTemplateSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return InvokeAsync<GetTemplateSummaryResponse>(request, options, cancellationToken); } #endregion #region ImportStacksToStackSet /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual ImportStacksToStackSetResponse ImportStacksToStackSet(ImportStacksToStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return Invoke<ImportStacksToStackSetResponse>(request, options); } /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual Task<ImportStacksToStackSetResponse> ImportStacksToStackSetAsync(ImportStacksToStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return InvokeAsync<ImportStacksToStackSetResponse>(request, options, cancellationToken); } #endregion #region ListChangeSets /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return Invoke<ListChangeSetsResponse>(request, options); } /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual Task<ListChangeSetsResponse> ListChangeSetsAsync(ListChangeSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return InvokeAsync<ListChangeSetsResponse>(request, options, cancellationToken); } #endregion #region ListExports /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual ListExportsResponse ListExports(ListExportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return Invoke<ListExportsResponse>(request, options); } /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual Task<ListExportsResponse> ListExportsAsync(ListExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return InvokeAsync<ListExportsResponse>(request, options, cancellationToken); } #endregion #region ListImports /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual ListImportsResponse ListImports(ListImportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return Invoke<ListImportsResponse>(request, options); } /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual Task<ListImportsResponse> ListImportsAsync(ListImportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return InvokeAsync<ListImportsResponse>(request, options, cancellationToken); } #endregion #region ListStackInstances /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return Invoke<ListStackInstancesResponse>(request, options); } /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual Task<ListStackInstancesResponse> ListStackInstancesAsync(ListStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<ListStackInstancesResponse>(request, options, cancellationToken); } #endregion #region ListStackResources /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return Invoke<ListStackResourcesResponse>(request, options); } /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual Task<ListStackResourcesResponse> ListStackResourcesAsync(ListStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListStackResourcesResponse>(request, options, cancellationToken); } #endregion #region ListStacks /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual ListStacksResponse ListStacks() { return ListStacks(new ListStacksRequest()); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual ListStacksResponse ListStacks(ListStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return Invoke<ListStacksResponse>(request, options); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual Task<ListStacksResponse> ListStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListStacksAsync(new ListStacksRequest(), cancellationToken); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual Task<ListStacksResponse> ListStacksAsync(ListStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return InvokeAsync<ListStacksResponse>(request, options, cancellationToken); } #endregion #region ListStackSetOperationResults /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationResultsResponse>(request, options); } /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual Task<ListStackSetOperationResultsResponse> ListStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetOperationResultsResponse>(request, options, cancellationToken); } #endregion #region ListStackSetOperations /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationsResponse>(request, options); } /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual Task<ListStackSetOperationsResponse> ListStackSetOperationsAsync(ListStackSetOperationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetOperationsResponse>(request, options, cancellationToken); } #endregion #region ListStackSets /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual ListStackSetsResponse ListStackSets(ListStackSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return Invoke<ListStackSetsResponse>(request, options); } /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual Task<ListStackSetsResponse> ListStackSetsAsync(ListStackSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetsResponse>(request, options, cancellationToken); } #endregion #region ListTypeRegistrations /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return Invoke<ListTypeRegistrationsResponse>(request, options); } /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual Task<ListTypeRegistrationsResponse> ListTypeRegistrationsAsync(ListTypeRegistrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return InvokeAsync<ListTypeRegistrationsResponse>(request, options, cancellationToken); } #endregion #region ListTypes /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return InvokeAsync<ListTypesResponse>(request, options, cancellationToken); } #endregion #region ListTypeVersions /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return Invoke<ListTypeVersionsResponse>(request, options); } /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual Task<ListTypeVersionsResponse> ListTypeVersionsAsync(ListTypeVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListTypeVersionsResponse>(request, options, cancellationToken); } #endregion #region PublishType /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual PublishTypeResponse PublishType(PublishTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return Invoke<PublishTypeResponse>(request, options); } /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual Task<PublishTypeResponse> PublishTypeAsync(PublishTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return InvokeAsync<PublishTypeResponse>(request, options, cancellationToken); } #endregion #region RecordHandlerProgress /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return Invoke<RecordHandlerProgressResponse>(request, options); } /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual Task<RecordHandlerProgressResponse> RecordHandlerProgressAsync(RecordHandlerProgressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return InvokeAsync<RecordHandlerProgressResponse>(request, options, cancellationToken); } #endregion #region RegisterPublisher /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual RegisterPublisherResponse RegisterPublisher(RegisterPublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return Invoke<RegisterPublisherResponse>(request, options); } /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual Task<RegisterPublisherResponse> RegisterPublisherAsync(RegisterPublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return InvokeAsync<RegisterPublisherResponse>(request, options, cancellationToken); } #endregion #region RegisterType /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual RegisterTypeResponse RegisterType(RegisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return Invoke<RegisterTypeResponse>(request, options); } /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual Task<RegisterTypeResponse> RegisterTypeAsync(RegisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return InvokeAsync<RegisterTypeResponse>(request, options, cancellationToken); } #endregion #region RollbackStack /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual RollbackStackResponse RollbackStack(RollbackStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return Invoke<RollbackStackResponse>(request, options); } /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual Task<RollbackStackResponse> RollbackStackAsync(RollbackStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return InvokeAsync<RollbackStackResponse>(request, options, cancellationToken); } #endregion #region SetStackPolicy /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return Invoke<SetStackPolicyResponse>(request, options); } /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual Task<SetStackPolicyResponse> SetStackPolicyAsync(SetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return InvokeAsync<SetStackPolicyResponse>(request, options, cancellationToken); } #endregion #region SetTypeConfiguration /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual SetTypeConfigurationResponse SetTypeConfiguration(SetTypeConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return Invoke<SetTypeConfigurationResponse>(request, options); } /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual Task<SetTypeConfigurationResponse> SetTypeConfigurationAsync(SetTypeConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return InvokeAsync<SetTypeConfigurationResponse>(request, options, cancellationToken); } #endregion #region SetTypeDefaultVersion /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return Invoke<SetTypeDefaultVersionResponse>(request, options); } /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual Task<SetTypeDefaultVersionResponse> SetTypeDefaultVersionAsync(SetTypeDefaultVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return InvokeAsync<SetTypeDefaultVersionResponse>(request, options, cancellationToken); } #endregion #region SignalResource /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual SignalResourceResponse SignalResource(SignalResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return Invoke<SignalResourceResponse>(request, options); } /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual Task<SignalResourceResponse> SignalResourceAsync(SignalResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return InvokeAsync<SignalResourceResponse>(request, options, cancellationToken); } #endregion #region StopStackSetOperation /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return Invoke<StopStackSetOperationResponse>(request, options); } /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual Task<StopStackSetOperationResponse> StopStackSetOperationAsync(StopStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return InvokeAsync<StopStackSetOperationResponse>(request, options, cancellationToken); } #endregion #region TestType /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual TestTypeResponse TestType(TestTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return Invoke<TestTypeResponse>(request, options); } /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual Task<TestTypeResponse> TestTypeAsync(TestTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return InvokeAsync<TestTypeResponse>(request, options, cancellationToken); } #endregion #region UpdateStack /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual UpdateStackResponse UpdateStack(UpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return Invoke<UpdateStackResponse>(request, options); } /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual Task<UpdateStackResponse> UpdateStackAsync(UpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackResponse>(request, options, cancellationToken); } #endregion #region UpdateStackInstances /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return Invoke<UpdateStackInstancesResponse>(request, options); } /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual Task<UpdateStackInstancesResponse> UpdateStackInstancesAsync(UpdateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackInstancesResponse>(request, options, cancellationToken); } #endregion #region UpdateStackSet /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return Invoke<UpdateStackSetResponse>(request, options); } /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual Task<UpdateStackSetResponse> UpdateStackSetAsync(UpdateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackSetResponse>(request, options, cancellationToken); } #endregion #region UpdateTerminationProtection /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return Invoke<UpdateTerminationProtectionResponse>(request, options); } /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual Task<UpdateTerminationProtectionResponse> UpdateTerminationProtectionAsync(UpdateTerminationProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return InvokeAsync<UpdateTerminationProtectionResponse>(request, options, cancellationToken); } #endregion #region ValidateTemplate /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual ValidateTemplateResponse ValidateTemplate() { return ValidateTemplate(new ValidateTemplateRequest()); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return Invoke<ValidateTemplateResponse>(request, options); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual Task<ValidateTemplateResponse> ValidateTemplateAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ValidateTemplateAsync(new ValidateTemplateRequest(), cancellationToken); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual Task<ValidateTemplateResponse> ValidateTemplateAsync(ValidateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return InvokeAsync<ValidateTemplateResponse>(request, options, cancellationToken); } #endregion } }
5,341
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudFormation.Model; namespace Amazon.CloudFormation { /// <summary> /// Interface for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial interface IAmazonCloudFormation : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> ICloudFormationPaginatorFactory Paginators { get; } #region ActivateOrganizationsAccess /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> ActivateOrganizationsAccessResponse ActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request); /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> Task<ActivateOrganizationsAccessResponse> ActivateOrganizationsAccessAsync(ActivateOrganizationsAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ActivateType /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> ActivateTypeResponse ActivateType(ActivateTypeRequest request); /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> Task<ActivateTypeResponse> ActivateTypeAsync(ActivateTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDescribeTypeConfigurations /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> BatchDescribeTypeConfigurationsResponse BatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request); /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> Task<BatchDescribeTypeConfigurationsResponse> BatchDescribeTypeConfigurationsAsync(BatchDescribeTypeConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelUpdateStack /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request); /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> Task<CancelUpdateStackResponse> CancelUpdateStackAsync(CancelUpdateStackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ContinueUpdateRollback /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request); /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> Task<ContinueUpdateRollbackResponse> ContinueUpdateRollbackAsync(ContinueUpdateRollbackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateChangeSet /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </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"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request); /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> Task<CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStack /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> CreateStackResponse CreateStack(CreateStackRequest request); /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> Task<CreateStackResponse> CreateStackAsync(CreateStackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStackInstances /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request); /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> Task<CreateStackInstancesResponse> CreateStackInstancesAsync(CreateStackInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStackSet /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> CreateStackSetResponse CreateStackSet(CreateStackSetRequest request); /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> Task<CreateStackSetResponse> CreateStackSetAsync(CreateStackSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeactivateOrganizationsAccess /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> DeactivateOrganizationsAccessResponse DeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request); /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> Task<DeactivateOrganizationsAccessResponse> DeactivateOrganizationsAccessAsync(DeactivateOrganizationsAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeactivateType /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> DeactivateTypeResponse DeactivateType(DeactivateTypeRequest request); /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> Task<DeactivateTypeResponse> DeactivateTypeAsync(DeactivateTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteChangeSet /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request); /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> Task<DeleteChangeSetResponse> DeleteChangeSetAsync(DeleteChangeSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStack /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> DeleteStackResponse DeleteStack(DeleteStackRequest request); /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> Task<DeleteStackResponse> DeleteStackAsync(DeleteStackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStackInstances /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request); /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> Task<DeleteStackInstancesResponse> DeleteStackInstancesAsync(DeleteStackInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStackSet /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request); /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> Task<DeleteStackSetResponse> DeleteStackSetAsync(DeleteStackSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeregisterType /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request); /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> Task<DeregisterTypeResponse> DeregisterTypeAsync(DeregisterTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAccountLimits /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request); /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeChangeSet /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request); /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> Task<DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeChangeSetHooks /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> DescribeChangeSetHooksResponse DescribeChangeSetHooks(DescribeChangeSetHooksRequest request); /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> Task<DescribeChangeSetHooksResponse> DescribeChangeSetHooksAsync(DescribeChangeSetHooksRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeOrganizationsAccess /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> DescribeOrganizationsAccessResponse DescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request); /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> Task<DescribeOrganizationsAccessResponse> DescribeOrganizationsAccessAsync(DescribeOrganizationsAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribePublisher /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> DescribePublisherResponse DescribePublisher(DescribePublisherRequest request); /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> Task<DescribePublisherResponse> DescribePublisherAsync(DescribePublisherRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackDriftDetectionStatus /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request); /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> Task<DescribeStackDriftDetectionStatusResponse> DescribeStackDriftDetectionStatusAsync(DescribeStackDriftDetectionStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackEvents /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request); /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> Task<DescribeStackEventsResponse> DescribeStackEventsAsync(DescribeStackEventsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackInstance /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request); /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> Task<DescribeStackInstanceResponse> DescribeStackInstanceAsync(DescribeStackInstanceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResource /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request); /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResourceDrifts /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request); /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> Task<DescribeStackResourceDriftsResponse> DescribeStackResourceDriftsAsync(DescribeStackResourceDriftsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResources /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request); /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> Task<DescribeStackResourcesResponse> DescribeStackResourcesAsync(DescribeStackResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStacks /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> DescribeStacksResponse DescribeStacks(); /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> DescribeStacksResponse DescribeStacks(DescribeStacksRequest request); /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> Task<DescribeStacksResponse> DescribeStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> Task<DescribeStacksResponse> DescribeStacksAsync(DescribeStacksRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackSet /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request); /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> Task<DescribeStackSetResponse> DescribeStackSetAsync(DescribeStackSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackSetOperation /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request); /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> Task<DescribeStackSetOperationResponse> DescribeStackSetOperationAsync(DescribeStackSetOperationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeType /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> DescribeTypeResponse DescribeType(DescribeTypeRequest request); /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> Task<DescribeTypeResponse> DescribeTypeAsync(DescribeTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTypeRegistration /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request); /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> Task<DescribeTypeRegistrationResponse> DescribeTypeRegistrationAsync(DescribeTypeRegistrationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackDrift /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request); /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> Task<DetectStackDriftResponse> DetectStackDriftAsync(DetectStackDriftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackResourceDrift /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request); /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> Task<DetectStackResourceDriftResponse> DetectStackResourceDriftAsync(DetectStackResourceDriftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackSetDrift /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request); /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> Task<DetectStackSetDriftResponse> DetectStackSetDriftAsync(DetectStackSetDriftRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EstimateTemplateCost /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request); /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> Task<EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecuteChangeSet /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request); /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> Task<ExecuteChangeSetResponse> ExecuteChangeSetAsync(ExecuteChangeSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetStackPolicy /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request); /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> Task<GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTemplate /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> GetTemplateResponse GetTemplate(GetTemplateRequest request); /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> Task<GetTemplateResponse> GetTemplateAsync(GetTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTemplateSummary /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request); /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> Task<GetTemplateSummaryResponse> GetTemplateSummaryAsync(GetTemplateSummaryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportStacksToStackSet /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> ImportStacksToStackSetResponse ImportStacksToStackSet(ImportStacksToStackSetRequest request); /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> Task<ImportStacksToStackSetResponse> ImportStacksToStackSetAsync(ImportStacksToStackSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListChangeSets /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request); /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> Task<ListChangeSetsResponse> ListChangeSetsAsync(ListChangeSetsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListExports /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> ListExportsResponse ListExports(ListExportsRequest request); /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> Task<ListExportsResponse> ListExportsAsync(ListExportsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListImports /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> ListImportsResponse ListImports(ListImportsRequest request); /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> Task<ListImportsResponse> ListImportsAsync(ListImportsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackInstances /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request); /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> Task<ListStackInstancesResponse> ListStackInstancesAsync(ListStackInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackResources /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request); /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> Task<ListStackResourcesResponse> ListStackResourcesAsync(ListStackResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStacks /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> ListStacksResponse ListStacks(); /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> ListStacksResponse ListStacks(ListStacksRequest request); /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> Task<ListStacksResponse> ListStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> Task<ListStacksResponse> ListStacksAsync(ListStacksRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSetOperationResults /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request); /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> Task<ListStackSetOperationResultsResponse> ListStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSetOperations /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request); /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> Task<ListStackSetOperationsResponse> ListStackSetOperationsAsync(ListStackSetOperationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSets /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> ListStackSetsResponse ListStackSets(ListStackSetsRequest request); /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> Task<ListStackSetsResponse> ListStackSetsAsync(ListStackSetsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypeRegistrations /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request); /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> Task<ListTypeRegistrationsResponse> ListTypeRegistrationsAsync(ListTypeRegistrationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypes /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> ListTypesResponse ListTypes(ListTypesRequest request); /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypeVersions /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request); /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> Task<ListTypeVersionsResponse> ListTypeVersionsAsync(ListTypeVersionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PublishType /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> PublishTypeResponse PublishType(PublishTypeRequest request); /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> Task<PublishTypeResponse> PublishTypeAsync(PublishTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RecordHandlerProgress /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request); /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> Task<RecordHandlerProgressResponse> RecordHandlerProgressAsync(RecordHandlerProgressRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterPublisher /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> RegisterPublisherResponse RegisterPublisher(RegisterPublisherRequest request); /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> Task<RegisterPublisherResponse> RegisterPublisherAsync(RegisterPublisherRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterType /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> RegisterTypeResponse RegisterType(RegisterTypeRequest request); /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> Task<RegisterTypeResponse> RegisterTypeAsync(RegisterTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RollbackStack /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> RollbackStackResponse RollbackStack(RollbackStackRequest request); /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> Task<RollbackStackResponse> RollbackStackAsync(RollbackStackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetStackPolicy /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request); /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> Task<SetStackPolicyResponse> SetStackPolicyAsync(SetStackPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetTypeConfiguration /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> SetTypeConfigurationResponse SetTypeConfiguration(SetTypeConfigurationRequest request); /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> Task<SetTypeConfigurationResponse> SetTypeConfigurationAsync(SetTypeConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetTypeDefaultVersion /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request); /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> Task<SetTypeDefaultVersionResponse> SetTypeDefaultVersionAsync(SetTypeDefaultVersionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SignalResource /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> SignalResourceResponse SignalResource(SignalResourceRequest request); /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> Task<SignalResourceResponse> SignalResourceAsync(SignalResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopStackSetOperation /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request); /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> Task<StopStackSetOperationResponse> StopStackSetOperationAsync(StopStackSetOperationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TestType /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> TestTypeResponse TestType(TestTypeRequest request); /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> Task<TestTypeResponse> TestTypeAsync(TestTypeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStack /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> UpdateStackResponse UpdateStack(UpdateStackRequest request); /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> Task<UpdateStackResponse> UpdateStackAsync(UpdateStackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStackInstances /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request); /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> Task<UpdateStackInstancesResponse> UpdateStackInstancesAsync(UpdateStackInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStackSet /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request); /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> Task<UpdateStackSetResponse> UpdateStackSetAsync(UpdateStackSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateTerminationProtection /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request); /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> Task<UpdateTerminationProtectionResponse> UpdateTerminationProtectionAsync(UpdateTerminationProtectionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ValidateTemplate /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> ValidateTemplateResponse ValidateTemplate(); /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request); /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> Task<ValidateTemplateResponse> ValidateTemplateAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> Task<ValidateTemplateResponse> ValidateTemplateAsync(ValidateTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
4,207
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CloudFormation.Model; using Amazon.CloudFormation.Model.Internal.MarshallTransformations; using Amazon.CloudFormation.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudFormation { /// <summary> /// Implementation for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial class AmazonCloudFormationClient : AmazonServiceClient, IAmazonCloudFormation { private static IServiceMetadata serviceMetadata = new AmazonCloudFormationMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudFormationClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AmazonCloudFormationConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudFormationClient(AWSCredentials credentials) : this(credentials, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Credentials and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(AWSCredentials credentials, AmazonCloudFormationConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFormationConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig()) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFormationConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudFormationClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudFormationClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudFormationClient Configuration Object</param> public AmazonCloudFormationClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudFormationConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICloudFormationPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudFormationPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudFormationPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new Amazon.CloudFormation.Internal.ProcessRequestHandler()); pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudFormationEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region ActivateOrganizationsAccess internal virtual ActivateOrganizationsAccessResponse ActivateOrganizationsAccess(ActivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<ActivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> public virtual Task<ActivateOrganizationsAccessResponse> ActivateOrganizationsAccessAsync(ActivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<ActivateOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region ActivateType internal virtual ActivateTypeResponse ActivateType(ActivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return Invoke<ActivateTypeResponse>(request, options); } /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> public virtual Task<ActivateTypeResponse> ActivateTypeAsync(ActivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ActivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = ActivateTypeResponseUnmarshaller.Instance; return InvokeAsync<ActivateTypeResponse>(request, options, cancellationToken); } #endregion #region BatchDescribeTypeConfigurations internal virtual BatchDescribeTypeConfigurationsResponse BatchDescribeTypeConfigurations(BatchDescribeTypeConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return Invoke<BatchDescribeTypeConfigurationsResponse>(request, options); } /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> public virtual Task<BatchDescribeTypeConfigurationsResponse> BatchDescribeTypeConfigurationsAsync(BatchDescribeTypeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeTypeConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeTypeConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<BatchDescribeTypeConfigurationsResponse>(request, options, cancellationToken); } #endregion #region CancelUpdateStack internal virtual CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return Invoke<CancelUpdateStackResponse>(request, options); } /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> public virtual Task<CancelUpdateStackResponse> CancelUpdateStackAsync(CancelUpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance; return InvokeAsync<CancelUpdateStackResponse>(request, options, cancellationToken); } #endregion #region ContinueUpdateRollback internal virtual ContinueUpdateRollbackResponse ContinueUpdateRollback(ContinueUpdateRollbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return Invoke<ContinueUpdateRollbackResponse>(request, options); } /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> public virtual Task<ContinueUpdateRollbackResponse> ContinueUpdateRollbackAsync(ContinueUpdateRollbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueUpdateRollbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueUpdateRollbackResponseUnmarshaller.Instance; return InvokeAsync<ContinueUpdateRollbackResponse>(request, options, cancellationToken); } #endregion #region CreateChangeSet internal virtual CreateChangeSetResponse CreateChangeSet(CreateChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return Invoke<CreateChangeSetResponse>(request, options); } /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> public virtual Task<CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChangeSetResponseUnmarshaller.Instance; return InvokeAsync<CreateChangeSetResponse>(request, options, cancellationToken); } #endregion #region CreateStack internal virtual CreateStackResponse CreateStack(CreateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return Invoke<CreateStackResponse>(request, options); } /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> public virtual Task<CreateStackResponse> CreateStackAsync(CreateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance; return InvokeAsync<CreateStackResponse>(request, options, cancellationToken); } #endregion #region CreateStackInstances internal virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return Invoke<CreateStackInstancesResponse>(request, options); } /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> public virtual Task<CreateStackInstancesResponse> CreateStackInstancesAsync(CreateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<CreateStackInstancesResponse>(request, options, cancellationToken); } #endregion #region CreateStackSet internal virtual CreateStackSetResponse CreateStackSet(CreateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return Invoke<CreateStackSetResponse>(request, options); } /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> public virtual Task<CreateStackSetResponse> CreateStackSetAsync(CreateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance; return InvokeAsync<CreateStackSetResponse>(request, options, cancellationToken); } #endregion #region DeactivateOrganizationsAccess internal virtual DeactivateOrganizationsAccessResponse DeactivateOrganizationsAccess(DeactivateOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DeactivateOrganizationsAccessResponse>(request, options); } /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> public virtual Task<DeactivateOrganizationsAccessResponse> DeactivateOrganizationsAccessAsync(DeactivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<DeactivateOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region DeactivateType internal virtual DeactivateTypeResponse DeactivateType(DeactivateTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return Invoke<DeactivateTypeResponse>(request, options); } /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> public virtual Task<DeactivateTypeResponse> DeactivateTypeAsync(DeactivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeactivateTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeactivateTypeResponseUnmarshaller.Instance; return InvokeAsync<DeactivateTypeResponse>(request, options, cancellationToken); } #endregion #region DeleteChangeSet internal virtual DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return Invoke<DeleteChangeSetResponse>(request, options); } /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> public virtual Task<DeleteChangeSetResponse> DeleteChangeSetAsync(DeleteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance; return InvokeAsync<DeleteChangeSetResponse>(request, options, cancellationToken); } #endregion #region DeleteStack internal virtual DeleteStackResponse DeleteStack(DeleteStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return Invoke<DeleteStackResponse>(request, options); } /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> public virtual Task<DeleteStackResponse> DeleteStackAsync(DeleteStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackResponse>(request, options, cancellationToken); } #endregion #region DeleteStackInstances internal virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return Invoke<DeleteStackInstancesResponse>(request, options); } /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> public virtual Task<DeleteStackInstancesResponse> DeleteStackInstancesAsync(DeleteStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackInstancesResponse>(request, options, cancellationToken); } #endregion #region DeleteStackSet internal virtual DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return Invoke<DeleteStackSetResponse>(request, options); } /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> public virtual Task<DeleteStackSetResponse> DeleteStackSetAsync(DeleteStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance; return InvokeAsync<DeleteStackSetResponse>(request, options, cancellationToken); } #endregion #region DeregisterType internal virtual DeregisterTypeResponse DeregisterType(DeregisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return Invoke<DeregisterTypeResponse>(request, options); } /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> public virtual Task<DeregisterTypeResponse> DeregisterTypeAsync(DeregisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller.Instance; return InvokeAsync<DeregisterTypeResponse>(request, options, cancellationToken); } #endregion #region DescribeAccountLimits internal virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAccountLimitsResponse>(request, options, cancellationToken); } #endregion #region DescribeChangeSet internal virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetResponse>(request, options); } /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> public virtual Task<DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return InvokeAsync<DescribeChangeSetResponse>(request, options, cancellationToken); } #endregion #region DescribeChangeSetHooks internal virtual DescribeChangeSetHooksResponse DescribeChangeSetHooks(DescribeChangeSetHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetHooksResponse>(request, options); } /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> public virtual Task<DescribeChangeSetHooksResponse> DescribeChangeSetHooksAsync(DescribeChangeSetHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChangeSetHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChangeSetHooksResponseUnmarshaller.Instance; return InvokeAsync<DescribeChangeSetHooksResponse>(request, options, cancellationToken); } #endregion #region DescribeOrganizationsAccess internal virtual DescribeOrganizationsAccessResponse DescribeOrganizationsAccess(DescribeOrganizationsAccessRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return Invoke<DescribeOrganizationsAccessResponse>(request, options); } /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> public virtual Task<DescribeOrganizationsAccessResponse> DescribeOrganizationsAccessAsync(DescribeOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationsAccessRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationsAccessResponseUnmarshaller.Instance; return InvokeAsync<DescribeOrganizationsAccessResponse>(request, options, cancellationToken); } #endregion #region DescribePublisher internal virtual DescribePublisherResponse DescribePublisher(DescribePublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return Invoke<DescribePublisherResponse>(request, options); } /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> public virtual Task<DescribePublisherResponse> DescribePublisherAsync(DescribePublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublisherResponseUnmarshaller.Instance; return InvokeAsync<DescribePublisherResponse>(request, options, cancellationToken); } #endregion #region DescribeStackDriftDetectionStatus internal virtual DescribeStackDriftDetectionStatusResponse DescribeStackDriftDetectionStatus(DescribeStackDriftDetectionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return Invoke<DescribeStackDriftDetectionStatusResponse>(request, options); } /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> public virtual Task<DescribeStackDriftDetectionStatusResponse> DescribeStackDriftDetectionStatusAsync(DescribeStackDriftDetectionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackDriftDetectionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackDriftDetectionStatusResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackDriftDetectionStatusResponse>(request, options, cancellationToken); } #endregion #region DescribeStackEvents internal virtual DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return Invoke<DescribeStackEventsResponse>(request, options); } /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> public virtual Task<DescribeStackEventsResponse> DescribeStackEventsAsync(DescribeStackEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackEventsResponse>(request, options, cancellationToken); } #endregion #region DescribeStackInstance internal virtual DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return Invoke<DescribeStackInstanceResponse>(request, options); } /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> public virtual Task<DescribeStackInstanceResponse> DescribeStackInstanceAsync(DescribeStackInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackInstanceResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResource internal virtual DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceResponse>(request, options); } /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> public virtual Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourceResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResourceDrifts internal virtual DescribeStackResourceDriftsResponse DescribeStackResourceDrifts(DescribeStackResourceDriftsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceDriftsResponse>(request, options); } /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> public virtual Task<DescribeStackResourceDriftsResponse> DescribeStackResourceDriftsAsync(DescribeStackResourceDriftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourceDriftsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourceDriftsResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourceDriftsResponse>(request, options, cancellationToken); } #endregion #region DescribeStackResources internal virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return Invoke<DescribeStackResourcesResponse>(request, options); } /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> public virtual Task<DescribeStackResourcesResponse> DescribeStackResourcesAsync(DescribeStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeStacks internal virtual DescribeStacksResponse DescribeStacks() { return DescribeStacks(new DescribeStacksRequest()); } internal virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return Invoke<DescribeStacksResponse>(request, options); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual Task<DescribeStacksResponse> DescribeStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeStacksAsync(new DescribeStacksRequest(), cancellationToken); } /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> public virtual Task<DescribeStacksResponse> DescribeStacksAsync(DescribeStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance; return InvokeAsync<DescribeStacksResponse>(request, options, cancellationToken); } #endregion #region DescribeStackSet internal virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return Invoke<DescribeStackSetResponse>(request, options); } /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> public virtual Task<DescribeStackSetResponse> DescribeStackSetAsync(DescribeStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackSetResponse>(request, options, cancellationToken); } #endregion #region DescribeStackSetOperation internal virtual DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return Invoke<DescribeStackSetOperationResponse>(request, options); } /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> public virtual Task<DescribeStackSetOperationResponse> DescribeStackSetOperationAsync(DescribeStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackSetOperationResponse>(request, options, cancellationToken); } #endregion #region DescribeType internal virtual DescribeTypeResponse DescribeType(DescribeTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return Invoke<DescribeTypeResponse>(request, options); } /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> public virtual Task<DescribeTypeResponse> DescribeTypeAsync(DescribeTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeResponseUnmarshaller.Instance; return InvokeAsync<DescribeTypeResponse>(request, options, cancellationToken); } #endregion #region DescribeTypeRegistration internal virtual DescribeTypeRegistrationResponse DescribeTypeRegistration(DescribeTypeRegistrationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return Invoke<DescribeTypeRegistrationResponse>(request, options); } /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> public virtual Task<DescribeTypeRegistrationResponse> DescribeTypeRegistrationAsync(DescribeTypeRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTypeRegistrationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTypeRegistrationResponseUnmarshaller.Instance; return InvokeAsync<DescribeTypeRegistrationResponse>(request, options, cancellationToken); } #endregion #region DetectStackDrift internal virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return Invoke<DetectStackDriftResponse>(request, options); } /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> public virtual Task<DetectStackDriftResponse> DetectStackDriftAsync(DetectStackDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackDriftResponse>(request, options, cancellationToken); } #endregion #region DetectStackResourceDrift internal virtual DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return Invoke<DetectStackResourceDriftResponse>(request, options); } /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> public virtual Task<DetectStackResourceDriftResponse> DetectStackResourceDriftAsync(DetectStackResourceDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackResourceDriftResponse>(request, options, cancellationToken); } #endregion #region DetectStackSetDrift internal virtual DetectStackSetDriftResponse DetectStackSetDrift(DetectStackSetDriftRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return Invoke<DetectStackSetDriftResponse>(request, options); } /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> public virtual Task<DetectStackSetDriftResponse> DetectStackSetDriftAsync(DetectStackSetDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectStackSetDriftRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectStackSetDriftResponseUnmarshaller.Instance; return InvokeAsync<DetectStackSetDriftResponse>(request, options, cancellationToken); } #endregion #region EstimateTemplateCost internal virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return Invoke<EstimateTemplateCostResponse>(request, options); } /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> public virtual Task<EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance; options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return InvokeAsync<EstimateTemplateCostResponse>(request, options, cancellationToken); } #endregion #region ExecuteChangeSet internal virtual ExecuteChangeSetResponse ExecuteChangeSet(ExecuteChangeSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return Invoke<ExecuteChangeSetResponse>(request, options); } /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> public virtual Task<ExecuteChangeSetResponse> ExecuteChangeSetAsync(ExecuteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteChangeSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteChangeSetResponseUnmarshaller.Instance; return InvokeAsync<ExecuteChangeSetResponse>(request, options, cancellationToken); } #endregion #region GetStackPolicy internal virtual GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return Invoke<GetStackPolicyResponse>(request, options); } /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> public virtual Task<GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return InvokeAsync<GetStackPolicyResponse>(request, options, cancellationToken); } #endregion #region GetTemplate internal virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return Invoke<GetTemplateResponse>(request, options); } /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> public virtual Task<GetTemplateResponse> GetTemplateAsync(GetTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return InvokeAsync<GetTemplateResponse>(request, options, cancellationToken); } #endregion #region GetTemplateSummary internal virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return Invoke<GetTemplateSummaryResponse>(request, options); } /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> public virtual Task<GetTemplateSummaryResponse> GetTemplateSummaryAsync(GetTemplateSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance; return InvokeAsync<GetTemplateSummaryResponse>(request, options, cancellationToken); } #endregion #region ImportStacksToStackSet internal virtual ImportStacksToStackSetResponse ImportStacksToStackSet(ImportStacksToStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return Invoke<ImportStacksToStackSetResponse>(request, options); } /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> public virtual Task<ImportStacksToStackSetResponse> ImportStacksToStackSetAsync(ImportStacksToStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportStacksToStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportStacksToStackSetResponseUnmarshaller.Instance; return InvokeAsync<ImportStacksToStackSetResponse>(request, options, cancellationToken); } #endregion #region ListChangeSets internal virtual ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return Invoke<ListChangeSetsResponse>(request, options); } /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> public virtual Task<ListChangeSetsResponse> ListChangeSetsAsync(ListChangeSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance; return InvokeAsync<ListChangeSetsResponse>(request, options, cancellationToken); } #endregion #region ListExports internal virtual ListExportsResponse ListExports(ListExportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return Invoke<ListExportsResponse>(request, options); } /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> public virtual Task<ListExportsResponse> ListExportsAsync(ListExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListExportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance; return InvokeAsync<ListExportsResponse>(request, options, cancellationToken); } #endregion #region ListImports internal virtual ListImportsResponse ListImports(ListImportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return Invoke<ListImportsResponse>(request, options); } /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> public virtual Task<ListImportsResponse> ListImportsAsync(ListImportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListImportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImportsResponseUnmarshaller.Instance; return InvokeAsync<ListImportsResponse>(request, options, cancellationToken); } #endregion #region ListStackInstances internal virtual ListStackInstancesResponse ListStackInstances(ListStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return Invoke<ListStackInstancesResponse>(request, options); } /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> public virtual Task<ListStackInstancesResponse> ListStackInstancesAsync(ListStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<ListStackInstancesResponse>(request, options, cancellationToken); } #endregion #region ListStackResources internal virtual ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return Invoke<ListStackResourcesResponse>(request, options); } /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> public virtual Task<ListStackResourcesResponse> ListStackResourcesAsync(ListStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListStackResourcesResponse>(request, options, cancellationToken); } #endregion #region ListStacks internal virtual ListStacksResponse ListStacks() { return ListStacks(new ListStacksRequest()); } internal virtual ListStacksResponse ListStacks(ListStacksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return Invoke<ListStacksResponse>(request, options); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual Task<ListStacksResponse> ListStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListStacksAsync(new ListStacksRequest(), cancellationToken); } /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> public virtual Task<ListStacksResponse> ListStacksAsync(ListStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStacksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance; return InvokeAsync<ListStacksResponse>(request, options, cancellationToken); } #endregion #region ListStackSetOperationResults internal virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationResultsResponse>(request, options); } /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> public virtual Task<ListStackSetOperationResultsResponse> ListStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetOperationResultsResponse>(request, options, cancellationToken); } #endregion #region ListStackSetOperations internal virtual ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return Invoke<ListStackSetOperationsResponse>(request, options); } /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> public virtual Task<ListStackSetOperationsResponse> ListStackSetOperationsAsync(ListStackSetOperationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetOperationsResponse>(request, options, cancellationToken); } #endregion #region ListStackSets internal virtual ListStackSetsResponse ListStackSets(ListStackSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return Invoke<ListStackSetsResponse>(request, options); } /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> public virtual Task<ListStackSetsResponse> ListStackSetsAsync(ListStackSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStackSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStackSetsResponseUnmarshaller.Instance; return InvokeAsync<ListStackSetsResponse>(request, options, cancellationToken); } #endregion #region ListTypeRegistrations internal virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return Invoke<ListTypeRegistrationsResponse>(request, options); } /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> public virtual Task<ListTypeRegistrationsResponse> ListTypeRegistrationsAsync(ListTypeRegistrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance; return InvokeAsync<ListTypeRegistrationsResponse>(request, options, cancellationToken); } #endregion #region ListTypes internal virtual ListTypesResponse ListTypes(ListTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return Invoke<ListTypesResponse>(request, options); } /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> public virtual Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance; return InvokeAsync<ListTypesResponse>(request, options, cancellationToken); } #endregion #region ListTypeVersions internal virtual ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return Invoke<ListTypeVersionsResponse>(request, options); } /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> public virtual Task<ListTypeVersionsResponse> ListTypeVersionsAsync(ListTypeVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListTypeVersionsResponse>(request, options, cancellationToken); } #endregion #region PublishType internal virtual PublishTypeResponse PublishType(PublishTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return Invoke<PublishTypeResponse>(request, options); } /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> public virtual Task<PublishTypeResponse> PublishTypeAsync(PublishTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PublishTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishTypeResponseUnmarshaller.Instance; return InvokeAsync<PublishTypeResponse>(request, options, cancellationToken); } #endregion #region RecordHandlerProgress internal virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return Invoke<RecordHandlerProgressResponse>(request, options); } /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> public virtual Task<RecordHandlerProgressResponse> RecordHandlerProgressAsync(RecordHandlerProgressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance; return InvokeAsync<RecordHandlerProgressResponse>(request, options, cancellationToken); } #endregion #region RegisterPublisher internal virtual RegisterPublisherResponse RegisterPublisher(RegisterPublisherRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return Invoke<RegisterPublisherResponse>(request, options); } /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> public virtual Task<RegisterPublisherResponse> RegisterPublisherAsync(RegisterPublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterPublisherRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterPublisherResponseUnmarshaller.Instance; return InvokeAsync<RegisterPublisherResponse>(request, options, cancellationToken); } #endregion #region RegisterType internal virtual RegisterTypeResponse RegisterType(RegisterTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return Invoke<RegisterTypeResponse>(request, options); } /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> public virtual Task<RegisterTypeResponse> RegisterTypeAsync(RegisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterTypeResponseUnmarshaller.Instance; return InvokeAsync<RegisterTypeResponse>(request, options, cancellationToken); } #endregion #region RollbackStack internal virtual RollbackStackResponse RollbackStack(RollbackStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return Invoke<RollbackStackResponse>(request, options); } /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> public virtual Task<RollbackStackResponse> RollbackStackAsync(RollbackStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackStackRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackStackResponseUnmarshaller.Instance; return InvokeAsync<RollbackStackResponse>(request, options, cancellationToken); } #endregion #region SetStackPolicy internal virtual SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return Invoke<SetStackPolicyResponse>(request, options); } /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> public virtual Task<SetStackPolicyResponse> SetStackPolicyAsync(SetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance; return InvokeAsync<SetStackPolicyResponse>(request, options, cancellationToken); } #endregion #region SetTypeConfiguration internal virtual SetTypeConfigurationResponse SetTypeConfiguration(SetTypeConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return Invoke<SetTypeConfigurationResponse>(request, options); } /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> public virtual Task<SetTypeConfigurationResponse> SetTypeConfigurationAsync(SetTypeConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeConfigurationResponseUnmarshaller.Instance; return InvokeAsync<SetTypeConfigurationResponse>(request, options, cancellationToken); } #endregion #region SetTypeDefaultVersion internal virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return Invoke<SetTypeDefaultVersionResponse>(request, options); } /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> public virtual Task<SetTypeDefaultVersionResponse> SetTypeDefaultVersionAsync(SetTypeDefaultVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance; return InvokeAsync<SetTypeDefaultVersionResponse>(request, options, cancellationToken); } #endregion #region SignalResource internal virtual SignalResourceResponse SignalResource(SignalResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return Invoke<SignalResourceResponse>(request, options); } /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> public virtual Task<SignalResourceResponse> SignalResourceAsync(SignalResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SignalResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance; return InvokeAsync<SignalResourceResponse>(request, options, cancellationToken); } #endregion #region StopStackSetOperation internal virtual StopStackSetOperationResponse StopStackSetOperation(StopStackSetOperationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return Invoke<StopStackSetOperationResponse>(request, options); } /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> public virtual Task<StopStackSetOperationResponse> StopStackSetOperationAsync(StopStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopStackSetOperationRequestMarshaller.Instance; options.ResponseUnmarshaller = StopStackSetOperationResponseUnmarshaller.Instance; return InvokeAsync<StopStackSetOperationResponse>(request, options, cancellationToken); } #endregion #region TestType internal virtual TestTypeResponse TestType(TestTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return Invoke<TestTypeResponse>(request, options); } /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> public virtual Task<TestTypeResponse> TestTypeAsync(TestTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = TestTypeResponseUnmarshaller.Instance; return InvokeAsync<TestTypeResponse>(request, options, cancellationToken); } #endregion #region UpdateStack internal virtual UpdateStackResponse UpdateStack(UpdateStackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return Invoke<UpdateStackResponse>(request, options); } /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> public virtual Task<UpdateStackResponse> UpdateStackAsync(UpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackResponse>(request, options, cancellationToken); } #endregion #region UpdateStackInstances internal virtual UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return Invoke<UpdateStackInstancesResponse>(request, options); } /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> public virtual Task<UpdateStackInstancesResponse> UpdateStackInstancesAsync(UpdateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackInstancesResponse>(request, options, cancellationToken); } #endregion #region UpdateStackSet internal virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return Invoke<UpdateStackSetResponse>(request, options); } /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> public virtual Task<UpdateStackSetResponse> UpdateStackSetAsync(UpdateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance; return InvokeAsync<UpdateStackSetResponse>(request, options, cancellationToken); } #endregion #region UpdateTerminationProtection internal virtual UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return Invoke<UpdateTerminationProtectionResponse>(request, options); } /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> public virtual Task<UpdateTerminationProtectionResponse> UpdateTerminationProtectionAsync(UpdateTerminationProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance; return InvokeAsync<UpdateTerminationProtectionResponse>(request, options, cancellationToken); } #endregion #region ValidateTemplate internal virtual ValidateTemplateResponse ValidateTemplate() { return ValidateTemplate(new ValidateTemplateRequest()); } internal virtual ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return Invoke<ValidateTemplateResponse>(request, options); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual Task<ValidateTemplateResponse> ValidateTemplateAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ValidateTemplateAsync(new ValidateTemplateRequest(), cancellationToken); } /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> public virtual Task<ValidateTemplateResponse> ValidateTemplateAsync(ValidateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ValidateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidateTemplateResponseUnmarshaller.Instance; return InvokeAsync<ValidateTemplateResponse>(request, options, cancellationToken); } #endregion } }
3,771
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudFormation.Model; namespace Amazon.CloudFormation { /// <summary> /// Interface for accessing CloudFormation /// /// CloudFormation /// <para> /// CloudFormation allows you to create and manage Amazon Web Services infrastructure /// deployments predictably and repeatedly. You can use CloudFormation to leverage Amazon /// Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block /// Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling /// to build highly reliable, highly scalable, cost-effective applications without creating /// or configuring the underlying Amazon Web Services infrastructure. /// </para> /// /// <para> /// With CloudFormation, you declare all your resources and dependencies in a template /// file. The template defines a collection of resources as a single unit called a stack. /// CloudFormation creates and deletes all member resources of the stack together and /// manages all dependencies between the resources for you. /// </para> /// /// <para> /// For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation /// product page</a>. /// </para> /// /// <para> /// CloudFormation makes use of other Amazon Web Services products. If you need additional /// technical information about a specific Amazon Web Services product, you can find the /// product's technical documentation at <a href="https://docs.aws.amazon.com/">docs.aws.amazon.com</a>. /// </para> /// </summary> public partial interface IAmazonCloudFormation : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudFormationPaginatorFactory Paginators { get; } #endif #region ActivateOrganizationsAccess /// <summary> /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateOrganizationsAccess">REST API Reference for ActivateOrganizationsAccess Operation</seealso> Task<ActivateOrganizationsAccessResponse> ActivateOrganizationsAccessAsync(ActivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ActivateType /// <summary> /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ActivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ActivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ActivateType">REST API Reference for ActivateType Operation</seealso> Task<ActivateTypeResponse> ActivateTypeAsync(ActivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDescribeTypeConfigurations /// <summary> /// Returns configuration data for the specified CloudFormation extensions, from the CloudFormation /// registry for the account and Region. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDescribeTypeConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDescribeTypeConfigurations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeConfigurationNotFoundException"> /// The specified extension configuration can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/BatchDescribeTypeConfigurations">REST API Reference for BatchDescribeTypeConfigurations Operation</seealso> Task<BatchDescribeTypeConfigurationsResponse> BatchDescribeTypeConfigurationsAsync(BatchDescribeTypeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelUpdateStack /// <summary> /// Cancels an update on the specified stack. If the call completes successfully, the /// stack rolls back the update and reverts to the previous stack configuration. /// /// <note> /// <para> /// You can cancel only stacks that are in the <code>UPDATE_IN_PROGRESS</code> state. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelUpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelUpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack">REST API Reference for CancelUpdateStack Operation</seealso> Task<CancelUpdateStackResponse> CancelUpdateStackAsync(CancelUpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ContinueUpdateRollback /// <summary> /// For a specified stack that's in the <code>UPDATE_ROLLBACK_FAILED</code> state, continues /// rolling it back to the <code>UPDATE_ROLLBACK_COMPLETE</code> state. Depending on the /// cause of the failure, you can manually <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed"> /// fix the error</a> and continue the rollback. By continuing the rollback, you can return /// your stack to a working state (the <code>UPDATE_ROLLBACK_COMPLETE</code> state), and /// then try to update the stack again. /// /// /// <para> /// A stack goes into the <code>UPDATE_ROLLBACK_FAILED</code> state when CloudFormation /// can't roll back all changes after a failed stack update. For example, you might have /// a stack that's rolling back to an old database instance that was deleted outside of /// CloudFormation. Because CloudFormation doesn't know the database was deleted, it assumes /// that the database instance still exists and attempts to roll back to it, causing the /// update rollback to fail. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ContinueUpdateRollback service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ContinueUpdateRollback service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ContinueUpdateRollback">REST API Reference for ContinueUpdateRollback Operation</seealso> Task<ContinueUpdateRollbackResponse> ContinueUpdateRollbackAsync(ContinueUpdateRollbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateChangeSet /// <summary> /// Creates a list of changes that will be applied to a stack so that you can review the /// changes before executing them. You can create a change set for a stack that doesn't /// exist or an existing stack. If you create a change set for a stack that doesn't exist, /// the change set shows all of the resources that CloudFormation will create. If you /// create a change set for an existing stack, CloudFormation compares the stack's information /// with the information that you submit in the change set and lists the differences. /// Use change sets to understand which resources CloudFormation will create or change, /// and how it will change resources in an existing stack, before you create or update /// a stack. /// /// /// <para> /// To create a change set for a stack that doesn't exist, for the <code>ChangeSetType</code> /// parameter, specify <code>CREATE</code>. To create a change set for an existing stack, /// specify <code>UPDATE</code> for the <code>ChangeSetType</code> parameter. To create /// a change set for an import operation, specify <code>IMPORT</code> for the <code>ChangeSetType</code> /// parameter. After the <code>CreateChangeSet</code> call successfully completes, CloudFormation /// starts creating the change set. To check the status of the change set or to review /// it, use the <a>DescribeChangeSet</a> action. /// </para> /// /// <para> /// When you are satisfied with the changes the change set will make, execute the change /// set by using the <a>ExecuteChangeSet</a> action. CloudFormation doesn't make changes /// until you execute the change set. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, set <code>IncludeNestedStacks</code> /// to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSet">REST API Reference for CreateChangeSet Operation</seealso> Task<CreateChangeSetResponse> CreateChangeSetAsync(CreateChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStack /// <summary> /// Creates a stack as specified in the template. After the call completes successfully, /// the stack creation starts. You can check the status of the stack through the <a>DescribeStacks</a> /// operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStack">REST API Reference for CreateStack Operation</seealso> Task<CreateStackResponse> CreateStackAsync(CreateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStackInstances /// <summary> /// Creates stack instances for the specified accounts, within the specified Amazon Web /// Services Regions. A stack instance refers to a stack in a specific account and Region. /// You must specify at least one value for either <code>Accounts</code> or <code>DeploymentTargets</code>, /// and you must specify at least one value for <code>Regions</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackInstances">REST API Reference for CreateStackInstances Operation</seealso> Task<CreateStackInstancesResponse> CreateStackInstancesAsync(CreateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateStackSet /// <summary> /// Creates a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CreatedButModifiedException"> /// The specified resource exists, but has been changed. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.NameAlreadyExistsException"> /// The specified name is already in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateStackSet">REST API Reference for CreateStackSet Operation</seealso> Task<CreateStackSetResponse> CreateStackSetAsync(CreateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeactivateOrganizationsAccess /// <summary> /// Deactivates trusted access with Organizations. If trusted access is deactivated, the /// management account does not have permissions to create and manage service-managed /// StackSets for your organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateOrganizationsAccess">REST API Reference for DeactivateOrganizationsAccess Operation</seealso> Task<DeactivateOrganizationsAccessResponse> DeactivateOrganizationsAccessAsync(DeactivateOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeactivateType /// <summary> /// Deactivates a public extension that was previously activated in this account and Region. /// /// /// <para> /// Once deactivated, an extension can't be used in any CloudFormation operation. This /// includes stack update operations where the stack template includes the extension, /// even if no updates are being made to the extension. In addition, deactivated extensions /// aren't automatically updated if a new version of the extension is released. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeactivateType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeactivateType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeactivateType">REST API Reference for DeactivateType Operation</seealso> Task<DeactivateTypeResponse> DeactivateTypeAsync(DeactivateTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteChangeSet /// <summary> /// Deletes the specified change set. Deleting change sets ensures that no one executes /// the wrong change set. /// /// /// <para> /// If the call successfully completes, CloudFormation successfully deleted the change /// set. /// </para> /// /// <para> /// If <code>IncludeNestedStacks</code> specifies <code>True</code> during the creation /// of the nested change set, then <code>DeleteChangeSet</code> will delete all change /// sets that belong to the stacks hierarchy and will also delete all change sets for /// nested stacks with the status of <code>REVIEW_IN_PROGRESS</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteChangeSet">REST API Reference for DeleteChangeSet Operation</seealso> Task<DeleteChangeSetResponse> DeleteChangeSetAsync(DeleteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStack /// <summary> /// Deletes a specified stack. Once the call completes successfully, stack deletion starts. /// Deleted stacks don't show up in the <a>DescribeStacks</a> operation if the deletion /// has been completed successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStack">REST API Reference for DeleteStack Operation</seealso> Task<DeleteStackResponse> DeleteStackAsync(DeleteStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStackInstances /// <summary> /// Deletes stack instances for the specified accounts, in the specified Amazon Web Services /// Regions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackInstances">REST API Reference for DeleteStackInstances Operation</seealso> Task<DeleteStackInstancesResponse> DeleteStackInstancesAsync(DeleteStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteStackSet /// <summary> /// Deletes a stack set. Before you can delete a stack set, all its member stack instances /// must be deleted. For more information about how to complete this, see <a>DeleteStackInstances</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotEmptyException"> /// You can't yet delete this stack set, because it still contains one or more stack instances. /// Delete all stack instances from the stack set before deleting the stack set. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeleteStackSet">REST API Reference for DeleteStackSet Operation</seealso> Task<DeleteStackSetResponse> DeleteStackSetAsync(DeleteStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeregisterType /// <summary> /// Marks an extension or extension version as <code>DEPRECATED</code> in the CloudFormation /// registry, removing it from active use. Deprecated extensions or extension versions /// cannot be used in CloudFormation operations. /// /// /// <para> /// To deregister an entire extension, you must individually deregister all active versions /// of that extension. If an extension has only a single active version, deregistering /// that version results in the extension itself being deregistered and marked as deprecated /// in the registry. /// </para> /// /// <para> /// You can't deregister the default version of an extension if there are other active /// version of that extension. If you do deregister the default version of an extension, /// the extension type itself is deregistered as well and marked as deprecated. /// </para> /// /// <para> /// To view the deprecation status of an extension or extension version, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeregisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeregisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DeregisterType">REST API Reference for DeregisterType Operation</seealso> Task<DeregisterTypeResponse> DeregisterTypeAsync(DeregisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAccountLimits /// <summary> /// Retrieves your account's CloudFormation limits, such as the maximum number of stacks /// that you can create in your account. For more information about account limits, see /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// Quotas</a> in the <i>CloudFormation User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeChangeSet /// <summary> /// Returns the inputs for the change set and a list of changes that CloudFormation will /// make if you execute the change set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSet">REST API Reference for DescribeChangeSet Operation</seealso> Task<DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeChangeSetHooks /// <summary> /// Returns hook-related information for the change set and a list of changes that CloudFormation /// makes when you run the change set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSetHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeChangeSetHooks service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeChangeSetHooks">REST API Reference for DescribeChangeSetHooks Operation</seealso> Task<DescribeChangeSetHooksResponse> DescribeChangeSetHooksAsync(DescribeChangeSetHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeOrganizationsAccess /// <summary> /// Retrieves information about the account's <code>OrganizationAccess</code> status. /// This API can be called either by the management account or the delegated administrator /// by using the <code>CallAs</code> parameter. This API can also be called without the /// <code>CallAs</code> parameter by the management account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationsAccess service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeOrganizationsAccess service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeOrganizationsAccess">REST API Reference for DescribeOrganizationsAccess Operation</seealso> Task<DescribeOrganizationsAccessResponse> DescribeOrganizationsAccessAsync(DescribeOrganizationsAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribePublisher /// <summary> /// Returns information about a CloudFormation extension publisher. /// /// /// <para> /// If you don't supply a <code>PublisherId</code>, and you have registered as an extension /// publisher, <code>DescribePublisher</code> returns information about your own publisher /// account. /// </para> /// /// <para> /// For more information about registering as a publisher, see: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribePublisher">REST API Reference for DescribePublisher Operation</seealso> Task<DescribePublisherResponse> DescribePublisherAsync(DescribePublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackDriftDetectionStatus /// <summary> /// Returns information about a stack drift detection operation. A stack drift detection /// operation detects whether a stack's actual configuration differs, or has <i>drifted</i>, /// from its expected configuration, as defined in the stack template and any values specified /// as template parameters. A stack is considered to have drifted if one or more of its /// resources have drifted. For more information about stack and resource drift, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <a>DetectStackDrift</a> to initiate a stack drift detection operation. <code>DetectStackDrift</code> /// returns a <code>StackDriftDetectionId</code> you can use to monitor the progress of /// the operation using <code>DescribeStackDriftDetectionStatus</code>. Once the drift /// detection operation has completed, use <a>DescribeStackResourceDrifts</a> to return /// drift information about the stack and its resources. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackDriftDetectionStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackDriftDetectionStatus service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus">REST API Reference for DescribeStackDriftDetectionStatus Operation</seealso> Task<DescribeStackDriftDetectionStatusResponse> DescribeStackDriftDetectionStatusAsync(DescribeStackDriftDetectionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackEvents /// <summary> /// Returns all stack related events for a specified stack in reverse chronological order. /// For more information about a stack's event history, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html">Stacks</a> /// in the CloudFormation User Guide. /// /// <note> /// <para> /// You can list events for stacks that have failed to create or have been deleted by /// specifying the unique stack identifier (stack ID). /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackEvents service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackEvents service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackEvents">REST API Reference for DescribeStackEvents Operation</seealso> Task<DescribeStackEventsResponse> DescribeStackEventsAsync(DescribeStackEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackInstance /// <summary> /// Returns the stack instance that's associated with the specified StackSet, Amazon Web /// Services account, and Amazon Web Services Region. /// /// /// <para> /// For a list of stack instances that are associated with a specific StackSet, use <a>ListStackInstances</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackInstance service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackInstance service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackInstance">REST API Reference for DescribeStackInstance Operation</seealso> Task<DescribeStackInstanceResponse> DescribeStackInstanceAsync(DescribeStackInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResource /// <summary> /// Returns a description of the specified resource in the specified stack. /// /// /// <para> /// For deleted stacks, DescribeStackResource returns resource information for up to 90 /// days after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResource">REST API Reference for DescribeStackResource Operation</seealso> Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResourceDrifts /// <summary> /// Returns drift information for the resources that have been checked for drift in the /// specified stack. This includes actual and expected configuration values for resources /// where CloudFormation detects configuration drift. /// /// /// <para> /// For a given stack, there will be one <code>StackResourceDrift</code> for each stack /// resource that has been checked for drift. Resources that haven't yet been checked /// for drift aren't included. Resources that don't currently support drift detection /// aren't checked, and so not included. For a list of resources that support drift detection, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// Use <a>DetectStackResourceDrift</a> to detect drift on individual resources, or <a>DetectStackDrift</a> /// to detect drift on all supported resources for a given stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResourceDrifts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResourceDrifts service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts">REST API Reference for DescribeStackResourceDrifts Operation</seealso> Task<DescribeStackResourceDriftsResponse> DescribeStackResourceDriftsAsync(DescribeStackResourceDriftsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackResources /// <summary> /// Returns Amazon Web Services resource descriptions for running and deleted stacks. /// If <code>StackName</code> is specified, all the associated resources that are part /// of the stack are returned. If <code>PhysicalResourceId</code> is specified, the associated /// resources of the stack that the resource belongs to are returned. /// /// <note> /// <para> /// Only the first 100 resources will be returned. If your stack has more resources than /// this, you should use <code>ListStackResources</code> instead. /// </para> /// </note> /// <para> /// For deleted stacks, <code>DescribeStackResources</code> returns resource information /// for up to 90 days after the stack has been deleted. /// </para> /// /// <para> /// You must specify either <code>StackName</code> or <code>PhysicalResourceId</code>, /// but not both. In addition, you can specify <code>LogicalResourceId</code> to filter /// the returned result. For more information about resources, the <code>LogicalResourceId</code> /// and <code>PhysicalResourceId</code>, go to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/">CloudFormation /// User Guide</a>. /// </para> /// <note> /// <para> /// A <code>ValidationError</code> is returned if you specify both <code>StackName</code> /// and <code>PhysicalResourceId</code> in the same request. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResources">REST API Reference for DescribeStackResources Operation</seealso> Task<DescribeStackResourcesResponse> DescribeStackResourcesAsync(DescribeStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStacks /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> Task<DescribeStacksResponse> DescribeStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the description for the specified stack; if no stack name was specified, then /// it returns the description for all the stacks created. /// /// <note> /// <para> /// If the stack doesn't exist, an <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks">REST API Reference for DescribeStacks Operation</seealso> Task<DescribeStacksResponse> DescribeStacksAsync(DescribeStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackSet /// <summary> /// Returns the description of the specified StackSet. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSet">REST API Reference for DescribeStackSet Operation</seealso> Task<DescribeStackSetResponse> DescribeStackSetAsync(DescribeStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeStackSetOperation /// <summary> /// Returns the description of the specified StackSet operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackSetOperation">REST API Reference for DescribeStackSetOperation Operation</seealso> Task<DescribeStackSetOperationResponse> DescribeStackSetOperationAsync(DescribeStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeType /// <summary> /// Returns detailed information about an extension that has been registered. /// /// /// <para> /// If you specify a <code>VersionId</code>, <code>DescribeType</code> returns information /// about that specific extension version. Otherwise, it returns information about the /// default extension version. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeType">REST API Reference for DescribeType Operation</seealso> Task<DescribeTypeResponse> DescribeTypeAsync(DescribeTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTypeRegistration /// <summary> /// Returns information about an extension's registration, including its current status /// and type and version identifiers. /// /// /// <para> /// When you initiate a registration request using <a>RegisterType</a>, you can then use /// <a>DescribeTypeRegistration</a> to monitor the progress of that registration request. /// </para> /// /// <para> /// Once the registration request has completed, use <a>DescribeType</a> to return detailed /// information about an extension. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTypeRegistration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTypeRegistration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeTypeRegistration">REST API Reference for DescribeTypeRegistration Operation</seealso> Task<DescribeTypeRegistrationResponse> DescribeTypeRegistrationAsync(DescribeTypeRegistrationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackDrift /// <summary> /// Detects whether a stack's actual configuration differs, or has <i>drifted</i>, from /// its expected configuration, as defined in the stack template and any values specified /// as template parameters. For each resource in the stack that supports drift detection, /// CloudFormation compares the actual configuration of the resource with its expected /// template configuration. Only resource properties explicitly defined in the stack template /// are checked for drift. A stack is considered to have drifted if one or more of its /// resources differ from their expected template configurations. For more information, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackDrift</code> to detect drift on all supported resources for a /// given stack, or <a>DetectStackResourceDrift</a> to detect drift on individual resources. /// </para> /// /// <para> /// For a list of stack resources that currently support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// /// <para> /// <code>DetectStackDrift</code> can take up to several minutes, depending on the number /// of resources contained within the stack. Use <a>DescribeStackDriftDetectionStatus</a> /// to monitor the progress of a detect stack drift operation. Once the drift detection /// operation has completed, use <a>DescribeStackResourceDrifts</a> to return drift information /// about the stack and its resources. /// </para> /// /// <para> /// When detecting drift on a stack, CloudFormation doesn't detect drift on any nested /// stacks belonging to that stack. Perform <code>DetectStackDrift</code> directly on /// the nested stack itself. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift">REST API Reference for DetectStackDrift Operation</seealso> Task<DetectStackDriftResponse> DetectStackDriftAsync(DetectStackDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackResourceDrift /// <summary> /// Returns information about whether a resource's actual configuration differs, or has /// <i>drifted</i>, from its expected configuration, as defined in the stack template /// and any values specified as template parameters. This information includes actual /// and expected property values for resources in which CloudFormation detects drift. /// Only resource properties explicitly defined in the stack template are checked for /// drift. For more information about stack and resource drift, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting /// Unregulated Configuration Changes to Stacks and Resources</a>. /// /// /// <para> /// Use <code>DetectStackResourceDrift</code> to detect drift on individual resources, /// or <a>DetectStackDrift</a> to detect drift on all resources in a given stack that /// support drift detection. /// </para> /// /// <para> /// Resources that don't currently support drift detection can't be checked. For a list /// of resources that support drift detection, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources /// that Support Drift Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackResourceDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackResourceDrift service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift">REST API Reference for DetectStackResourceDrift Operation</seealso> Task<DetectStackResourceDriftResponse> DetectStackResourceDriftAsync(DetectStackResourceDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetectStackSetDrift /// <summary> /// Detect drift on a stack set. When CloudFormation performs drift detection on a stack /// set, it performs drift detection on the stack associated with each stack instance /// in the stack set. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">How /// CloudFormation performs drift detection on a stack set</a>. /// /// /// <para> /// <code>DetectStackSetDrift</code> returns the <code>OperationId</code> of the stack /// set drift detection operation. Use this operation id with <a>DescribeStackSetOperation</a> /// to monitor the progress of the drift detection operation. The drift detection operation /// may take some time, depending on the number of stack instances included in the stack /// set, in addition to the number of resources included in each stack. /// </para> /// /// <para> /// Once the operation has completed, use the following actions to return drift information: /// </para> /// <ul> <li> /// <para> /// Use <a>DescribeStackSet</a> to return detailed information about the stack set, including /// detailed information about the last <i>completed</i> drift operation performed on /// the stack set. (Information about drift operations that are in progress isn't included.) /// </para> /// </li> <li> /// <para> /// Use <a>ListStackInstances</a> to return a list of stack instances belonging to the /// stack set, including the drift status and last drift time checked of each instance. /// </para> /// </li> <li> /// <para> /// Use <a>DescribeStackInstance</a> to return detailed information about a specific stack /// instance, including its drift status and last drift time checked. /// </para> /// </li> </ul> /// <para> /// For more information about performing a drift detection operation on a stack set, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html">Detecting /// unmanaged changes in stack sets</a>. /// </para> /// /// <para> /// You can only run a single drift detection operation on a given stack set at one time. /// </para> /// /// <para> /// To stop a drift detection stack set operation, use <a>StopStackSetOperation</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectStackSetDrift service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetectStackSetDrift service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackSetDrift">REST API Reference for DetectStackSetDrift Operation</seealso> Task<DetectStackSetDriftResponse> DetectStackSetDriftAsync(DetectStackSetDriftRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EstimateTemplateCost /// <summary> /// Returns the estimated monthly cost of a template. The return value is an Amazon Web /// Services Simple Monthly Calculator URL with a query string that describes the resources /// required to run the template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/EstimateTemplateCost">REST API Reference for EstimateTemplateCost Operation</seealso> Task<EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecuteChangeSet /// <summary> /// Updates a stack using the input information that was provided when the specified change /// set was created. After the call successfully completes, CloudFormation starts updating /// the stack. Use the <a>DescribeStacks</a> action to view the status of the update. /// /// /// <para> /// When you execute a change set, CloudFormation deletes all other change sets associated /// with the stack because they aren't valid for the updated stack. /// </para> /// /// <para> /// If a stack policy is associated with the stack, CloudFormation enforces the policy /// during the update. You can't specify a temporary stack policy that overrides the current /// policy. /// </para> /// /// <para> /// To create a change set for the entire stack hierarchy, <code>IncludeNestedStacks</code> /// must have been set to <code>True</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecuteChangeSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecuteChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.InvalidChangeSetStatusException"> /// The specified change set can't be used to update the stack. For example, the change /// set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be /// <code>UPDATE_IN_PROGRESS</code>. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ExecuteChangeSet">REST API Reference for ExecuteChangeSet Operation</seealso> Task<ExecuteChangeSetResponse> ExecuteChangeSetAsync(ExecuteChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetStackPolicy /// <summary> /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, /// a null value is returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetStackPolicy">REST API Reference for GetStackPolicy Operation</seealso> Task<GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTemplate /// <summary> /// Returns the template body for a specified stack. You can get the template for running /// or deleted stacks. /// /// /// <para> /// For deleted stacks, <code>GetTemplate</code> returns the template for up to 90 days /// after the stack has been deleted. /// </para> /// <note> /// <para> /// If the template doesn't exist, a <code>ValidationError</code> is returned. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplate service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplate">REST API Reference for GetTemplate Operation</seealso> Task<GetTemplateResponse> GetTemplateAsync(GetTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetTemplateSummary /// <summary> /// Returns information about a new or existing template. The <code>GetTemplateSummary</code> /// action is useful for viewing parameter information, such as default parameter values /// and parameter types, before you create or update a stack or stack set. /// /// /// <para> /// You can use the <code>GetTemplateSummary</code> action when you submit a template, /// or you can get template information for a stack set, or a running or deleted stack. /// </para> /// /// <para> /// For deleted stacks, <code>GetTemplateSummary</code> returns the template information /// for up to 90 days after the stack has been deleted. If the template doesn't exist, /// a <code>ValidationError</code> is returned. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTemplateSummary service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetTemplateSummary service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/GetTemplateSummary">REST API Reference for GetTemplateSummary Operation</seealso> Task<GetTemplateSummaryResponse> GetTemplateSummaryAsync(GetTemplateSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportStacksToStackSet /// <summary> /// Import existing stacks into a new stack sets. Use the stack import operation to import /// up to 10 stacks into a new stack set in the same account as the source stack or in /// a different administrator account and Region, by specifying the stack ID of the stack /// you intend to import. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportStacksToStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportStacksToStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.LimitExceededException"> /// The quota for the resource has already been reached. /// /// /// <para> /// For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackNotFoundException"> /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the /// ARN in input. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ImportStacksToStackSet">REST API Reference for ImportStacksToStackSet Operation</seealso> Task<ImportStacksToStackSetResponse> ImportStacksToStackSetAsync(ImportStacksToStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListChangeSets /// <summary> /// Returns the ID and status of each active change set for a stack. For example, CloudFormation /// lists change sets that are in the <code>CREATE_IN_PROGRESS</code> or <code>CREATE_PENDING</code> /// state. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListChangeSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListChangeSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListChangeSets">REST API Reference for ListChangeSets Operation</seealso> Task<ListChangeSetsResponse> ListChangeSetsAsync(ListChangeSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListExports /// <summary> /// Lists all exported output values in the account and Region in which you call this /// action. Use this action to see the exported output values that you can import into /// other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// Fn::ImportValue</a> function. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html"> /// CloudFormation export stack output values</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListExports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListExports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListExports">REST API Reference for ListExports Operation</seealso> Task<ListExportsResponse> ListExportsAsync(ListExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListImports /// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html">Fn::ImportValue</a> /// function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListImports">REST API Reference for ListImports Operation</seealso> Task<ListImportsResponse> ListImportsAsync(ListImportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackInstances /// <summary> /// Returns summary information about stack instances that are associated with the specified /// stack set. You can filter for stack instances that are associated with a specific /// Amazon Web Services account name or Region, or that have a specific status. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackInstances">REST API Reference for ListStackInstances Operation</seealso> Task<ListStackInstancesResponse> ListStackInstancesAsync(ListStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackResources /// <summary> /// Returns descriptions of all resources of the specified stack. /// /// /// <para> /// For deleted stacks, ListStackResources returns resource information for up to 90 days /// after the stack has been deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackResources service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackResources">REST API Reference for ListStackResources Operation</seealso> Task<ListStackResourcesResponse> ListStackResourcesAsync(ListStackResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStacks /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> Task<ListStacksResponse> ListStacksAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns the summary information for stacks whose status matches the specified StackStatusFilter. /// Summary information for stacks that have been deleted is kept for 90 days after the /// stack is deleted. If no StackStatusFilter is specified, summary information for all /// stacks is returned (including existing stacks and stacks that have been deleted). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStacks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStacks service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStacks">REST API Reference for ListStacks Operation</seealso> Task<ListStacksResponse> ListStacksAsync(ListStacksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSetOperationResults /// <summary> /// Returns summary information about the results of a stack set operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperationResults service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperationResults service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperationResults">REST API Reference for ListStackSetOperationResults Operation</seealso> Task<ListStackSetOperationResultsResponse> ListStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSetOperations /// <summary> /// Returns summary information about operations performed on a stack set. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSetOperations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSetOperations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSetOperations">REST API Reference for ListStackSetOperations Operation</seealso> Task<ListStackSetOperationsResponse> ListStackSetOperationsAsync(ListStackSetOperationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListStackSets /// <summary> /// Returns summary information about stack sets that are associated with the user. /// /// <ul> <li> /// <para> /// [Self-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to your Amazon Web Services account, <code>ListStackSets</code> returns /// all self-managed stack sets in your Amazon Web Services account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>SELF</code> /// while signed in to the organization's management account, <code>ListStackSets</code> /// returns all stack sets in the management account. /// </para> /// </li> <li> /// <para> /// [Service-managed permissions] If you set the <code>CallAs</code> parameter to <code>DELEGATED_ADMIN</code> /// while signed in to your member account, <code>ListStackSets</code> returns all stack /// sets with service-managed permissions in the management account. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListStackSets service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListStackSets service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListStackSets">REST API Reference for ListStackSets Operation</seealso> Task<ListStackSetsResponse> ListStackSetsAsync(ListStackSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypeRegistrations /// <summary> /// Returns a list of registration tokens for the specified extension(s). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeRegistrations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeRegistrations service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeRegistrations">REST API Reference for ListTypeRegistrations Operation</seealso> Task<ListTypeRegistrationsResponse> ListTypeRegistrationsAsync(ListTypeRegistrationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypes /// <summary> /// Returns summary information about extension that have been registered with CloudFormation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypes service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypes">REST API Reference for ListTypes Operation</seealso> Task<ListTypesResponse> ListTypesAsync(ListTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTypeVersions /// <summary> /// Returns summary information about the versions of an extension. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTypeVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTypeVersions service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ListTypeVersions">REST API Reference for ListTypeVersions Operation</seealso> Task<ListTypeVersionsResponse> ListTypeVersionsAsync(ListTypeVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PublishType /// <summary> /// Publishes the specified extension to the CloudFormation registry as a public extension /// in this Region. Public extensions are available for use by all CloudFormation users. /// For more information about publishing extensions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// /// /// <para> /// To publish an extension, you must be registered as a publisher with CloudFormation. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PublishType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/PublishType">REST API Reference for PublishType Operation</seealso> Task<PublishTypeResponse> PublishTypeAsync(PublishTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RecordHandlerProgress /// <summary> /// Reports progress of a resource handler to CloudFormation. /// /// /// <para> /// Reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. Don't use this API in your code. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RecordHandlerProgress service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordHandlerProgress service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidStateTransitionException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationStatusCheckFailedException"> /// Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation /// CLI</a>. CloudFormation doesn't return this error to users. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RecordHandlerProgress">REST API Reference for RecordHandlerProgress Operation</seealso> Task<RecordHandlerProgressResponse> RecordHandlerProgressAsync(RecordHandlerProgressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterPublisher /// <summary> /// Registers your account as a publisher of public extensions in the CloudFormation registry. /// Public extensions are available for use by all CloudFormation users. This publisher /// ID applies to your account in all Amazon Web Services Regions. /// /// /// <para> /// For information about requirements for registering as a public extension publisher, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs">Registering /// your account to publish CloudFormation extensions</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterPublisher service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterPublisher service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterPublisher">REST API Reference for RegisterPublisher Operation</seealso> Task<RegisterPublisherResponse> RegisterPublisherAsync(RegisterPublisherRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RegisterType /// <summary> /// Registers an extension with the CloudFormation service. Registering an extension makes /// it available for use in CloudFormation templates in your Amazon Web Services account, /// and includes: /// /// <ul> <li> /// <para> /// Validating the extension schema. /// </para> /// </li> <li> /// <para> /// Determining which handlers, if any, have been specified for the extension. /// </para> /// </li> <li> /// <para> /// Making the extension available for use in your account. /// </para> /// </li> </ul> /// <para> /// For more information about how to develop extensions and ready them for registration, /// see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html">Creating /// Resource Providers</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// You can have a maximum of 50 resource extension versions registered at a time. This /// maximum is per account and per Region. Use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeregisterType.html">DeregisterType</a> /// to deregister specific extension versions if necessary. /// </para> /// /// <para> /// Once you have initiated a registration request using <a>RegisterType</a>, you can /// use <a>DescribeTypeRegistration</a> to monitor the progress of the registration request. /// </para> /// /// <para> /// Once you have registered a private extension in your account and Region, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RegisterType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RegisterType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RegisterType">REST API Reference for RegisterType Operation</seealso> Task<RegisterTypeResponse> RegisterTypeAsync(RegisterTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RollbackStack /// <summary> /// When specifying <code>RollbackStack</code>, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// <a>DescribeStacks</a> operation. /// /// /// <para> /// Rolls back the specified stack to the last known stable state from <code>CREATE_FAILED</code> /// or <code>UPDATE_FAILED</code> stack statuses. /// </para> /// /// <para> /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a <code>*_COMPLETE</code>. This includes /// the following stack statuses. /// </para> /// <ul> <li> /// <para> /// <code>CREATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>UPDATE_ROLLBACK_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_COMPLETE</code> /// </para> /// </li> <li> /// <para> /// <code>IMPORT_ROLLBACK_COMPLETE</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RollbackStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack">REST API Reference for RollbackStack Operation</seealso> Task<RollbackStackResponse> RollbackStackAsync(RollbackStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetStackPolicy /// <summary> /// Sets a stack policy for a specified stack. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetStackPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetStackPolicy service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetStackPolicy">REST API Reference for SetStackPolicy Operation</seealso> Task<SetStackPolicyResponse> SetStackPolicyAsync(SetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetTypeConfiguration /// <summary> /// Specifies the configuration data for a registered CloudFormation extension, in the /// given account and Region. /// /// /// <para> /// To view the current configuration data for an extension, refer to the <code>ConfigurationSchema</code> /// element of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a>. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// <important> /// <para> /// It's strongly recommended that you use dynamic references to restrict sensitive configuration /// definitions, such as third-party credentials. For more details on dynamic references, /// see <a href="https://docs.aws.amazon.com/">Using dynamic references to specify template /// values</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeConfiguration service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeConfiguration">REST API Reference for SetTypeConfiguration Operation</seealso> Task<SetTypeConfigurationResponse> SetTypeConfigurationAsync(SetTypeConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetTypeDefaultVersion /// <summary> /// Specify the default version of an extension. The default version of an extension will /// be used in CloudFormation operations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetTypeDefaultVersion service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetTypeDefaultVersion service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SetTypeDefaultVersion">REST API Reference for SetTypeDefaultVersion Operation</seealso> Task<SetTypeDefaultVersionResponse> SetTypeDefaultVersionAsync(SetTypeDefaultVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SignalResource /// <summary> /// Sends a signal to the specified resource with a success or failure status. You can /// use the <code>SignalResource</code> operation in conjunction with a creation policy /// or update policy. CloudFormation doesn't proceed with a stack creation or update until /// resources receive the required number of signals or the timeout period is exceeded. /// The <code>SignalResource</code> operation is useful in cases where you want to send /// signals from anywhere other than an Amazon EC2 instance. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SignalResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SignalResource service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/SignalResource">REST API Reference for SignalResource Operation</seealso> Task<SignalResourceResponse> SignalResourceAsync(SignalResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopStackSetOperation /// <summary> /// Stops an in-progress operation on a stack set and its associated stack instances. /// StackSets will cancel all the unstarted stack instance deployments and wait for those /// are in-progress to complete. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopStackSetOperation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopStackSetOperation service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationNotFoundException"> /// The specified ID refers to an operation that doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/StopStackSetOperation">REST API Reference for StopStackSetOperation Operation</seealso> Task<StopStackSetOperationResponse> StopStackSetOperationAsync(StopStackSetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TestType /// <summary> /// Tests a registered extension to make sure it meets all necessary requirements for /// being published in the CloudFormation registry. /// /// <ul> <li> /// <para> /// For resource types, this includes passing all contracts tests defined for the type. /// </para> /// </li> <li> /// <para> /// For modules, this includes determining if the module's model meets all necessary requirements. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-testing">Testing /// your public extension prior to publishing</a> in the <i>CloudFormation CLI User Guide</i>. /// </para> /// /// <para> /// If you don't specify a version, CloudFormation uses the default version of the extension /// in your account and Region for testing. /// </para> /// /// <para> /// To perform testing, CloudFormation assumes the execution role specified when the type /// was registered. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html">RegisterType</a>. /// </para> /// /// <para> /// Once you've initiated testing on an extension using <code>TestType</code>, you can /// pass the returned <code>TypeVersionArn</code> into <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html">DescribeType</a> /// to monitor the current test status and test status description for the extension. /// </para> /// /// <para> /// An extension must have a test status of <code>PASSED</code> before it can be published. /// For more information, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-publish.html">Publishing /// extensions to make them available for public use</a> in the <i>CloudFormation CLI /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestType service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestType service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.CFNRegistryException"> /// An error occurred during a CloudFormation registry operation. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType">REST API Reference for TestType Operation</seealso> Task<TestTypeResponse> TestTypeAsync(TestTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStack /// <summary> /// Updates a stack as specified in the template. After the call completes successfully, /// the stack update starts. You can check the status of the stack through the <a>DescribeStacks</a> /// action. /// /// /// <para> /// To get a copy of the template for an existing stack, you can use the <a>GetTemplate</a> /// action. /// </para> /// /// <para> /// For more information about creating an update template, updating a stack, and monitoring /// the progress of the update, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html">Updating /// a Stack</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStack service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStack service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InsufficientCapabilitiesException"> /// The template contains resources with capabilities that weren't specified in the Capabilities /// parameter. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.TokenAlreadyExistsException"> /// A client request token already exists. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStack">REST API Reference for UpdateStack Operation</seealso> Task<UpdateStackResponse> UpdateStackAsync(UpdateStackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStackInstances /// <summary> /// Updates the parameter values for stack instances for the specified accounts, within /// the specified Amazon Web Services Regions. A stack instance refers to a stack in a /// specific account and Region. /// /// /// <para> /// You can only update stack instances in Amazon Web Services Regions and accounts where /// they already exist; to create additional stack instances, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStackInstances.html">CreateStackInstances</a>. /// </para> /// /// <para> /// During stack set updates, any parameters overridden for a stack instance aren't updated, /// but retain their overridden value. /// </para> /// /// <para> /// You can only update the parameter <i>values</i> that are specified in the stack set; /// to add or delete a parameter itself, use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update the stack set template. If you add a parameter to a template, before you /// can override the parameter value specified in the stack set you must first use <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> /// to update all stack instances with the updated template and parameter value specified /// in the stack set. Once a stack instance has been updated with the new parameter, you /// can then override the parameter value using <code>UpdateStackInstances</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackInstances service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackInstances">REST API Reference for UpdateStackInstances Operation</seealso> Task<UpdateStackInstancesResponse> UpdateStackInstancesAsync(UpdateStackInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateStackSet /// <summary> /// Updates the stack set, and associated stack instances in the specified accounts and /// Amazon Web Services Regions. /// /// /// <para> /// Even if the stack set operation created by updating the stack set fails (completely /// or partially, below or above a specified failure tolerance), the stack set is updated /// with your changes. Subsequent <a>CreateStackInstances</a> calls on the specified stack /// set use the updated stack set. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateStackSet service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateStackSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.InvalidOperationException"> /// The specified operation isn't valid. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationIdAlreadyExistsException"> /// The specified operation ID already exists. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.OperationInProgressException"> /// Another operation is currently in progress for this stack set. Only one operation /// can be performed for a stack set at a given time. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackInstanceNotFoundException"> /// The specified stack instance doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StackSetNotFoundException"> /// The specified stack set doesn't exist. /// </exception> /// <exception cref="Amazon.CloudFormation.Model.StaleRequestException"> /// Another operation has been performed on this stack set since the specified operation /// was performed. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet">REST API Reference for UpdateStackSet Operation</seealso> Task<UpdateStackSetResponse> UpdateStackSetAsync(UpdateStackSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateTerminationProtection /// <summary> /// Updates termination protection for the specified stack. If a user attempts to delete /// a stack with termination protection enabled, the operation fails and the stack remains /// unchanged. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting /// a Stack From Being Deleted</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// For <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested /// stacks</a>, termination protection is set on the root stack and can't be changed directly /// on the nested stack. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateTerminationProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateTerminationProtection service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection">REST API Reference for UpdateTerminationProtection Operation</seealso> Task<UpdateTerminationProtectionResponse> UpdateTerminationProtectionAsync(UpdateTerminationProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ValidateTemplate /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> Task<ValidateTemplateResponse> ValidateTemplateAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ValidateTemplate service method, as returned by CloudFormation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate">REST API Reference for ValidateTemplate Operation</seealso> Task<ValidateTemplateResponse> ValidateTemplateAsync(ValidateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
2,420
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.CloudFormation")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS CloudFormation. AWS CloudFormation gives developers and systems administrators an easy way to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS CloudFormation. AWS CloudFormation gives developers and systems administrators an easy way to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS CloudFormation. AWS CloudFormation gives developers and systems administrators an easy way to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS CloudFormation. AWS CloudFormation gives developers and systems administrators an easy way to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.108.1")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCannedSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol,System.String,System.IO.FileSystemInfo,System.String,System.String,System.DateTime)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCannedSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol,System.String,System.IO.TextReader,System.String,System.String,System.DateTime)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCannedSignedURL(System.String,System.IO.TextReader,System.String,System.DateTime)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol,System.String,System.IO.FileSystemInfo,System.String,System.String,System.DateTime,System.DateTime,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol,System.String,System.IO.TextReader,System.String,System.String,System.DateTime,System.DateTime,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner.Protocol,System.String,System.IO.TextReader,System.String,System.String,System.DateTime,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCustomSignedURL(System.String,System.IO.TextReader,System.String,System.DateTime,System.DateTime,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCustomSignedURL(System.String,System.IO.TextReader,System.String,System.DateTime,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.SignUrl(System.String,System.String,System.IO.TextReader,System.String)~System.String")] [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:Uri return values should not be strings", Scope = "member", Target = "~M:Amazon.CloudFront.AmazonCloudFrontUrlSigner.SignUrlCanned(System.String,System.String,System.IO.TextReader,System.DateTime)~System.String")]
18
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; using Amazon.CloudFront.Model; using Amazon.Runtime; using Amazon.Util; using ThirdParty.BouncyCastle.OpenSsl; using System.Globalization; namespace Amazon.CloudFront { /// <summary> /// This utility class provides methods for creating signed cookies for /// Amazon CloudFront distributions using canned or custom policies. /// </summary> public static class AmazonCloudFrontCookieSigner { private const string ExpiresKey = "CloudFront-Expires"; private const string SignatureKey = "CloudFront-Signature"; private const string PolicyKey = "CloudFront-Policy"; private const string KeyPairIdKey = "CloudFront-Key-Pair-Id"; /// <summary> /// The supported protocols for accessing restricted content /// using signed cookies. You may combine the enums for specifying /// multiple protocols. /// </summary> [Flags] public enum Protocols { /// <summary> /// Http Protocol /// </summary> Http = 1, /// <summary> /// Https Protocol /// </summary> Https = 2 } /// <summary> /// Returns signed cookies that grants universal access to private content until a given date. /// </summary> /// <param name="protocol">The protocol used to access content using signed cookies.</param> /// <param name="distributionDomain">The domain name of the distribution.</param> /// <param name="resourcePath">The path for the resource.</param> /// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <returns>The signed cookies.</returns> public static CookiesForCannedPolicy GetCookiesForCannedPolicy(Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, DateTime expiresOn) { using (var reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return GetCookiesForCannedPolicy(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn); } } /// <summary> /// Returns signed cookies that grants universal access to private content until a given date. /// </summary> /// <param name="protocol">The protocol used to access content using signed cookies.</param> /// <param name="distributionDomain">The domain name of the distribution.</param> /// <param name="resourcePath">The path for the resource.</param> /// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <returns>The signed cookies.</returns> public static CookiesForCannedPolicy GetCookiesForCannedPolicy(Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn) { string url = GenerateResourcePath(protocol, distributionDomain, resourcePath); return GetCookiesForCannedPolicy(url, keyPairId, privateKey, expiresOn); } /// <summary> /// Generate signed cookies that allows access to a specific distribution and /// resource path by applying a access restrictions from a "canned" (simplified) /// policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <returns>The signed cookies.</returns> public static CookiesForCannedPolicy GetCookiesForCannedPolicy(string resourceUrlOrPath, string keyPairId, FileSystemInfo privateKey, DateTime expiresOn) { using (var reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return GetCookiesForCannedPolicy(resourceUrlOrPath, keyPairId, reader, expiresOn); } } /// <summary> /// Generate signed cookies that allows access to a specific distribution and /// resource path by applying a access restrictions from a "canned" (simplified) /// policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <returns>The signed cookies.</returns> public static CookiesForCannedPolicy GetCookiesForCannedPolicy(string resourceUrlOrPath, string keyPairId, TextReader privateKey, DateTime expiresOn) { var cookies = new CookiesForCannedPolicy(); string epochSeconds = AWSSDKUtils.ConvertToUnixEpochSecondsString(expiresOn.ToUniversalTime()); cookies.Expires = new KeyValuePair<string, string>( ExpiresKey, epochSeconds); RSAParameters rsaParameters = AmazonCloudFrontUrlSigner.ConvertPEMToRSAParameters(privateKey); string cannedPolicy = "{\"Statement\":[{\"Resource\":\"" + resourceUrlOrPath + "\",\"Condition\":{\"DateLessThan\":{\"AWS:EpochTime\":" + epochSeconds + "}}}]}"; byte[] signatureBytes = AmazonCloudFrontUrlSigner.SignWithSha1RSA( UTF8Encoding.UTF8.GetBytes(cannedPolicy), rsaParameters); string urlSafeSignature = AmazonCloudFrontUrlSigner.MakeBytesUrlSafe(signatureBytes); cookies.Signature = new KeyValuePair<string, string>(SignatureKey, urlSafeSignature); cookies.KeyPairId = new KeyValuePair<string, string>(KeyPairIdKey, keyPairId); return cookies; } /// <summary> /// Returns signed cookies that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol used to access content using signed cookies.</param> /// <param name="distributionDomain">The domain name of the distribution.</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <param name="activeFrom">The date from which content can be accessed using the generated cookies.</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed cookies.</returns> public static CookiesForCustomPolicy GetCookiesForCustomPolicy(Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { using (var reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return GetCookiesForCustomPolicy(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn, activeFrom, ipRange); } } /// <summary> /// Returns signed cookies that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol used to access content using signed cookies.</param> /// <param name="distributionDomain">The domain name of the distribution.</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <param name="activeFrom">The date from which content can be accessed using the generated cookies.</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed cookies.</returns> public static CookiesForCustomPolicy GetCookiesForCustomPolicy(Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { var url = GenerateResourcePath(protocol, distributionDomain, resourcePath); return GetCookiesForCustomPolicy(url, privateKey, keyPairId, expiresOn, activeFrom, ipRange); } /// <summary> /// Returns signed cookies that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path for resource within a distribution. /// </param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <param name="activeFrom">The date from which content can be accessed using the generated cookies.</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed cookies.</returns> public static CookiesForCustomPolicy GetCookiesForCustomPolicy(string resourceUrlOrPath, TextReader privateKey, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { var cookies = new CookiesForCustomPolicy(); var policy = AmazonCloudFrontUrlSigner.BuildPolicyForSignedUrl(resourceUrlOrPath, expiresOn, ipRange, activeFrom); var base64EncodedPolicy = AmazonCloudFrontUrlSigner.MakeStringUrlSafe(policy); cookies.Policy = new KeyValuePair<string, string>(PolicyKey, base64EncodedPolicy); RSAParameters rsaParameters = AmazonCloudFrontUrlSigner.ConvertPEMToRSAParameters(privateKey); byte[] signatureBytes = AmazonCloudFrontUrlSigner.SignWithSha1RSA( UTF8Encoding.UTF8.GetBytes(policy), rsaParameters); string urlSafeSignature = AmazonCloudFrontUrlSigner.MakeBytesUrlSafe(signatureBytes); cookies.Signature = new KeyValuePair<string, string>(SignatureKey, urlSafeSignature); cookies.KeyPairId = new KeyValuePair<string, string>(KeyPairIdKey, keyPairId); return cookies; } /// <summary> /// Returns signed cookies that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol used to access content using signed cookies.</param> /// <param name="distributionDomain">The domain name of the distribution.</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed cookies.</returns> public static CookiesForCustomPolicy GetCookiesForCustomPolicy(Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn, string ipRange) { return GetCookiesForCustomPolicy(protocol, distributionDomain, privateKey, resourcePath, keyPairId, expiresOn, DateTime.MinValue, ipRange); } /// <summary> /// Returns the resource path for the given distribution, object, /// and protocol. /// </summary> private static string GenerateResourcePath(Protocols protocol, string distributionDomain, string path) { if (protocol == 0) { // Uninitialized protocol value. throw new ArgumentException("Invalid value for AmazonCloudFrontCookieSigner.Protocols enum." + " Valid values are AmazonCloudFrontCookieSigner.Protocols.Http or AmazonCloudFrontCookieSigner.Protocols.Https .", "protocol"); } if (protocol == (Protocols.Http | Protocols.Https)) { return "http*://" + distributionDomain + "/" + path; } else { return protocol.ToString().ToLowerInvariant() + "://" + distributionDomain + "/" + path; } } } /// <summary> /// Contains common cookies used by Amazon CloudFront. /// </summary> public abstract class SignedCookies { /// <summary> /// The active CloudFront key pair Id for the key pair (Trusted Signer) that you are using to generate the signature. /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html"> /// Specifying the AWS Accounts That Can Create Signed URLs and Signed Cookies (Trusted Signers)</a> /// in the <i>Amazon CloudFront User Guide</i>. /// </para> /// </summary> public KeyValuePair<string, string> KeyPairId { get; internal set; } /// <summary> /// The hashed and signed version of the policy. /// </summary> public KeyValuePair<string, string> Signature { get; internal set; } } /// <summary> /// Contains the cookies used to access restricted content from /// CloudFront using a canned policy. /// </summary> public class CookiesForCannedPolicy : SignedCookies { /// <summary> /// Date and time in Unix time format (in seconds) and Coordinated Universal Time (UTC). /// </summary> public KeyValuePair<string, string> Expires { get; internal set; } } /// <summary> /// Contains the cookies used to access restricted content from /// CloudFront using a custom policy. /// </summary> public class CookiesForCustomPolicy : SignedCookies { /// <summary> /// Base64 encoded version of the custom policy. /// </summary> public KeyValuePair<string, string> Policy { get; internal set; } } }
364
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; using Amazon.CloudFront.Model; using Amazon.Runtime; using Amazon.Util; using ThirdParty.BouncyCastle.OpenSsl; using System.Globalization; #pragma warning disable 1591 namespace Amazon.CloudFront { /// <summary> /// This utility class provides methods for creating signed URLs for /// Amazon CloudFront distributions using canned or custom policies. /// </summary> public static class AmazonCloudFrontUrlSigner { public enum Protocol { http, https, rtmp } /// <summary> /// Returns a signed URL that grants universal access to private content until a given date. /// </summary> /// <param name="protocol">The protocol of the URL</param> /// <param name="distributionDomain">The domain name of the distribution</param> /// <param name="resourcePath">The path for the resource, or the name of the stream for rtmp</param> /// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <returns>The signed URL.</returns> public static string GetCannedSignedURL(Protocol protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, DateTime expiresOn) { using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return GetCannedSignedURL(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn); } } /// <summary> /// Returns a signed URL that grants universal access to private content until a given date. /// </summary> /// <param name="protocol">The protocol of the URL</param> /// <param name="distributionDomain">The domain name of the distribution</param> /// <param name="resourcePath">The path for the resource, or the name of the stream for rtmp</param> /// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <returns>The signed URL.</returns> public static string GetCannedSignedURL(Protocol protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn) { string url = GenerateResourcePath(protocol, distributionDomain, resourcePath); return GetCannedSignedURL(url, privateKey, keyPairId, expiresOn); } /// <summary> /// Returns a signed URL that grants universal access to private content until a given date. /// </summary> /// <param name="url">The full url (protocol + domain + resource path) to the resource, or the name of the stream for rtmp</param> /// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given.</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <returns>The signed URL.</returns> public static string GetCannedSignedURL(string url, TextReader privateKey, string keyPairId, DateTime expiresOn) { string signedUrlCanned = SignUrlCanned(url, keyPairId, privateKey, expiresOn); return signedUrlCanned; } /// <summary> /// Returns a signed URL that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol of the URL</param> /// <param name="distributionDomain">The domain name of the distribution</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource, or the name of the stream for rtmp</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <param name="activeFrom">The beginning valid date of the signed URL</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed URL.</returns> public static string GetCustomSignedURL(Protocol protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return GetCustomSignedURL(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn, activeFrom, ipRange); } } /// <summary> /// Returns a signed URL that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol of the URL</param> /// <param name="distributionDomain">The domain name of the distribution</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource, or the name of the stream for rtmp</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <param name="activeFrom">The beginning valid date of the signed URL</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed URL.</returns> public static string GetCustomSignedURL(Protocol protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { string path = GenerateResourcePath(protocol, distributionDomain, resourcePath); return GetCustomSignedURL(path, privateKey, keyPairId, expiresOn, activeFrom, ipRange); } /// <summary> /// Returns a signed URL that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="protocol">The protocol of the URL</param> /// <param name="distributionDomain">The domain name of the distribution</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="resourcePath">The path for the resource, or the name of the stream for rtmp</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed URL.</returns> public static string GetCustomSignedURL(Protocol protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, DateTime expiresOn, string ipRange) { string path = GenerateResourcePath(protocol, distributionDomain, resourcePath); return GetCustomSignedURL(path, privateKey, keyPairId, expiresOn, ipRange); } /// <summary> /// Returns a signed URL that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="url">The protocol of the URL</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <param name="activeFrom">The beginning valid date of the signed URL</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed URL.</returns> public static string GetCustomSignedURL(string url, TextReader privateKey, string keyPairId, DateTime expiresOn, DateTime activeFrom, string ipRange) { string policy = BuildPolicyForSignedUrl(url, expiresOn, ipRange, activeFrom); return SignUrl(url, keyPairId, privateKey, policy); } /// <summary> /// Returns a signed URL that provides tailored access to private content based on an access time window and an ip range. /// </summary> /// <param name="url">The protocol of the URL</param> /// <param name="privateKey">Your private key file. RSA private key (.pem) are supported.</param> /// <param name="keyPairId">The key pair id corresponding to the private key file given</param> /// <param name="expiresOn">The expiration date of the signed URL</param> /// <param name="ipRange">The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).</param> /// <returns>The signed URL.</returns> public static string GetCustomSignedURL(string url, TextReader privateKey, string keyPairId, DateTime expiresOn, string ipRange) { string policy = BuildPolicyForSignedUrl(url, expiresOn, ipRange); return SignUrl(url, keyPairId, privateKey, policy); } /// <summary> /// Generate a signed URL that allows access to distribution and resource path /// by applying access restrictions specified in a custom policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="policy">A policy document that describes the access permissions that will be applied by /// the signed URL.</param> /// <returns>A signed URL that will permit access to distribution and resource path as specified in the policy document.</returns> public static string SignUrl(string resourceUrlOrPath, string keyPairId, FileInfo privateKey, string policy) { using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return SignUrl(resourceUrlOrPath, keyPairId, reader, policy); } } /// <summary> /// Generate a signed URL that allows access to distribution and resource path /// by applying access restrictions specified in a custom policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="policy">A policy document that describes the access permissions that will be applied by /// the signed URL.</param> /// <returns>A signed URL that will permit access to distribution and S3 objects as specified in the policy document.</returns> public static string SignUrl(string resourceUrlOrPath, string keyPairId, TextReader privateKey, string policy) { RSAParameters rsaParameters = ConvertPEMToRSAParameters(privateKey); byte[] signatureBytes = SignWithSha1RSA(UTF8Encoding.UTF8.GetBytes(policy), rsaParameters); string urlSafePolicy = MakeStringUrlSafe(policy); string urlSafeSignature = MakeBytesUrlSafe(signatureBytes); string signedUrl = resourceUrlOrPath + (resourceUrlOrPath.IndexOf('?') >= 0 ? "&" : "?") + "Policy=" + urlSafePolicy + "&Signature=" + urlSafeSignature + "&Key-Pair-Id=" + keyPairId; return signedUrl; } /// <summary> /// Generate a signed URL that allows access to a specific distribution and /// resource path by applying a access restrictions from a "canned" (simplified) /// policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="expiresOn">The time and date when the signed URL will expire.</param> public static String SignUrlCanned(string resourceUrlOrPath, string keyPairId, FileInfo privateKey, DateTime expiresOn) { using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName))) { return SignUrlCanned(resourceUrlOrPath, keyPairId, reader, expiresOn); } } /// <summary> /// Generate a signed URL that allows access to a specific distribution and /// resource path by applying a access restrictions from a "canned" (simplified) /// policy document. /// </summary> /// <param name="resourceUrlOrPath"> /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be <tt>"http://" + distributionName + "/" + path</tt> /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. /// </param> /// <param name="keyPairId">Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.</param> /// <param name="privateKey">The RSA private key data that corresponding to the certificate keypair identified by keyPairId.</param> /// <param name="expiresOn">The time and date when the signed URL will expire.</param> public static String SignUrlCanned(string resourceUrlOrPath, string keyPairId, TextReader privateKey, DateTime expiresOn) { string epochSeconds = AWSSDKUtils.ConvertToUnixEpochSecondsString(expiresOn.ToUniversalTime()); RSAParameters rsaParameters = ConvertPEMToRSAParameters(privateKey); string cannedPolicy = "{\"Statement\":[{\"Resource\":\"" + resourceUrlOrPath + "\",\"Condition\":{\"DateLessThan\":{\"AWS:EpochTime\":" + epochSeconds + "}}}]}"; byte[] signatureBytes = SignWithSha1RSA(UTF8Encoding.UTF8.GetBytes(cannedPolicy), rsaParameters); string urlSafeSignature = MakeBytesUrlSafe(signatureBytes); string signedUrl = resourceUrlOrPath + (resourceUrlOrPath.IndexOf('?') >= 0 ? "&" : "?") + "Expires=" + epochSeconds + "&Signature=" + urlSafeSignature + "&Key-Pair-Id=" + keyPairId; return signedUrl; } /// <summary> /// Generate a policy document that describes custom access permissions to /// apply via a private distribution's signed URL. /// </summary> /// <param name="resourcePath"> /// An optional HTTP/S or RTMP resource path that restricts which /// distribution and S3 objects will be accessible in a signed /// URL. For standard distributions the resource URL will be /// <tt>"http://" + distributionName + "/" + path</tt> (may /// also include URL parameters. For distributions with the HTTPS /// required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. The '*' and '?' characters can be used as a wildcards to /// allow multi-character or single-character matches /// respectively: /// <ul> /// <li><tt>*</tt> : All distributions/objects will be accessible</li> /// <li><tt>a1b2c3d4e5f6g7.cloudfront.net/*</tt> : All objects /// within the distribution a1b2c3d4e5f6g7 will be accessible</li> /// <li><tt>a1b2c3d4e5f6g7.cloudfront.net/path/to/object.txt</tt> /// : Only the S3 object named <tt>path/to/object.txt</tt> in the /// distribution a1b2c3d4e5f6g7 will be accessible.</li> /// </ul> /// If this parameter is null the policy will permit access to all /// distributions and S3 objects associated with the certificate /// keypair used to generate the signed URL. /// </param> /// <param name="expiresOn">The time and date when the signed URL will expire.</param> /// <param name="limitToIpAddressCIDR">An optional range of client IP addresses that will be allowed /// to access the distribution, specified as a CIDR range. If /// null or empty any client will be permitted.</param> /// <param name="activeFrom">An optional UTC time and date when the signed URL will become /// active. A value of DateTime.MinValue (the default value of DateTime) is ignored. /// </param> /// <returns>A policy document describing the access permission to apply when /// generating a signed URL.</returns> public static string BuildPolicyForSignedUrl(string resourcePath, DateTime expiresOn, string limitToIpAddressCIDR, DateTime activeFrom) { // Reference: // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html#private-content-custom-policy-statement // Validate if activeFrom (time at which the URL will be active) // is less than expiresOn (time at which the URL will expire) if (activeFrom > expiresOn) { throw new AmazonClientException("The parameter activeFrom (time at which the URL will be active)" + "must be less than expiresOn (time at which the URL will expire)."); } if (resourcePath == null) { resourcePath = "*"; } string policy = "{\"Statement\": [{" + "\"Resource\":\"" + resourcePath + "\"" + ",\"Condition\":{" + "\"DateLessThan\":{\"AWS:EpochTime\":" + AWSSDKUtils.ConvertToUnixEpochSecondsString(expiresOn.ToUniversalTime()) + "}" // omitting IpAddress parameter indicates any ip address access + (string.IsNullOrEmpty(limitToIpAddressCIDR) ? "" : ",\"IpAddress\":{\"AWS:SourceIp\":\"" + limitToIpAddressCIDR + "\"}") // Ignore epochDateGreaterThan if its value is DateTime.MinValue, the default value of DateTime. + (activeFrom > DateTime.MinValue ? ",\"DateGreaterThan\":{\"AWS:EpochTime\":" + AWSSDKUtils.ConvertToUnixEpochSecondsString(activeFrom.ToUniversalTime()) + "}" : string.Empty) + "}}]}"; return policy; } /// <summary> /// Generate a policy document that describes custom access permissions to /// apply via a private distribution's signed URL. /// </summary> /// <param name="resourcePath"> /// An optional HTTP/S or RTMP resource path that restricts which /// distribution and resource path will be accessible in a signed /// URL. For standard distributions the resource URL will be /// <tt>"http://" + distributionName + "/" + path</tt> (may /// also include URL parameters. For distributions with the HTTPS /// required protocol, the resource URL must start with /// <tt>"https://"</tt>. RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. The '*' and '?' characters can be used as a wildcards to /// allow multi-character or single-character matches /// respectively: /// <ul> /// <li><tt>*</tt> : All distributions/objects will be accessible</li> /// <li><tt>a1b2c3d4e5f6g7.cloudfront.net/*</tt> : All objects /// within the distribution a1b2c3d4e5f6g7 will be accessible</li> /// <li><tt>a1b2c3d4e5f6g7.cloudfront.net/path/to/object.txt</tt> /// : Only the resource named <tt>path/to/object.txt</tt> in the /// distribution a1b2c3d4e5f6g7 will be accessible.</li> /// </ul> /// If this parameter is null the policy will permit access to all /// distributions and resource path associated with the certificate /// keypair used to generate the signed URL. /// </param> /// <param name="expiresOn">The time and date when the signed URL will expire.</param> /// <param name="limitToIpAddressCIDR">An optional range of client IP addresses that will be allowed /// to access the distribution, specified as a CIDR range. If null, or empty, any client will /// be permitted.</param> /// <returns>A policy document describing the access permission to apply when /// generating a signed URL.</returns> public static string BuildPolicyForSignedUrl(string resourcePath, DateTime expiresOn, string limitToIpAddressCIDR) { return BuildPolicyForSignedUrl(resourcePath, expiresOn, limitToIpAddressCIDR, DateTime.MinValue); } /// <summary> /// Converts the given data to be safe for use in signed URLs for a private /// distribution by using specialized Base64 encoding. /// </summary> internal static string MakeBytesUrlSafe(byte[] bytes) { return Convert.ToBase64String(bytes).Replace('+', '-').Replace('=', '_').Replace('/', '~'); } /// <summary> /// Converts the given string to be safe for use in signed URLs for a private distribution. /// </summary> internal static String MakeStringUrlSafe(string str) { return MakeBytesUrlSafe(UTF8Encoding.UTF8.GetBytes(str)); } /// <summary> /// Returns the resource path for the given distribution, object, and protocol. /// </summary> private static string GenerateResourcePath(Protocol protocol, string distributionDomain, string path) { if (protocol == Protocol.http || protocol == Protocol.https) { return protocol.ToString() + "://" + distributionDomain + "/" + path; } else { return path; } } /// <summary> /// Signs the data given with the private key given, using the SHA1withRSA /// algorithm provided by bouncy castle. /// </summary> internal static byte[] SignWithSha1RSA(byte[] dataToSign, RSAParameters rsaParameters) { using (SHA1 cryptoSHA1 = GetSHA1Provider()) { var providerRSA = RSA.Create(); providerRSA.ImportParameters(rsaParameters); byte[] hashedData = cryptoSHA1.ComputeHash(dataToSign); return GetRSAPKCS1SignatureFromSHA1(hashedData, providerRSA); } } internal static RSAParameters ConvertPEMToRSAParameters(TextReader privateKeyReader) { RSAParameters rsaParams; try { rsaParams = new PemReader(privateKeyReader).ReadPrivatekey(); } catch (Exception e) { throw new AmazonClientException("Invalid RSA Private Key", e); } var rsa = RSA.Create(); rsa.ImportParameters(rsaParams); return rsaParams; } private static SHA1 GetSHA1Provider() { #if NETSTANDARD return SHA1.Create(); #else return new SHA1CryptoServiceProvider(); #endif } private static byte[] GetRSAPKCS1SignatureFromSHA1(byte[] hashedData, RSA providerRSA) { // Format the RSACryptoServiceProvider and create the signature. #if NETSTANDARD return providerRSA.SignHash(hashedData, HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1); #else RSAPKCS1SignatureFormatter rsaFormatter = new RSAPKCS1SignatureFormatter(providerRSA); rsaFormatter.SetHashAlgorithm("SHA1"); return rsaFormatter.CreateSignature(hashedData); #endif } } }
555
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ using System.Diagnostics.CodeAnalysis; // General suppressions for marshallers [module: SuppressMessage("Microsoft.Performance", "CA1809:AvoidExcessiveLocals", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.CreateDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.CreateDistributionRequest)")] [module: SuppressMessage("Microsoft.Performance", "CA1809:AvoidExcessiveLocals", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.UpdateDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.UpdateDistributionRequest)")] [module: SuppressMessage("Microsoft.Performance", "CA1809:AvoidExcessiveLocals", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.CreateDistributionWithTagsRequestMarshaller.#Marshall(Amazon.CloudFront.Model.CreateDistributionWithTagsRequest)")] // Passing base types [module: SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrlCanned(System.String,System.String,System.IO.FileInfo,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.FileInfo,System.String,System.String,System.DateTime,System.DateTime,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrl(System.String,System.String,System.IO.FileInfo,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCannedSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.FileInfo,System.String,System.String,System.DateTime)")] // Nested types, breaking change [module: SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Scope = "type", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol")] // Normalize strings to uppercase, breaking change [module: SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.CreateDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.CreateDistributionRequest)")] [module: SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.CreateStreamingDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.CreateStreamingDistributionRequest)")] [module: SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.UpdateDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.UpdateDistributionRequest)")] [module: SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "Amazon.CloudFront.Model.Internal.MarshallTransformations.UpdateStreamingDistributionRequestMarshaller.#Marshall(Amazon.CloudFront.Model.UpdateStreamingDistributionRequest)")] [module: SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope="member", Target="Amazon.CloudFront.AmazonCloudFrontCookieSigner.#GenerateResourcePath(Amazon.CloudFront.AmazonCloudFrontCookieSigner+Protocols,System.String,System.String)")] // Uri properties should not be strings [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrl(System.String,System.String,System.IO.FileInfo,System.String)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrl(System.String,System.String,System.IO.StreamReader,System.String)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrlCanned(System.String,System.String,System.IO.FileInfo,System.DateTime)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrlCanned(System.String,System.String,System.IO.StreamReader,System.DateTime)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#BuildPolicyForSignedUrl(System.String,System.DateTime,System.String,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCannedSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.FileInfo,System.String,System.String,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCannedSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.StreamReader,System.String,System.String,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.FileInfo,System.String,System.String,System.DateTime,System.DateTime,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.StreamReader,System.String,System.String,System.DateTime,System.DateTime,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrl(System.String,System.String,System.IO.FileInfo,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrl(System.String,System.String,System.IO.StreamReader,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrlCanned(System.String,System.String,System.IO.FileInfo,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#SignUrlCanned(System.String,System.String,System.IO.StreamReader,System.DateTime)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.Util.AmazonCloudFrontUtil.#UrlEncode(System.String,System.Boolean)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#BuildPolicyForSignedUrl(System.String,System.DateTime,System.String)")] [module: SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFront.AmazonCloudFrontUrlSigner.#GetCustomSignedURL(Amazon.CloudFront.AmazonCloudFrontUrlSigner+Protocol,System.String,System.IO.StreamReader,System.String,System.String,System.DateTime,System.String)")] // Flag enums should have a Zero Value [module: SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Scope = "type", Target = "Amazon.CloudFront.AmazonCloudFrontCookieSigner+Protocols")] // Should not have next public types [module: SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Scope = "type", Target = "Amazon.CloudFront.AmazonCloudFrontCookieSigner+Protocols")] // Amazon.CloudFront.Model.Signer type conflicts with Amazon.Signer service namespace. [module: SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope = "type", Target = "Amazon.CloudFront.Model.Signer")]
57
aws-sdk-net
aws
C#
/******************************************************************************* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************** * __ _ _ ___ * ( )( \/\/ )/ __) * /__\ \ / \__ \ * (_)(_) \/\/ (___/ * * AWS SDK for .NET * API Version: 2010-11-01 * */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CloudFront.Util { internal static class CloudFrontConstants { // Commonly used headers internal const string AmzRequestIdHeader = "x-amzn-RequestId"; internal const string AmzDateHeader = "x-amz-date"; internal const string AuthorizationHeader = "Authorization"; // Accepted HTTP Verbs internal static readonly string[] Verbs = { "GET", "POST", "PUT", "DELETE" }; internal static readonly string GetVerb = Verbs[0]; internal static readonly string PostVerb = Verbs[1]; internal static readonly string PutVerb = Verbs[2]; internal static readonly string DeleteVerb = Verbs[3]; // Often used strings internal const string ServiceResource = "/2010-11-01/"; internal const string ConfigQuery = "/config"; internal const string RequestParam = "request"; } }
48
aws-sdk-net
aws
C#
/******************************************************************************* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************** * __ _ _ ___ * ( )( \/\/ )/ __) * /__\ \ / \__ \ * (_)(_) \/\/ (___/ * * AWS SDK for .NET * API Version: 2010-07-15 * */ using System.Collections.Specialized; using Amazon.Util; namespace Amazon.CloudFront.Util { /// <summary> /// Provides utilities used by the Amazon CloudFront client implementation. /// </summary> public static class AmazonCloudFrontUtil { /// <summary> /// Builds and returns the name value collection /// that can be added to the HTTP headers for the request /// </summary> /// <param name="key">The key to be added to the headers (eg. Content-Body)</param> /// <param name="value">The value of the key being added</param> /// <returns>A NameValueCollection with just one key-value pair</returns> public static NameValueCollection CreateHeaderEntry(string key, string value) { NameValueCollection collection = new NameValueCollection(); collection.Add(key, value); return collection; } /// <summary> /// Formats the current date as a GMT timestamp /// </summary> /// <returns>A GMT formatted string representation /// of the current date and time /// </returns> public static string FormattedCurrentTimestamp { get { return AWSSDKUtils.FormattedCurrentTimestampGMT; } } /// <summary> /// URL encodes a string. If the path property is specified, /// the accepted characters {/:+} are not encoded. /// </summary> /// <param name="data">The string to encode</param> /// <param name="path">Whether the string is a URL path or not</param> /// <returns></returns> public static string UrlEncode(string data, bool path) { return AWSSDKUtils.UrlEncode(1738, data, path); } } }
74
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudFront.Internal; namespace Amazon.CloudFront { /// <summary> /// Configuration for accessing Amazon CloudFront service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudFrontConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.105.69"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudFrontConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudFrontDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "cloudfront"; this.EndpointProvider = new AmazonCloudFrontEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "cloudfront"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2020-05-31"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudFront { /// <summary> /// Configuration for accessing Amazon CloudFront service /// </summary> public static class AmazonCloudFrontDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudFront /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudFront.Endpoints { /// <summary> /// Contains parameters used for resolving CloudFront endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudFrontEndpointProvider and CloudFrontEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudFrontEndpointParameters : EndpointParameters { /// <summary> /// CloudFrontEndpointParameters constructor /// </summary> public CloudFrontEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudFront { ///<summary> /// Common exception for the CloudFront service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudFrontException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudFrontException /// </summary> /// <param name="message"></param> public AmazonCloudFrontException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudFrontException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudFrontException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudFrontException /// </summary> /// <param name="innerException"></param> public AmazonCloudFrontException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudFrontException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudFrontException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudFrontException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudFrontException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonCloudFrontException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonCloudFrontException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudFront { /// <summary> /// Constants used for properties of type CachePolicyCookieBehavior. /// </summary> public class CachePolicyCookieBehavior : ConstantClass { /// <summary> /// Constant All for CachePolicyCookieBehavior /// </summary> public static readonly CachePolicyCookieBehavior All = new CachePolicyCookieBehavior("all"); /// <summary> /// Constant AllExcept for CachePolicyCookieBehavior /// </summary> public static readonly CachePolicyCookieBehavior AllExcept = new CachePolicyCookieBehavior("allExcept"); /// <summary> /// Constant None for CachePolicyCookieBehavior /// </summary> public static readonly CachePolicyCookieBehavior None = new CachePolicyCookieBehavior("none"); /// <summary> /// Constant Whitelist for CachePolicyCookieBehavior /// </summary> public static readonly CachePolicyCookieBehavior Whitelist = new CachePolicyCookieBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CachePolicyCookieBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CachePolicyCookieBehavior FindValue(string value) { return FindValue<CachePolicyCookieBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CachePolicyCookieBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CachePolicyHeaderBehavior. /// </summary> public class CachePolicyHeaderBehavior : ConstantClass { /// <summary> /// Constant None for CachePolicyHeaderBehavior /// </summary> public static readonly CachePolicyHeaderBehavior None = new CachePolicyHeaderBehavior("none"); /// <summary> /// Constant Whitelist for CachePolicyHeaderBehavior /// </summary> public static readonly CachePolicyHeaderBehavior Whitelist = new CachePolicyHeaderBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CachePolicyHeaderBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CachePolicyHeaderBehavior FindValue(string value) { return FindValue<CachePolicyHeaderBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CachePolicyHeaderBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CachePolicyQueryStringBehavior. /// </summary> public class CachePolicyQueryStringBehavior : ConstantClass { /// <summary> /// Constant All for CachePolicyQueryStringBehavior /// </summary> public static readonly CachePolicyQueryStringBehavior All = new CachePolicyQueryStringBehavior("all"); /// <summary> /// Constant AllExcept for CachePolicyQueryStringBehavior /// </summary> public static readonly CachePolicyQueryStringBehavior AllExcept = new CachePolicyQueryStringBehavior("allExcept"); /// <summary> /// Constant None for CachePolicyQueryStringBehavior /// </summary> public static readonly CachePolicyQueryStringBehavior None = new CachePolicyQueryStringBehavior("none"); /// <summary> /// Constant Whitelist for CachePolicyQueryStringBehavior /// </summary> public static readonly CachePolicyQueryStringBehavior Whitelist = new CachePolicyQueryStringBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CachePolicyQueryStringBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CachePolicyQueryStringBehavior FindValue(string value) { return FindValue<CachePolicyQueryStringBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CachePolicyQueryStringBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CachePolicyType. /// </summary> public class CachePolicyType : ConstantClass { /// <summary> /// Constant Custom for CachePolicyType /// </summary> public static readonly CachePolicyType Custom = new CachePolicyType("custom"); /// <summary> /// Constant Managed for CachePolicyType /// </summary> public static readonly CachePolicyType Managed = new CachePolicyType("managed"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CachePolicyType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CachePolicyType FindValue(string value) { return FindValue<CachePolicyType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CachePolicyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CertificateSource. /// </summary> public class CertificateSource : ConstantClass { /// <summary> /// Constant Acm for CertificateSource /// </summary> public static readonly CertificateSource Acm = new CertificateSource("acm"); /// <summary> /// Constant Cloudfront for CertificateSource /// </summary> public static readonly CertificateSource Cloudfront = new CertificateSource("cloudfront"); /// <summary> /// Constant Iam for CertificateSource /// </summary> public static readonly CertificateSource Iam = new CertificateSource("iam"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CertificateSource(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CertificateSource FindValue(string value) { return FindValue<CertificateSource>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CertificateSource(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ContinuousDeploymentPolicyType. /// </summary> public class ContinuousDeploymentPolicyType : ConstantClass { /// <summary> /// Constant SingleHeader for ContinuousDeploymentPolicyType /// </summary> public static readonly ContinuousDeploymentPolicyType SingleHeader = new ContinuousDeploymentPolicyType("SingleHeader"); /// <summary> /// Constant SingleWeight for ContinuousDeploymentPolicyType /// </summary> public static readonly ContinuousDeploymentPolicyType SingleWeight = new ContinuousDeploymentPolicyType("SingleWeight"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ContinuousDeploymentPolicyType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ContinuousDeploymentPolicyType FindValue(string value) { return FindValue<ContinuousDeploymentPolicyType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ContinuousDeploymentPolicyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventType. /// </summary> public class EventType : ConstantClass { /// <summary> /// Constant OriginRequest for EventType /// </summary> public static readonly EventType OriginRequest = new EventType("origin-request"); /// <summary> /// Constant OriginResponse for EventType /// </summary> public static readonly EventType OriginResponse = new EventType("origin-response"); /// <summary> /// Constant ViewerRequest for EventType /// </summary> public static readonly EventType ViewerRequest = new EventType("viewer-request"); /// <summary> /// Constant ViewerResponse for EventType /// </summary> public static readonly EventType ViewerResponse = new EventType("viewer-response"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EventType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static EventType FindValue(string value) { return FindValue<EventType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator EventType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Format. /// </summary> public class Format : ConstantClass { /// <summary> /// Constant URLEncoded for Format /// </summary> public static readonly Format URLEncoded = new Format("URLEncoded"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public Format(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static Format FindValue(string value) { return FindValue<Format>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator Format(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FrameOptionsList. /// </summary> public class FrameOptionsList : ConstantClass { /// <summary> /// Constant DENY for FrameOptionsList /// </summary> public static readonly FrameOptionsList DENY = new FrameOptionsList("DENY"); /// <summary> /// Constant SAMEORIGIN for FrameOptionsList /// </summary> public static readonly FrameOptionsList SAMEORIGIN = new FrameOptionsList("SAMEORIGIN"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public FrameOptionsList(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static FrameOptionsList FindValue(string value) { return FindValue<FrameOptionsList>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator FrameOptionsList(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FunctionRuntime. /// </summary> public class FunctionRuntime : ConstantClass { /// <summary> /// Constant CloudfrontJs10 for FunctionRuntime /// </summary> public static readonly FunctionRuntime CloudfrontJs10 = new FunctionRuntime("cloudfront-js-1.0"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public FunctionRuntime(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static FunctionRuntime FindValue(string value) { return FindValue<FunctionRuntime>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator FunctionRuntime(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FunctionStage. /// </summary> public class FunctionStage : ConstantClass { /// <summary> /// Constant DEVELOPMENT for FunctionStage /// </summary> public static readonly FunctionStage DEVELOPMENT = new FunctionStage("DEVELOPMENT"); /// <summary> /// Constant LIVE for FunctionStage /// </summary> public static readonly FunctionStage LIVE = new FunctionStage("LIVE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public FunctionStage(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static FunctionStage FindValue(string value) { return FindValue<FunctionStage>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator FunctionStage(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type GeoRestrictionType. /// </summary> public class GeoRestrictionType : ConstantClass { /// <summary> /// Constant Blacklist for GeoRestrictionType /// </summary> public static readonly GeoRestrictionType Blacklist = new GeoRestrictionType("blacklist"); /// <summary> /// Constant None for GeoRestrictionType /// </summary> public static readonly GeoRestrictionType None = new GeoRestrictionType("none"); /// <summary> /// Constant Whitelist for GeoRestrictionType /// </summary> public static readonly GeoRestrictionType Whitelist = new GeoRestrictionType("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public GeoRestrictionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static GeoRestrictionType FindValue(string value) { return FindValue<GeoRestrictionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator GeoRestrictionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HttpVersion. /// </summary> public class HttpVersion : ConstantClass { /// <summary> /// Constant Http11 for HttpVersion /// </summary> public static readonly HttpVersion Http11 = new HttpVersion("http1.1"); /// <summary> /// Constant Http2 for HttpVersion /// </summary> public static readonly HttpVersion Http2 = new HttpVersion("http2"); /// <summary> /// Constant Http2and3 for HttpVersion /// </summary> public static readonly HttpVersion Http2and3 = new HttpVersion("http2and3"); /// <summary> /// Constant Http3 for HttpVersion /// </summary> public static readonly HttpVersion Http3 = new HttpVersion("http3"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public HttpVersion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static HttpVersion FindValue(string value) { return FindValue<HttpVersion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator HttpVersion(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ICPRecordalStatus. /// </summary> public class ICPRecordalStatus : ConstantClass { /// <summary> /// Constant APPROVED for ICPRecordalStatus /// </summary> public static readonly ICPRecordalStatus APPROVED = new ICPRecordalStatus("APPROVED"); /// <summary> /// Constant PENDING for ICPRecordalStatus /// </summary> public static readonly ICPRecordalStatus PENDING = new ICPRecordalStatus("PENDING"); /// <summary> /// Constant SUSPENDED for ICPRecordalStatus /// </summary> public static readonly ICPRecordalStatus SUSPENDED = new ICPRecordalStatus("SUSPENDED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ICPRecordalStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ICPRecordalStatus FindValue(string value) { return FindValue<ICPRecordalStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ICPRecordalStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ItemSelection. /// </summary> public class ItemSelection : ConstantClass { /// <summary> /// Constant All for ItemSelection /// </summary> public static readonly ItemSelection All = new ItemSelection("all"); /// <summary> /// Constant None for ItemSelection /// </summary> public static readonly ItemSelection None = new ItemSelection("none"); /// <summary> /// Constant Whitelist for ItemSelection /// </summary> public static readonly ItemSelection Whitelist = new ItemSelection("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ItemSelection(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ItemSelection FindValue(string value) { return FindValue<ItemSelection>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ItemSelection(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Method. /// </summary> public class Method : ConstantClass { /// <summary> /// Constant DELETE for Method /// </summary> public static readonly Method DELETE = new Method("DELETE"); /// <summary> /// Constant GET for Method /// </summary> public static readonly Method GET = new Method("GET"); /// <summary> /// Constant HEAD for Method /// </summary> public static readonly Method HEAD = new Method("HEAD"); /// <summary> /// Constant OPTIONS for Method /// </summary> public static readonly Method OPTIONS = new Method("OPTIONS"); /// <summary> /// Constant PATCH for Method /// </summary> public static readonly Method PATCH = new Method("PATCH"); /// <summary> /// Constant POST for Method /// </summary> public static readonly Method POST = new Method("POST"); /// <summary> /// Constant PUT for Method /// </summary> public static readonly Method PUT = new Method("PUT"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public Method(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static Method FindValue(string value) { return FindValue<Method>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator Method(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MinimumProtocolVersion. /// </summary> public class MinimumProtocolVersion : ConstantClass { /// <summary> /// Constant SSLv3 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion SSLv3 = new MinimumProtocolVersion("SSLv3"); /// <summary> /// Constant TLSv1 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv1 = new MinimumProtocolVersion("TLSv1"); /// <summary> /// Constant TLSv1_2016 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv1_2016 = new MinimumProtocolVersion("TLSv1_2016"); /// <summary> /// Constant TLSv11_2016 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv11_2016 = new MinimumProtocolVersion("TLSv1.1_2016"); /// <summary> /// Constant TLSv12_2018 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv12_2018 = new MinimumProtocolVersion("TLSv1.2_2018"); /// <summary> /// Constant TLSv12_2019 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv12_2019 = new MinimumProtocolVersion("TLSv1.2_2019"); /// <summary> /// Constant TLSv12_2021 for MinimumProtocolVersion /// </summary> public static readonly MinimumProtocolVersion TLSv12_2021 = new MinimumProtocolVersion("TLSv1.2_2021"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MinimumProtocolVersion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MinimumProtocolVersion FindValue(string value) { return FindValue<MinimumProtocolVersion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MinimumProtocolVersion(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginAccessControlOriginTypes. /// </summary> public class OriginAccessControlOriginTypes : ConstantClass { /// <summary> /// Constant Mediastore for OriginAccessControlOriginTypes /// </summary> public static readonly OriginAccessControlOriginTypes Mediastore = new OriginAccessControlOriginTypes("mediastore"); /// <summary> /// Constant S3 for OriginAccessControlOriginTypes /// </summary> public static readonly OriginAccessControlOriginTypes S3 = new OriginAccessControlOriginTypes("s3"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginAccessControlOriginTypes(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginAccessControlOriginTypes FindValue(string value) { return FindValue<OriginAccessControlOriginTypes>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginAccessControlOriginTypes(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginAccessControlSigningBehaviors. /// </summary> public class OriginAccessControlSigningBehaviors : ConstantClass { /// <summary> /// Constant Always for OriginAccessControlSigningBehaviors /// </summary> public static readonly OriginAccessControlSigningBehaviors Always = new OriginAccessControlSigningBehaviors("always"); /// <summary> /// Constant Never for OriginAccessControlSigningBehaviors /// </summary> public static readonly OriginAccessControlSigningBehaviors Never = new OriginAccessControlSigningBehaviors("never"); /// <summary> /// Constant NoOverride for OriginAccessControlSigningBehaviors /// </summary> public static readonly OriginAccessControlSigningBehaviors NoOverride = new OriginAccessControlSigningBehaviors("no-override"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginAccessControlSigningBehaviors(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginAccessControlSigningBehaviors FindValue(string value) { return FindValue<OriginAccessControlSigningBehaviors>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginAccessControlSigningBehaviors(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginAccessControlSigningProtocols. /// </summary> public class OriginAccessControlSigningProtocols : ConstantClass { /// <summary> /// Constant Sigv4 for OriginAccessControlSigningProtocols /// </summary> public static readonly OriginAccessControlSigningProtocols Sigv4 = new OriginAccessControlSigningProtocols("sigv4"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginAccessControlSigningProtocols(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginAccessControlSigningProtocols FindValue(string value) { return FindValue<OriginAccessControlSigningProtocols>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginAccessControlSigningProtocols(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginProtocolPolicy. /// </summary> public class OriginProtocolPolicy : ConstantClass { /// <summary> /// Constant HttpOnly for OriginProtocolPolicy /// </summary> public static readonly OriginProtocolPolicy HttpOnly = new OriginProtocolPolicy("http-only"); /// <summary> /// Constant HttpsOnly for OriginProtocolPolicy /// </summary> public static readonly OriginProtocolPolicy HttpsOnly = new OriginProtocolPolicy("https-only"); /// <summary> /// Constant MatchViewer for OriginProtocolPolicy /// </summary> public static readonly OriginProtocolPolicy MatchViewer = new OriginProtocolPolicy("match-viewer"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginProtocolPolicy(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginProtocolPolicy FindValue(string value) { return FindValue<OriginProtocolPolicy>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginProtocolPolicy(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginRequestPolicyCookieBehavior. /// </summary> public class OriginRequestPolicyCookieBehavior : ConstantClass { /// <summary> /// Constant All for OriginRequestPolicyCookieBehavior /// </summary> public static readonly OriginRequestPolicyCookieBehavior All = new OriginRequestPolicyCookieBehavior("all"); /// <summary> /// Constant AllExcept for OriginRequestPolicyCookieBehavior /// </summary> public static readonly OriginRequestPolicyCookieBehavior AllExcept = new OriginRequestPolicyCookieBehavior("allExcept"); /// <summary> /// Constant None for OriginRequestPolicyCookieBehavior /// </summary> public static readonly OriginRequestPolicyCookieBehavior None = new OriginRequestPolicyCookieBehavior("none"); /// <summary> /// Constant Whitelist for OriginRequestPolicyCookieBehavior /// </summary> public static readonly OriginRequestPolicyCookieBehavior Whitelist = new OriginRequestPolicyCookieBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginRequestPolicyCookieBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginRequestPolicyCookieBehavior FindValue(string value) { return FindValue<OriginRequestPolicyCookieBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginRequestPolicyCookieBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginRequestPolicyHeaderBehavior. /// </summary> public class OriginRequestPolicyHeaderBehavior : ConstantClass { /// <summary> /// Constant AllExcept for OriginRequestPolicyHeaderBehavior /// </summary> public static readonly OriginRequestPolicyHeaderBehavior AllExcept = new OriginRequestPolicyHeaderBehavior("allExcept"); /// <summary> /// Constant AllViewer for OriginRequestPolicyHeaderBehavior /// </summary> public static readonly OriginRequestPolicyHeaderBehavior AllViewer = new OriginRequestPolicyHeaderBehavior("allViewer"); /// <summary> /// Constant AllViewerAndWhitelistCloudFront for OriginRequestPolicyHeaderBehavior /// </summary> public static readonly OriginRequestPolicyHeaderBehavior AllViewerAndWhitelistCloudFront = new OriginRequestPolicyHeaderBehavior("allViewerAndWhitelistCloudFront"); /// <summary> /// Constant None for OriginRequestPolicyHeaderBehavior /// </summary> public static readonly OriginRequestPolicyHeaderBehavior None = new OriginRequestPolicyHeaderBehavior("none"); /// <summary> /// Constant Whitelist for OriginRequestPolicyHeaderBehavior /// </summary> public static readonly OriginRequestPolicyHeaderBehavior Whitelist = new OriginRequestPolicyHeaderBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginRequestPolicyHeaderBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginRequestPolicyHeaderBehavior FindValue(string value) { return FindValue<OriginRequestPolicyHeaderBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginRequestPolicyHeaderBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginRequestPolicyQueryStringBehavior. /// </summary> public class OriginRequestPolicyQueryStringBehavior : ConstantClass { /// <summary> /// Constant All for OriginRequestPolicyQueryStringBehavior /// </summary> public static readonly OriginRequestPolicyQueryStringBehavior All = new OriginRequestPolicyQueryStringBehavior("all"); /// <summary> /// Constant AllExcept for OriginRequestPolicyQueryStringBehavior /// </summary> public static readonly OriginRequestPolicyQueryStringBehavior AllExcept = new OriginRequestPolicyQueryStringBehavior("allExcept"); /// <summary> /// Constant None for OriginRequestPolicyQueryStringBehavior /// </summary> public static readonly OriginRequestPolicyQueryStringBehavior None = new OriginRequestPolicyQueryStringBehavior("none"); /// <summary> /// Constant Whitelist for OriginRequestPolicyQueryStringBehavior /// </summary> public static readonly OriginRequestPolicyQueryStringBehavior Whitelist = new OriginRequestPolicyQueryStringBehavior("whitelist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginRequestPolicyQueryStringBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginRequestPolicyQueryStringBehavior FindValue(string value) { return FindValue<OriginRequestPolicyQueryStringBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginRequestPolicyQueryStringBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginRequestPolicyType. /// </summary> public class OriginRequestPolicyType : ConstantClass { /// <summary> /// Constant Custom for OriginRequestPolicyType /// </summary> public static readonly OriginRequestPolicyType Custom = new OriginRequestPolicyType("custom"); /// <summary> /// Constant Managed for OriginRequestPolicyType /// </summary> public static readonly OriginRequestPolicyType Managed = new OriginRequestPolicyType("managed"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginRequestPolicyType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginRequestPolicyType FindValue(string value) { return FindValue<OriginRequestPolicyType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginRequestPolicyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PriceClass. /// </summary> public class PriceClass : ConstantClass { /// <summary> /// Constant PriceClass_100 for PriceClass /// </summary> public static readonly PriceClass PriceClass_100 = new PriceClass("PriceClass_100"); /// <summary> /// Constant PriceClass_200 for PriceClass /// </summary> public static readonly PriceClass PriceClass_200 = new PriceClass("PriceClass_200"); /// <summary> /// Constant PriceClass_All for PriceClass /// </summary> public static readonly PriceClass PriceClass_All = new PriceClass("PriceClass_All"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PriceClass(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PriceClass FindValue(string value) { return FindValue<PriceClass>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PriceClass(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RealtimeMetricsSubscriptionStatus. /// </summary> public class RealtimeMetricsSubscriptionStatus : ConstantClass { /// <summary> /// Constant Disabled for RealtimeMetricsSubscriptionStatus /// </summary> public static readonly RealtimeMetricsSubscriptionStatus Disabled = new RealtimeMetricsSubscriptionStatus("Disabled"); /// <summary> /// Constant Enabled for RealtimeMetricsSubscriptionStatus /// </summary> public static readonly RealtimeMetricsSubscriptionStatus Enabled = new RealtimeMetricsSubscriptionStatus("Enabled"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public RealtimeMetricsSubscriptionStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static RealtimeMetricsSubscriptionStatus FindValue(string value) { return FindValue<RealtimeMetricsSubscriptionStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator RealtimeMetricsSubscriptionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ReferrerPolicyList. /// </summary> public class ReferrerPolicyList : ConstantClass { /// <summary> /// Constant NoReferrer for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList NoReferrer = new ReferrerPolicyList("no-referrer"); /// <summary> /// Constant NoReferrerWhenDowngrade for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList NoReferrerWhenDowngrade = new ReferrerPolicyList("no-referrer-when-downgrade"); /// <summary> /// Constant Origin for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList Origin = new ReferrerPolicyList("origin"); /// <summary> /// Constant OriginWhenCrossOrigin for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList OriginWhenCrossOrigin = new ReferrerPolicyList("origin-when-cross-origin"); /// <summary> /// Constant SameOrigin for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList SameOrigin = new ReferrerPolicyList("same-origin"); /// <summary> /// Constant StrictOrigin for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList StrictOrigin = new ReferrerPolicyList("strict-origin"); /// <summary> /// Constant StrictOriginWhenCrossOrigin for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList StrictOriginWhenCrossOrigin = new ReferrerPolicyList("strict-origin-when-cross-origin"); /// <summary> /// Constant UnsafeUrl for ReferrerPolicyList /// </summary> public static readonly ReferrerPolicyList UnsafeUrl = new ReferrerPolicyList("unsafe-url"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ReferrerPolicyList(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ReferrerPolicyList FindValue(string value) { return FindValue<ReferrerPolicyList>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ReferrerPolicyList(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ResponseHeadersPolicyAccessControlAllowMethodsValues. /// </summary> public class ResponseHeadersPolicyAccessControlAllowMethodsValues : ConstantClass { /// <summary> /// Constant ALL for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues ALL = new ResponseHeadersPolicyAccessControlAllowMethodsValues("ALL"); /// <summary> /// Constant DELETE for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues DELETE = new ResponseHeadersPolicyAccessControlAllowMethodsValues("DELETE"); /// <summary> /// Constant GET for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues GET = new ResponseHeadersPolicyAccessControlAllowMethodsValues("GET"); /// <summary> /// Constant HEAD for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues HEAD = new ResponseHeadersPolicyAccessControlAllowMethodsValues("HEAD"); /// <summary> /// Constant OPTIONS for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues OPTIONS = new ResponseHeadersPolicyAccessControlAllowMethodsValues("OPTIONS"); /// <summary> /// Constant PATCH for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues PATCH = new ResponseHeadersPolicyAccessControlAllowMethodsValues("PATCH"); /// <summary> /// Constant POST for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues POST = new ResponseHeadersPolicyAccessControlAllowMethodsValues("POST"); /// <summary> /// Constant PUT for ResponseHeadersPolicyAccessControlAllowMethodsValues /// </summary> public static readonly ResponseHeadersPolicyAccessControlAllowMethodsValues PUT = new ResponseHeadersPolicyAccessControlAllowMethodsValues("PUT"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ResponseHeadersPolicyAccessControlAllowMethodsValues(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ResponseHeadersPolicyAccessControlAllowMethodsValues FindValue(string value) { return FindValue<ResponseHeadersPolicyAccessControlAllowMethodsValues>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ResponseHeadersPolicyAccessControlAllowMethodsValues(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ResponseHeadersPolicyType. /// </summary> public class ResponseHeadersPolicyType : ConstantClass { /// <summary> /// Constant Custom for ResponseHeadersPolicyType /// </summary> public static readonly ResponseHeadersPolicyType Custom = new ResponseHeadersPolicyType("custom"); /// <summary> /// Constant Managed for ResponseHeadersPolicyType /// </summary> public static readonly ResponseHeadersPolicyType Managed = new ResponseHeadersPolicyType("managed"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ResponseHeadersPolicyType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ResponseHeadersPolicyType FindValue(string value) { return FindValue<ResponseHeadersPolicyType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ResponseHeadersPolicyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SslProtocol. /// </summary> public class SslProtocol : ConstantClass { /// <summary> /// Constant SSLv3 for SslProtocol /// </summary> public static readonly SslProtocol SSLv3 = new SslProtocol("SSLv3"); /// <summary> /// Constant TLSv1 for SslProtocol /// </summary> public static readonly SslProtocol TLSv1 = new SslProtocol("TLSv1"); /// <summary> /// Constant TLSv11 for SslProtocol /// </summary> public static readonly SslProtocol TLSv11 = new SslProtocol("TLSv1.1"); /// <summary> /// Constant TLSv12 for SslProtocol /// </summary> public static readonly SslProtocol TLSv12 = new SslProtocol("TLSv1.2"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SslProtocol(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SslProtocol FindValue(string value) { return FindValue<SslProtocol>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SslProtocol(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SSLSupportMethod. /// </summary> public class SSLSupportMethod : ConstantClass { /// <summary> /// Constant SniOnly for SSLSupportMethod /// </summary> public static readonly SSLSupportMethod SniOnly = new SSLSupportMethod("sni-only"); /// <summary> /// Constant StaticIp for SSLSupportMethod /// </summary> public static readonly SSLSupportMethod StaticIp = new SSLSupportMethod("static-ip"); /// <summary> /// Constant Vip for SSLSupportMethod /// </summary> public static readonly SSLSupportMethod Vip = new SSLSupportMethod("vip"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SSLSupportMethod(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SSLSupportMethod FindValue(string value) { return FindValue<SSLSupportMethod>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SSLSupportMethod(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ViewerProtocolPolicy. /// </summary> public class ViewerProtocolPolicy : ConstantClass { /// <summary> /// Constant AllowAll for ViewerProtocolPolicy /// </summary> public static readonly ViewerProtocolPolicy AllowAll = new ViewerProtocolPolicy("allow-all"); /// <summary> /// Constant HttpsOnly for ViewerProtocolPolicy /// </summary> public static readonly ViewerProtocolPolicy HttpsOnly = new ViewerProtocolPolicy("https-only"); /// <summary> /// Constant RedirectToHttps for ViewerProtocolPolicy /// </summary> public static readonly ViewerProtocolPolicy RedirectToHttps = new ViewerProtocolPolicy("redirect-to-https"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ViewerProtocolPolicy(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ViewerProtocolPolicy FindValue(string value) { return FindValue<ViewerProtocolPolicy>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ViewerProtocolPolicy(string value) { return FindValue(value); } } }
1,856
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.CloudFront.Internal { /// <summary> /// Amazon CloudFront endpoint provider. /// Resolves endpoint for given set of CloudFrontEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudFrontEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudFrontEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws")) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront-fips.{Region}.api.aws", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint("https://cloudfront-fips.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront.{Region}.api.aws", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint("https://cloudfront.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-cn")) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront-fips.{Region}.api.amazonwebservices.com.cn", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://cloudfront-fips.{Region}.amazonaws.com.cn", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront.{Region}.api.amazonwebservices.com.cn", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint("https://cloudfront.cn-northwest-1.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { if (Equals(refs["Region"], "aws-global")) { return new Endpoint("https://cloudfront-fips.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } if (Equals(refs["Region"], "aws-global")) { return new Endpoint("https://cloudfront.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["Region"], "aws-cn-global")) { return new Endpoint("https://cloudfront.cn-northwest-1.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""cloudfront"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
171
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using Amazon.CloudFront.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudFront.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudFront.Internal { /// <summary> /// Amazon CloudFront endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudFront service requests. /// Collects values for CloudFrontEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudFrontEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudFrontEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudFrontConfig)requestContext.ClientConfig; var result = new CloudFrontEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Internal { /// <summary> /// Service metadata for Amazon CloudFront service /// </summary> public partial class AmazonCloudFrontMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudFront"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Access denied. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonCloudFrontException { /// <summary> /// Constructs a new AccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="innerException"></param> public AccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of key groups, and the public keys in each key group, that CloudFront can use /// to verify the signatures of signed URLs and signed cookies. /// </summary> public partial class ActiveTrustedKeyGroups { private bool? _enabled; private List<KGKeyPairIds> _items = new List<KGKeyPairIds>(); private int? _quantity; /// <summary> /// Gets and sets the property Enabled. /// <para> /// This field is <code>true</code> if any of the key groups have public keys that CloudFront /// can use to verify the signatures of signed URLs and signed cookies. If not, this field /// is <code>false</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property Items. /// <para> /// A list of key groups, including the identifiers of the public keys in each key group /// that CloudFront can use to verify the signatures of signed URLs and signed cookies. /// </para> /// </summary> public List<KGKeyPairIds> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of key groups in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of Amazon Web Services accounts and the active CloudFront key pairs in each /// account that CloudFront can use to verify the signatures of signed URLs and signed /// cookies. /// </summary> public partial class ActiveTrustedSigners { private bool? _enabled; private List<Signer> _items = new List<Signer>(); private int? _quantity; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public ActiveTrustedSigners() { } /// <summary> /// Instantiates ActiveTrustedSigners with the parameterized properties /// </summary> /// <param name="items">A list of Amazon Web Services accounts and the identifiers of active CloudFront key pairs in each account that CloudFront can use to verify the signatures of signed URLs and signed cookies.</param> public ActiveTrustedSigners(List<Signer> items) { _items = items; } /// <summary> /// Gets and sets the property Enabled. /// <para> /// This field is <code>true</code> if any of the Amazon Web Services accounts in the /// list have active CloudFront key pairs that CloudFront can use to verify the signatures /// of signed URLs and signed cookies. If not, this field is <code>false</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property Items. /// <para> /// A list of Amazon Web Services accounts and the identifiers of active CloudFront key /// pairs in each account that CloudFront can use to verify the signatures of signed URLs /// and signed cookies. /// </para> /// </summary> public List<Signer> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of Amazon Web Services accounts in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
117
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains information about CNAMEs (alternate domain names), if /// any, for this distribution. /// </summary> public partial class Aliases { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains the CNAME aliases, if any, that you want to associate /// with this distribution. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of CNAME aliases, if any, that you want to associate with this distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Amazon Web Services services in China customers must file for an Internet Content /// Provider (ICP) recordal if they want to serve content publicly on an alternate domain /// name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides /// the ICP recordal status for CNAMEs associated with distributions. The status is returned /// in the CloudFront response; you can't configure it yourself. /// /// /// <para> /// For more information about ICP recordals, see <a href="https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html"> /// Signup, Accounts, and Credentials</a> in <i>Getting Started with Amazon Web Services /// services in China</i>. /// </para> /// </summary> public partial class AliasICPRecordal { private string _cname; private ICPRecordalStatus _icpRecordalStatus; /// <summary> /// Gets and sets the property CNAME. /// <para> /// A domain name associated with a distribution. /// </para> /// </summary> public string CNAME { get { return this._cname; } set { this._cname = value; } } // Check to see if CNAME property is set internal bool IsSetCNAME() { return this._cname != null; } /// <summary> /// Gets and sets the property ICPRecordalStatus. /// <para> /// The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus /// is set to APPROVED for all CNAMEs (aliases) in regions outside of China. /// </para> /// /// <para> /// The status values returned are the following: /// </para> /// <ul> <li> /// <para> /// <b>APPROVED</b> indicates that the associated CNAME has a valid ICP recordal number. /// Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to /// different ICP recordals. To be marked as APPROVED, that is, valid to use with China /// region, a CNAME must have one ICP recordal number associated with it. /// </para> /// </li> <li> /// <para> /// <b>SUSPENDED</b> indicates that the associated CNAME does not have a valid ICP recordal /// number. /// </para> /// </li> <li> /// <para> /// <b>PENDING</b> indicates that CloudFront can't determine the ICP recordal status /// of the CNAME associated with the distribution because there was an error in trying /// to determine the status. You can try again to see if the error is resolved in which /// case CloudFront returns an APPROVED or SUSPENDED status. /// </para> /// </li> </ul> /// </summary> public ICPRecordalStatus ICPRecordalStatus { get { return this._icpRecordalStatus; } set { this._icpRecordalStatus = value; } } // Check to see if ICPRecordalStatus property is set internal bool IsSetICPRecordalStatus() { return this._icpRecordalStatus != null; } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that controls which HTTP methods CloudFront processes and forwards /// to your Amazon S3 bucket or your custom origin. There are three choices: /// /// <ul> <li> /// <para> /// CloudFront forwards only <code>GET</code> and <code>HEAD</code> requests. /// </para> /// </li> <li> /// <para> /// CloudFront forwards only <code>GET</code>, <code>HEAD</code>, and <code>OPTIONS</code> /// requests. /// </para> /// </li> <li> /// <para> /// CloudFront forwards <code>GET, HEAD, OPTIONS, PUT, PATCH, POST</code>, and <code>DELETE</code> /// requests. /// </para> /// </li> </ul> /// <para> /// If you pick the third choice, you may need to restrict access to your Amazon S3 bucket /// or to your custom origin so users can't perform operations that you don't want them /// to. For example, you might not want users to have permissions to delete objects from /// your origin. /// </para> /// </summary> public partial class AllowedMethods { private CachedMethods _cachedMethods; private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property CachedMethods. /// </summary> public CachedMethods CachedMethods { get { return this._cachedMethods; } set { this._cachedMethods = value; } } // Check to see if CachedMethods property is set internal bool IsSetCachedMethods() { return this._cachedMethods != null; } /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains the HTTP methods that you want CloudFront to process /// and forward to your origin. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP methods that you want CloudFront to forward to your origin. Valid /// values are 2 (for <code>GET</code> and <code>HEAD</code> requests), 3 (for <code>GET</code>, /// <code>HEAD</code>, and <code>OPTIONS</code> requests) and 7 (for <code>GET, HEAD, /// OPTIONS, PUT, PATCH, POST</code>, and <code>DELETE</code> requests). /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFront { /// <summary> /// Base class for CloudFront operation requests. /// </summary> public partial class AmazonCloudFrontRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Container for the parameters to the AssociateAlias operation. /// Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront /// distribution. /// /// /// <para> /// With this operation you can move an alias that's already in use on a CloudFront distribution /// to a different distribution in one step. This prevents the downtime that could occur /// if you first remove the alias from one distribution and then separately add the alias /// to another distribution. /// </para> /// /// <para> /// To use this operation to associate an alias with a distribution, you provide the alias /// and the ID of the target distribution for the alias. For more information, including /// how to set up the target distribution, prerequisites that you must complete, and other /// restrictions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving /// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// </summary> public partial class AssociateAliasRequest : AmazonCloudFrontRequest { private string _alias; private string _targetDistributionId; /// <summary> /// Gets and sets the property Alias. /// <para> /// The alias (also known as a CNAME) to add to the target distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public string Alias { get { return this._alias; } set { this._alias = value; } } // Check to see if Alias property is set internal bool IsSetAlias() { return this._alias != null; } /// <summary> /// Gets and sets the property TargetDistributionId. /// <para> /// The ID of the distribution that you're associating the alias with. /// </para> /// </summary> [AWSProperty(Required=true)] public string TargetDistributionId { get { return this._targetDistributionId; } set { this._targetDistributionId = value; } } // Check to see if TargetDistributionId property is set internal bool IsSetTargetDistributionId() { return this._targetDistributionId != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// This is the response object from the AssociateAlias operation. /// </summary> public partial class AssociateAliasResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Invalidation batch specified is too large. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class BatchTooLargeException : AmazonCloudFrontException { /// <summary> /// Constructs a new BatchTooLargeException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public BatchTooLargeException(string message) : base(message) {} /// <summary> /// Construct instance of BatchTooLargeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public BatchTooLargeException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of BatchTooLargeException /// </summary> /// <param name="innerException"></param> public BatchTooLargeException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of BatchTooLargeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public BatchTooLargeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of BatchTooLargeException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public BatchTooLargeException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the BatchTooLargeException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected BatchTooLargeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that describes how CloudFront processes requests. /// /// /// <para> /// You must create at least as many cache behaviors (including the default cache behavior) /// as you have origins if you want CloudFront to serve objects from all of the origins. /// Each cache behavior specifies the one origin from which you want CloudFront to get /// objects. If you have two origins and only the default cache behavior, the default /// cache behavior will cause CloudFront to get objects from one of the origins, but the /// other origin is never used. /// </para> /// /// <para> /// For the current quota (formerly known as limit) on the number of cache behaviors that /// you can add to a distribution, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> /// in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// If you don't want to specify any cache behaviors, include only an empty <code>CacheBehaviors</code> /// element. Don't include an empty <code>CacheBehavior</code> element because this is /// invalid. /// </para> /// /// <para> /// To delete all cache behaviors in an existing distribution, update the distribution /// configuration and include only an empty <code>CacheBehaviors</code> element. /// </para> /// /// <para> /// To add, change, or remove one or more cache behaviors, update the distribution configuration /// and specify all of the cache behaviors that you want to include in the updated distribution. /// </para> /// /// <para> /// For more information about cache behaviors, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior">Cache /// Behavior Settings</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public partial class CacheBehavior { private AllowedMethods _allowedMethods; private string _cachePolicyId; private bool? _compress; private long? _defaultTTL; private string _fieldLevelEncryptionId; private ForwardedValues _forwardedValues; private FunctionAssociations _functionAssociations; private LambdaFunctionAssociations _lambdaFunctionAssociations; private long? _maxTTL; private long? _minTTL; private string _originRequestPolicyId; private string _pathPattern; private string _realtimeLogConfigArn; private string _responseHeadersPolicyId; private bool? _smoothStreaming; private string _targetOriginId; private TrustedKeyGroups _trustedKeyGroups; private TrustedSigners _trustedSigners; private ViewerProtocolPolicy _viewerProtocolPolicy; /// <summary> /// Gets and sets the property AllowedMethods. /// </summary> public AllowedMethods AllowedMethods { get { return this._allowedMethods; } set { this._allowedMethods = value; } } // Check to see if AllowedMethods property is set internal bool IsSetAllowedMethods() { return this._allowedMethods != null; } /// <summary> /// Gets and sets the property CachePolicyId. /// <para> /// The unique identifier of the cache policy that is attached to this cache behavior. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating /// cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using /// the managed cache policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// A <code>CacheBehavior</code> must include either a <code>CachePolicyId</code> or <code>ForwardedValues</code>. /// We recommend that you use a <code>CachePolicyId</code>. /// </para> /// </summary> public string CachePolicyId { get { return this._cachePolicyId; } set { this._cachePolicyId = value; } } // Check to see if CachePolicyId property is set internal bool IsSetCachePolicyId() { return this._cachePolicyId != null; } /// <summary> /// Gets and sets the property Compress. /// <para> /// Whether you want CloudFront to automatically compress certain files for this cache /// behavior. If so, specify true; if not, specify false. For more information, see <a /// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html">Serving /// Compressed Files</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public bool Compress { get { return this._compress.GetValueOrDefault(); } set { this._compress = value; } } // Check to see if Compress property is set internal bool IsSetCompress() { return this._compress.HasValue; } /// <summary> /// Gets and sets the property DefaultTTL. /// <para> /// This field is deprecated. We recommend that you use the <code>DefaultTTL</code> field /// in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating /// cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using /// the managed cache policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// The default amount of time that you want objects to stay in CloudFront caches before /// CloudFront forwards another request to your origin to determine whether the object /// has been updated. The value that you specify applies only when your origin does not /// add HTTP headers such as <code>Cache-Control max-age</code>, <code>Cache-Control s-maxage</code>, /// and <code>Expires</code> to objects. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// How Long Content Stays in an Edge Cache (Expiration)</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// </summary> [Obsolete("This field is deprecated. Use CachePolicy instead.")] public long DefaultTTL { get { return this._defaultTTL.GetValueOrDefault(); } set { this._defaultTTL = value; } } // Check to see if DefaultTTL property is set internal bool IsSetDefaultTTL() { return this._defaultTTL.HasValue; } /// <summary> /// Gets and sets the property FieldLevelEncryptionId. /// <para> /// The value of <code>ID</code> for the field-level encryption configuration that you /// want CloudFront to use for encrypting specific fields of data for this cache behavior. /// </para> /// </summary> public string FieldLevelEncryptionId { get { return this._fieldLevelEncryptionId; } set { this._fieldLevelEncryptionId = value; } } // Check to see if FieldLevelEncryptionId property is set internal bool IsSetFieldLevelEncryptionId() { return this._fieldLevelEncryptionId != null; } /// <summary> /// Gets and sets the property ForwardedValues. /// <para> /// This field is deprecated. We recommend that you use a cache policy or an origin request /// policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html">Working /// with policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// If you want to include values in the cache key, use a cache policy. For more information, /// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating /// cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using /// the managed cache policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// If you want to send values to the origin but not include them in the cache key, use /// an origin request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy">Creating /// origin request policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html">Using /// the managed origin request policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// A <code>CacheBehavior</code> must include either a <code>CachePolicyId</code> or <code>ForwardedValues</code>. /// We recommend that you use a <code>CachePolicyId</code>. /// </para> /// /// <para> /// A complex type that specifies how CloudFront handles query strings, cookies, and HTTP /// headers. /// </para> /// </summary> [Obsolete("This field is deprecated. Use CachePolicy instead.")] public ForwardedValues ForwardedValues { get { return this._forwardedValues; } set { this._forwardedValues = value; } } // Check to see if ForwardedValues property is set internal bool IsSetForwardedValues() { return this._forwardedValues != null; } /// <summary> /// Gets and sets the property FunctionAssociations. /// <para> /// A list of CloudFront functions that are associated with this cache behavior. CloudFront /// functions must be published to the <code>LIVE</code> stage to associate them with /// a cache behavior. /// </para> /// </summary> public FunctionAssociations FunctionAssociations { get { return this._functionAssociations; } set { this._functionAssociations = value; } } // Check to see if FunctionAssociations property is set internal bool IsSetFunctionAssociations() { return this._functionAssociations != null; } /// <summary> /// Gets and sets the property LambdaFunctionAssociations. /// <para> /// A complex type that contains zero or more Lambda@Edge function associations for a /// cache behavior. /// </para> /// </summary> public LambdaFunctionAssociations LambdaFunctionAssociations { get { return this._lambdaFunctionAssociations; } set { this._lambdaFunctionAssociations = value; } } // Check to see if LambdaFunctionAssociations property is set internal bool IsSetLambdaFunctionAssociations() { return this._lambdaFunctionAssociations != null; } /// <summary> /// Gets and sets the property MaxTTL. /// <para> /// This field is deprecated. We recommend that you use the <code>MaxTTL</code> field /// in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating /// cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using /// the managed cache policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// The maximum amount of time that you want objects to stay in CloudFront caches before /// CloudFront forwards another request to your origin to determine whether the object /// has been updated. The value that you specify applies only when your origin adds HTTP /// headers such as <code>Cache-Control max-age</code>, <code>Cache-Control s-maxage</code>, /// and <code>Expires</code> to objects. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// How Long Content Stays in an Edge Cache (Expiration)</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// </summary> [Obsolete("This field is deprecated. Use CachePolicy instead.")] public long MaxTTL { get { return this._maxTTL.GetValueOrDefault(); } set { this._maxTTL = value; } } // Check to see if MaxTTL property is set internal bool IsSetMaxTTL() { return this._maxTTL.HasValue; } /// <summary> /// Gets and sets the property MinTTL. /// <para> /// This field is deprecated. We recommend that you use the <code>MinTTL</code> field /// in a cache policy instead of this field. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy">Creating /// cache policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html">Using /// the managed cache policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// The minimum amount of time that you want objects to stay in CloudFront caches before /// CloudFront forwards another request to your origin to determine whether the object /// has been updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html"> /// Managing How Long Content Stays in an Edge Cache (Expiration)</a> in the <i> Amazon /// CloudFront Developer Guide</i>. /// </para> /// /// <para> /// You must specify <code>0</code> for <code>MinTTL</code> if you configure CloudFront /// to forward all headers to your origin (under <code>Headers</code>, if you specify /// <code>1</code> for <code>Quantity</code> and <code>*</code> for <code>Name</code>). /// </para> /// </summary> [Obsolete("This field is deprecated. Use CachePolicy instead.")] public long MinTTL { get { return this._minTTL.GetValueOrDefault(); } set { this._minTTL = value; } } // Check to see if MinTTL property is set internal bool IsSetMinTTL() { return this._minTTL.HasValue; } /// <summary> /// Gets and sets the property OriginRequestPolicyId. /// <para> /// The unique identifier of the origin request policy that is attached to this cache /// behavior. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy">Creating /// origin request policies</a> or <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html">Using /// the managed origin request policies</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public string OriginRequestPolicyId { get { return this._originRequestPolicyId; } set { this._originRequestPolicyId = value; } } // Check to see if OriginRequestPolicyId property is set internal bool IsSetOriginRequestPolicyId() { return this._originRequestPolicyId != null; } /// <summary> /// Gets and sets the property PathPattern. /// <para> /// The pattern (for example, <code>images/*.jpg</code>) that specifies which requests /// to apply the behavior to. When CloudFront receives a viewer request, the requested /// path is compared with path patterns in the order in which cache behaviors are listed /// in the distribution. /// </para> /// <note> /// <para> /// You can optionally include a slash (<code>/</code>) at the beginning of the path pattern. /// For example, <code>/images/*.jpg</code>. CloudFront behavior is the same with or without /// the leading <code>/</code>. /// </para> /// </note> /// <para> /// The path pattern for the default cache behavior is <code>*</code> and cannot be changed. /// If the request for an object does not match the path pattern for any cache behaviors, /// CloudFront applies the behavior in the default cache behavior. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern">Path /// Pattern</a> in the <i> Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string PathPattern { get { return this._pathPattern; } set { this._pathPattern = value; } } // Check to see if PathPattern property is set internal bool IsSetPathPattern() { return this._pathPattern != null; } /// <summary> /// Gets and sets the property RealtimeLogConfigArn. /// <para> /// The Amazon Resource Name (ARN) of the real-time log configuration that is attached /// to this cache behavior. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time /// logs</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public string RealtimeLogConfigArn { get { return this._realtimeLogConfigArn; } set { this._realtimeLogConfigArn = value; } } // Check to see if RealtimeLogConfigArn property is set internal bool IsSetRealtimeLogConfigArn() { return this._realtimeLogConfigArn != null; } /// <summary> /// Gets and sets the property ResponseHeadersPolicyId. /// <para> /// The identifier for a response headers policy. /// </para> /// </summary> public string ResponseHeadersPolicyId { get { return this._responseHeadersPolicyId; } set { this._responseHeadersPolicyId = value; } } // Check to see if ResponseHeadersPolicyId property is set internal bool IsSetResponseHeadersPolicyId() { return this._responseHeadersPolicyId != null; } /// <summary> /// Gets and sets the property SmoothStreaming. /// <para> /// Indicates whether you want to distribute media files in the Microsoft Smooth Streaming /// format using the origin that is associated with this cache behavior. If so, specify /// <code>true</code>; if not, specify <code>false</code>. If you specify <code>true</code> /// for <code>SmoothStreaming</code>, you can still distribute other content using this /// cache behavior if the content matches the value of <code>PathPattern</code>. /// </para> /// </summary> public bool SmoothStreaming { get { return this._smoothStreaming.GetValueOrDefault(); } set { this._smoothStreaming = value; } } // Check to see if SmoothStreaming property is set internal bool IsSetSmoothStreaming() { return this._smoothStreaming.HasValue; } /// <summary> /// Gets and sets the property TargetOriginId. /// <para> /// The value of <code>ID</code> for the origin that you want CloudFront to route requests /// to when they match this cache behavior. /// </para> /// </summary> [AWSProperty(Required=true)] public string TargetOriginId { get { return this._targetOriginId; } set { this._targetOriginId = value; } } // Check to see if TargetOriginId property is set internal bool IsSetTargetOriginId() { return this._targetOriginId != null; } /// <summary> /// Gets and sets the property TrustedKeyGroups. /// <para> /// A list of key groups that CloudFront can use to validate signed URLs or signed cookies. /// </para> /// /// <para> /// When a cache behavior contains trusted key groups, CloudFront requires signed URLs /// or signed cookies for all requests that match the cache behavior. The URLs or cookies /// must be signed with a private key whose corresponding public key is in the key group. /// The signed URL or cookie contains information about which public key CloudFront should /// use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// private content</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public TrustedKeyGroups TrustedKeyGroups { get { return this._trustedKeyGroups; } set { this._trustedKeyGroups = value; } } // Check to see if TrustedKeyGroups property is set internal bool IsSetTrustedKeyGroups() { return this._trustedKeyGroups != null; } /// <summary> /// Gets and sets the property TrustedSigners. <important> /// <para> /// We recommend using <code>TrustedKeyGroups</code> instead of <code>TrustedSigners</code>. /// </para> /// </important> /// <para> /// A list of Amazon Web Services account IDs whose public keys CloudFront can use to /// validate signed URLs or signed cookies. /// </para> /// /// <para> /// When a cache behavior contains trusted signers, CloudFront requires signed URLs or /// signed cookies for all requests that match the cache behavior. The URLs or cookies /// must be signed with the private key of a CloudFront key pair in the trusted signer's /// Amazon Web Services account. The signed URL or cookie contains information about which /// public key CloudFront should use to verify the signature. For more information, see /// <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// private content</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public TrustedSigners TrustedSigners { get { return this._trustedSigners; } set { this._trustedSigners = value; } } // Check to see if TrustedSigners property is set internal bool IsSetTrustedSigners() { return this._trustedSigners != null; } /// <summary> /// Gets and sets the property ViewerProtocolPolicy. /// <para> /// The protocol that viewers can use to access the files in the origin specified by <code>TargetOriginId</code> /// when a request matches the path pattern in <code>PathPattern</code>. You can specify /// the following options: /// </para> /// <ul> <li> /// <para> /// <code>allow-all</code>: Viewers can use HTTP or HTTPS. /// </para> /// </li> <li> /// <para> /// <code>redirect-to-https</code>: If a viewer submits an HTTP request, CloudFront returns /// an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS /// URL. The viewer then resubmits the request using the new URL. /// </para> /// </li> <li> /// <para> /// <code>https-only</code>: If a viewer sends an HTTP request, CloudFront returns an /// HTTP status code of 403 (Forbidden). /// </para> /// </li> </ul> /// <para> /// For more information about requiring the HTTPS protocol, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html">Requiring /// HTTPS Between Viewers and CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// <note> /// <para> /// The only way to guarantee that viewers retrieve an object that was fetched from the /// origin using HTTPS is never to use any other protocol to fetch the object. If you /// have recently changed from HTTP to HTTPS, we recommend that you clear your objects' /// cache because cached objects are protocol agnostic. That means that an edge location /// will return an object from the cache regardless of whether the current request protocol /// matches the protocol used previously. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// Cache Expiration</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </note> /// </summary> [AWSProperty(Required=true)] public ViewerProtocolPolicy ViewerProtocolPolicy { get { return this._viewerProtocolPolicy; } set { this._viewerProtocolPolicy = value; } } // Check to see if ViewerProtocolPolicy property is set internal bool IsSetViewerProtocolPolicy() { return this._viewerProtocolPolicy != null; } } }
611
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains zero or more <code>CacheBehavior</code> elements. /// </summary> public partial class CacheBehaviors { private List<CacheBehavior> _items = new List<CacheBehavior>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// Optional: A complex type that contains cache behaviors for this distribution. If <code>Quantity</code> /// is <code>0</code>, you can omit <code>Items</code>. /// </para> /// </summary> public List<CacheBehavior> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of cache behaviors for this distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that controls whether CloudFront caches the response to requests using /// the specified HTTP methods. There are two choices: /// /// <ul> <li> /// <para> /// CloudFront caches responses to <code>GET</code> and <code>HEAD</code> requests. /// </para> /// </li> <li> /// <para> /// CloudFront caches responses to <code>GET</code>, <code>HEAD</code>, and <code>OPTIONS</code> /// requests. /// </para> /// </li> </ul> /// <para> /// If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, /// Access-Control-Request-Headers, and Origin headers for the responses to be cached /// correctly. /// </para> /// </summary> public partial class CachedMethods { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains the HTTP methods that you want CloudFront to cache responses /// to. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP methods for which you want CloudFront to cache responses. Valid /// values are <code>2</code> (for caching responses to <code>GET</code> and <code>HEAD</code> /// requests) and <code>3</code> (for caching responses to <code>GET</code>, <code>HEAD</code>, /// and <code>OPTIONS</code> requests). /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A cache policy. /// /// /// <para> /// When it's attached to a cache behavior, the cache policy determines the following: /// </para> /// <ul> <li> /// <para> /// The values that CloudFront includes in the cache key. These values can include HTTP /// headers, cookies, and URL query strings. CloudFront uses the cache key to find an /// object in its cache that it can return to the viewer. /// </para> /// </li> <li> /// <para> /// The default, minimum, and maximum time to live (TTL) values that you want objects /// to stay in the CloudFront cache. /// </para> /// </li> </ul> /// <para> /// The headers, cookies, and query strings that are included in the cache key are also /// included in requests that CloudFront sends to the origin. CloudFront sends a request /// when it can't find a valid object in its cache that matches the request's cache key. /// If you want to send values to the origin but <i>not</i> include them in the cache /// key, use <code>OriginRequestPolicy</code>. /// </para> /// </summary> public partial class CachePolicy { private CachePolicyConfig _cachePolicyConfig; private string _id; private DateTime? _lastModifiedTime; /// <summary> /// Gets and sets the property CachePolicyConfig. /// <para> /// The cache policy configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public CachePolicyConfig CachePolicyConfig { get { return this._cachePolicyConfig; } set { this._cachePolicyConfig = value; } } // Check to see if CachePolicyConfig property is set internal bool IsSetCachePolicyConfig() { return this._cachePolicyConfig != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the cache policy. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The date and time when the cache policy was last modified. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A cache policy with this name already exists. You must provide a unique name. To modify /// an existing cache policy, use <code>UpdateCachePolicy</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CachePolicyAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new CachePolicyAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CachePolicyAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of CachePolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CachePolicyAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CachePolicyAlreadyExistsException /// </summary> /// <param name="innerException"></param> public CachePolicyAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CachePolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CachePolicyAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CachePolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CachePolicyAlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CachePolicyAlreadyExistsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CachePolicyAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A cache policy configuration. /// /// /// <para> /// This configuration determines the following: /// </para> /// <ul> <li> /// <para> /// The values that CloudFront includes in the cache key. These values can include HTTP /// headers, cookies, and URL query strings. CloudFront uses the cache key to find an /// object in its cache that it can return to the viewer. /// </para> /// </li> <li> /// <para> /// The default, minimum, and maximum time to live (TTL) values that you want objects /// to stay in the CloudFront cache. /// </para> /// </li> </ul> /// <para> /// The headers, cookies, and query strings that are included in the cache key are also /// included in requests that CloudFront sends to the origin. CloudFront sends a request /// when it can't find a valid object in its cache that matches the request's cache key. /// If you want to send values to the origin but <i>not</i> include them in the cache /// key, use <code>OriginRequestPolicy</code>. /// </para> /// </summary> public partial class CachePolicyConfig { private string _comment; private long? _defaultTTL; private long? _maxTTL; private long? _minTTL; private string _name; private ParametersInCacheKeyAndForwardedToOrigin _parametersInCacheKeyAndForwardedToOrigin; /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment to describe the cache policy. The comment cannot be longer than 128 characters. /// </para> /// </summary> public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property DefaultTTL. /// <para> /// The default amount of time, in seconds, that you want objects to stay in the CloudFront /// cache before CloudFront sends another request to the origin to see if the object has /// been updated. CloudFront uses this value as the object's time to live (TTL) only when /// the origin does <i>not</i> send <code>Cache-Control</code> or <code>Expires</code> /// headers with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// How Long Content Stays in an Edge Cache (Expiration)</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// /// <para> /// The default value for this field is 86400 seconds (one day). If the value of <code>MinTTL</code> /// is more than 86400 seconds, then the default value for this field is the same as the /// value of <code>MinTTL</code>. /// </para> /// </summary> public long DefaultTTL { get { return this._defaultTTL.GetValueOrDefault(); } set { this._defaultTTL = value; } } // Check to see if DefaultTTL property is set internal bool IsSetDefaultTTL() { return this._defaultTTL.HasValue; } /// <summary> /// Gets and sets the property MaxTTL. /// <para> /// The maximum amount of time, in seconds, that objects stay in the CloudFront cache /// before CloudFront sends another request to the origin to see if the object has been /// updated. CloudFront uses this value only when the origin sends <code>Cache-Control</code> /// or <code>Expires</code> headers with the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// How Long Content Stays in an Edge Cache (Expiration)</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// /// <para> /// The default value for this field is 31536000 seconds (one year). If the value of <code>MinTTL</code> /// or <code>DefaultTTL</code> is more than 31536000 seconds, then the default value for /// this field is the same as the value of <code>DefaultTTL</code>. /// </para> /// </summary> public long MaxTTL { get { return this._maxTTL.GetValueOrDefault(); } set { this._maxTTL = value; } } // Check to see if MaxTTL property is set internal bool IsSetMaxTTL() { return this._maxTTL.HasValue; } /// <summary> /// Gets and sets the property MinTTL. /// <para> /// The minimum amount of time, in seconds, that you want objects to stay in the CloudFront /// cache before CloudFront sends another request to the origin to see if the object has /// been updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html">Managing /// How Long Content Stays in an Edge Cache (Expiration)</a> in the <i>Amazon CloudFront /// Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public long MinTTL { get { return this._minTTL.GetValueOrDefault(); } set { this._minTTL = value; } } // Check to see if MinTTL property is set internal bool IsSetMinTTL() { return this._minTTL.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// A unique name to identify the cache policy. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ParametersInCacheKeyAndForwardedToOrigin. /// <para> /// The HTTP headers, cookies, and URL query strings to include in the cache key. The /// values included in the cache key are also included in requests that CloudFront sends /// to the origin. /// </para> /// </summary> public ParametersInCacheKeyAndForwardedToOrigin ParametersInCacheKeyAndForwardedToOrigin { get { return this._parametersInCacheKeyAndForwardedToOrigin; } set { this._parametersInCacheKeyAndForwardedToOrigin = value; } } // Check to see if ParametersInCacheKeyAndForwardedToOrigin property is set internal bool IsSetParametersInCacheKeyAndForwardedToOrigin() { return this._parametersInCacheKeyAndForwardedToOrigin != null; } } }
207
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An object that determines whether any cookies in viewer requests (and if so, which /// cookies) are included in the cache key and in requests that CloudFront sends to the /// origin. /// </summary> public partial class CachePolicyCookiesConfig { private CachePolicyCookieBehavior _cookieBehavior; private CookieNames _cookies; /// <summary> /// Gets and sets the property CookieBehavior. /// <para> /// Determines whether any cookies in viewer requests are included in the cache key and /// in requests that CloudFront sends to the origin. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>none</code> – No cookies in viewer requests are included in the cache key or /// in requests that CloudFront sends to the origin. Even when this field is set to <code>none</code>, /// any cookies that are listed in an <code>OriginRequestPolicy</code> <i>are</i> included /// in origin requests. /// </para> /// </li> <li> /// <para> /// <code>whitelist</code> – Only the cookies in viewer requests that are listed in the /// <code>CookieNames</code> type are included in the cache key and in requests that CloudFront /// sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>allExcept</code> – All cookies in viewer requests are included in the cache /// key and in requests that CloudFront sends to the origin, <i> <b>except</b> </i> for /// those that are listed in the <code>CookieNames</code> type, which are not included. /// </para> /// </li> <li> /// <para> /// <code>all</code> – All cookies in viewer requests are included in the cache key and /// in requests that CloudFront sends to the origin. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public CachePolicyCookieBehavior CookieBehavior { get { return this._cookieBehavior; } set { this._cookieBehavior = value; } } // Check to see if CookieBehavior property is set internal bool IsSetCookieBehavior() { return this._cookieBehavior != null; } /// <summary> /// Gets and sets the property Cookies. /// </summary> public CookieNames Cookies { get { return this._cookies; } set { this._cookies = value; } } // Check to see if Cookies property is set internal bool IsSetCookies() { return this._cookies != null; } } }
102
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An object that determines whether any HTTP headers (and if so, which headers) are /// included in the cache key and in requests that CloudFront sends to the origin. /// </summary> public partial class CachePolicyHeadersConfig { private CachePolicyHeaderBehavior _headerBehavior; private Headers _headers; /// <summary> /// Gets and sets the property HeaderBehavior. /// <para> /// Determines whether any HTTP headers are included in the cache key and in requests /// that CloudFront sends to the origin. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>none</code> – No HTTP headers are included in the cache key or in requests /// that CloudFront sends to the origin. Even when this field is set to <code>none</code>, /// any headers that are listed in an <code>OriginRequestPolicy</code> <i>are</i> included /// in origin requests. /// </para> /// </li> <li> /// <para> /// <code>whitelist</code> – Only the HTTP headers that are listed in the <code>Headers</code> /// type are included in the cache key and in requests that CloudFront sends to the origin. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public CachePolicyHeaderBehavior HeaderBehavior { get { return this._headerBehavior; } set { this._headerBehavior = value; } } // Check to see if HeaderBehavior property is set internal bool IsSetHeaderBehavior() { return this._headerBehavior != null; } /// <summary> /// Gets and sets the property Headers. /// </summary> public Headers Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null; } } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete the cache policy because it is attached to one or more cache behaviors. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CachePolicyInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new CachePolicyInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CachePolicyInUseException(string message) : base(message) {} /// <summary> /// Construct instance of CachePolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CachePolicyInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CachePolicyInUseException /// </summary> /// <param name="innerException"></param> public CachePolicyInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CachePolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CachePolicyInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CachePolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CachePolicyInUseException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CachePolicyInUseException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CachePolicyInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of cache policies. /// </summary> public partial class CachePolicyList { private List<CachePolicySummary> _items = new List<CachePolicySummary>(); private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// Contains the cache policies in the list. /// </para> /// </summary> public List<CachePolicySummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of cache policies requested. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more items in the list than are in this response, this element is present. /// It contains the value that you should use in the <code>Marker</code> field of a subsequent /// request to continue listing cache policies where you left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The total number of cache policies returned in the response. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
118