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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ClientTokenConflictException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ClientTokenConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ClientTokenConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ClientTokenConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ClientTokenConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ClientTokenConflictException /// </summary> /// <param name="innerException"></param> public ClientTokenConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ClientTokenConflictException /// </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 ClientTokenConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ClientTokenConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ClientTokenConflictException(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 ClientTokenConflictException 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 ClientTokenConflictException(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 } }
130
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource is currently being modified by another operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentModificationException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ConcurrentModificationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentModificationException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentModificationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="innerException"></param> public ConcurrentModificationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </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 ConcurrentModificationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentModificationException(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 ConcurrentModificationException 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 ConcurrentModificationException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Another resource operation is currently being performed on this resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentOperationException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ConcurrentOperationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentOperationException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentOperationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentOperationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentOperationException /// </summary> /// <param name="innerException"></param> public ConcurrentOperationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentOperationException /// </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 ConcurrentOperationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentOperationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentOperationException(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 ConcurrentOperationException 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 ConcurrentOperationException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the CreateResource operation. /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> public partial class CreateResourceRequest : AmazonCloudControlApiRequest { private string _clientToken; private string _desiredState; private string _roleArn; private string _typeName; private string _typeVersionId; /// <summary> /// Gets and sets the property ClientToken. /// <para> /// A unique identifier to ensure the idempotency of the resource request. As a best practice, /// specify this token to ensure idempotency, so that Amazon Web Services Cloud Control /// API can accurately distinguish between request retries and new resource requests. /// You might retry a resource request to ensure that it was successfully received. /// </para> /// /// <para> /// A client token is valid for 36 hours once used. After that, a resource request with /// the same client token is treated as a new request. /// </para> /// /// <para> /// If you do not specify a client token, one is generated for inclusion in the request. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency">Ensuring /// resource operation requests are unique</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property DesiredState. /// <para> /// Structured data format representing the desired state of the resource, consisting /// of that resource's properties and their desired values. /// </para> /// <note> /// <para> /// Cloud Control API currently supports JSON as a structured data format. /// </para> /// </note> <pre><code> &lt;p&gt;Specify the desired state as one of the following:&lt;/p&gt; /// &lt;ul&gt; &lt;li&gt; &lt;p&gt;A JSON blob&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;A /// local path containing the desired state in JSON data format&lt;/p&gt; &lt;/li&gt; /// &lt;/ul&gt; &lt;p&gt;For more information, see &lt;a href=&quot;https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html#resource-operations-create-desiredstate&quot;&gt;Composing /// the desired state of the resource&lt;/a&gt; in the &lt;i&gt;Amazon Web Services Cloud /// Control API User Guide&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;For more information about the /// properties of a specific resource, refer to the related topic for the resource in /// the &lt;a href=&quot;https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html&quot;&gt;Resource /// and property types reference&lt;/a&gt; in the &lt;i&gt;CloudFormation Users Guide&lt;/i&gt;.&lt;/p&gt; /// </code></pre> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=65536)] public string DesiredState { get { return this._desiredState; } set { this._desiredState = value; } } // Check to see if DesiredState property is set internal bool IsSetDesiredState() { return this._desiredState != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for /// Cloud Control API to use when performing this resource operation. The role specified /// must have the permissions required for this operation. The necessary permissions for /// each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> /// </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource /// type definition schema</a>. /// </para> /// /// <para> /// If you do not specify a role, Cloud Control API uses a temporary session created using /// your Amazon Web Services user credentials. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying /// credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Required=true, Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeVersionId. /// <para> /// For private resource types, the type version to use in this resource operation. If /// you do not specify a resource version, CloudFormation uses the default version. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string TypeVersionId { get { return this._typeVersionId; } set { this._typeVersionId = value; } } // Check to see if TypeVersionId property is set internal bool IsSetTypeVersionId() { return this._typeVersionId != null; } } }
197
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the CreateResource operation. /// </summary> public partial class CreateResourceResponse : AmazonWebServiceResponse { private ProgressEvent _progressEvent; /// <summary> /// Gets and sets the property ProgressEvent. /// <para> /// Represents the current status of the resource creation request. /// </para> /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>CreateResource</code>. /// </para> /// </summary> public ProgressEvent ProgressEvent { get { return this._progressEvent; } set { this._progressEvent = value; } } // Check to see if ProgressEvent property is set internal bool IsSetProgressEvent() { return this._progressEvent != null; } } }
64
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the DeleteResource operation. /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> public partial class DeleteResourceRequest : AmazonCloudControlApiRequest { private string _clientToken; private string _identifier; private string _roleArn; private string _typeName; private string _typeVersionId; /// <summary> /// Gets and sets the property ClientToken. /// <para> /// A unique identifier to ensure the idempotency of the resource request. As a best practice, /// specify this token to ensure idempotency, so that Amazon Web Services Cloud Control /// API can accurately distinguish between request retries and new resource requests. /// You might retry a resource request to ensure that it was successfully received. /// </para> /// /// <para> /// A client token is valid for 36 hours once used. After that, a resource request with /// the same client token is treated as a new request. /// </para> /// /// <para> /// If you do not specify a client token, one is generated for inclusion in the request. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency">Ensuring /// resource operation requests are unique</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property Identifier. /// <para> /// The identifier for the resource. /// </para> /// /// <para> /// You can specify the primary identifier, or any secondary identifier defined for the /// resource type in its resource schema. You can only specify one identifier. Primary /// identifiers can be specified as a string or JSON; secondary identifiers must be specified /// as JSON. /// </para> /// /// <para> /// For compound primary identifiers (that is, one that consists of multiple resource /// properties strung together), to specify the primary identifier as a string, list the /// property values <i>in the order they are specified</i> in the primary identifier definition, /// separated by <code>|</code>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html">Identifying /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for /// Cloud Control API to use when performing this resource operation. The role specified /// must have the permissions required for this operation. The necessary permissions for /// each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> /// </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource /// type definition schema</a>. /// </para> /// /// <para> /// If you do not specify a role, Cloud Control API uses a temporary session created using /// your Amazon Web Services user credentials. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying /// credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Required=true, Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeVersionId. /// <para> /// For private resource types, the type version to use in this resource operation. If /// you do not specify a resource version, CloudFormation uses the default version. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string TypeVersionId { get { return this._typeVersionId; } set { this._typeVersionId = value; } } // Check to see if TypeVersionId property is set internal bool IsSetTypeVersionId() { return this._typeVersionId != null; } } }
201
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the DeleteResource operation. /// </summary> public partial class DeleteResourceResponse : AmazonWebServiceResponse { private ProgressEvent _progressEvent; /// <summary> /// Gets and sets the property ProgressEvent. /// <para> /// Represents the current status of the resource deletion request. /// </para> /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> public ProgressEvent ProgressEvent { get { return this._progressEvent; } set { this._progressEvent = value; } } // Check to see if ProgressEvent property is set internal bool IsSetProgressEvent() { return this._progressEvent != null; } } }
64
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class GeneralServiceException : AmazonCloudControlApiException { /// <summary> /// Constructs a new GeneralServiceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public GeneralServiceException(string message) : base(message) {} /// <summary> /// Construct instance of GeneralServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public GeneralServiceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of GeneralServiceException /// </summary> /// <param name="innerException"></param> public GeneralServiceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of GeneralServiceException /// </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 GeneralServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of GeneralServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public GeneralServiceException(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 GeneralServiceException 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 GeneralServiceException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the GetResource operation. /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> public partial class GetResourceRequest : AmazonCloudControlApiRequest { private string _identifier; private string _roleArn; private string _typeName; private string _typeVersionId; /// <summary> /// Gets and sets the property Identifier. /// <para> /// The identifier for the resource. /// </para> /// /// <para> /// You can specify the primary identifier, or any secondary identifier defined for the /// resource type in its resource schema. You can only specify one identifier. Primary /// identifiers can be specified as a string or JSON; secondary identifiers must be specified /// as JSON. /// </para> /// /// <para> /// For compound primary identifiers (that is, one that consists of multiple resource /// properties strung together), to specify the primary identifier as a string, list the /// property values <i>in the order they are specified</i> in the primary identifier definition, /// separated by <code>|</code>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html">Identifying /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for /// Cloud Control API to use when performing this resource operation. The role specified /// must have the permissions required for this operation. The necessary permissions for /// each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> /// </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource /// type definition schema</a>. /// </para> /// /// <para> /// If you do not specify a role, Cloud Control API uses a temporary session created using /// your Amazon Web Services user credentials. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying /// credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Required=true, Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeVersionId. /// <para> /// For private resource types, the type version to use in this resource operation. If /// you do not specify a resource version, CloudFormation uses the default version. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string TypeVersionId { get { return this._typeVersionId; } set { this._typeVersionId = value; } } // Check to see if TypeVersionId property is set internal bool IsSetTypeVersionId() { return this._typeVersionId != null; } } }
163
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the GetResourceRequestStatus operation. /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> public partial class GetResourceRequestStatusRequest : AmazonCloudControlApiRequest { private string _requestToken; /// <summary> /// Gets and sets the property RequestToken. /// <para> /// A unique token used to track the progress of the resource operation request. /// </para> /// /// <para> /// Request tokens are included in the <code>ProgressEvent</code> type returned by a resource /// operation request. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string RequestToken { get { return this._requestToken; } set { this._requestToken = value; } } // Check to see if RequestToken property is set internal bool IsSetRequestToken() { return this._requestToken != null; } } }
67
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the GetResourceRequestStatus operation. /// </summary> public partial class GetResourceRequestStatusResponse : AmazonWebServiceResponse { private ProgressEvent _progressEvent; /// <summary> /// Gets and sets the property ProgressEvent. /// <para> /// Represents the current status of the resource operation request. /// </para> /// </summary> public ProgressEvent ProgressEvent { get { return this._progressEvent; } set { this._progressEvent = value; } } // Check to see if ProgressEvent property is set internal bool IsSetProgressEvent() { return this._progressEvent != null; } } }
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. */ /* * Do not modify this file. This file is generated from the cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the GetResource operation. /// </summary> public partial class GetResourceResponse : AmazonWebServiceResponse { private ResourceDescription _resourceDescription; private string _typeName; /// <summary> /// Gets and sets the property ResourceDescription. /// </summary> public ResourceDescription ResourceDescription { get { return this._resourceDescription; } set { this._resourceDescription = value; } } // Check to see if ResourceDescription property is set internal bool IsSetResourceDescription() { return this._resourceDescription != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class HandlerFailureException : AmazonCloudControlApiException { /// <summary> /// Constructs a new HandlerFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public HandlerFailureException(string message) : base(message) {} /// <summary> /// Construct instance of HandlerFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public HandlerFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of HandlerFailureException /// </summary> /// <param name="innerException"></param> public HandlerFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of HandlerFailureException /// </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 HandlerFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of HandlerFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public HandlerFailureException(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 HandlerFailureException 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 HandlerFailureException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class HandlerInternalFailureException : AmazonCloudControlApiException { /// <summary> /// Constructs a new HandlerInternalFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public HandlerInternalFailureException(string message) : base(message) {} /// <summary> /// Construct instance of HandlerInternalFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public HandlerInternalFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of HandlerInternalFailureException /// </summary> /// <param name="innerException"></param> public HandlerInternalFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of HandlerInternalFailureException /// </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 HandlerInternalFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of HandlerInternalFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public HandlerInternalFailureException(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 HandlerInternalFailureException 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 HandlerInternalFailureException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that the credentials provided by the user are invalid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidCredentialsException : AmazonCloudControlApiException { /// <summary> /// Constructs a new InvalidCredentialsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidCredentialsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidCredentialsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidCredentialsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidCredentialsException /// </summary> /// <param name="innerException"></param> public InvalidCredentialsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidCredentialsException /// </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 InvalidCredentialsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidCredentialsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidCredentialsException(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 InvalidCredentialsException 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 InvalidCredentialsException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidRequestException : AmazonCloudControlApiException { /// <summary> /// Constructs a new InvalidRequestException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidRequestException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidRequestException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="innerException"></param> public InvalidRequestException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </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 InvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidRequestException(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 InvalidRequestException 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 InvalidRequestException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the ListResourceRequests operation. /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> public partial class ListResourceRequestsRequest : AmazonCloudControlApiRequest { private int? _maxResults; private string _nextToken; private ResourceRequestStatusFilter _resourceRequestStatusFilter; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to be returned with a single call. If the number of /// available results exceeds this maximum, the response includes a <code>NextToken</code> /// value that you can assign to the <code>NextToken</code> request parameter to get the /// next set of results. /// </para> /// /// <para> /// The default is <code>20</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the previous paginated request didn't return all of the remaining results, the /// response object's <code>NextToken</code> parameter value is set to a token. To retrieve /// the next set of results, call this action again and assign that token to the request /// object's <code>NextToken</code> parameter. If there are no remaining results, the /// previous response object's <code>NextToken</code> parameter is set to <code>null</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceRequestStatusFilter. /// <para> /// The filter criteria to apply to the requests returned. /// </para> /// </summary> public ResourceRequestStatusFilter ResourceRequestStatusFilter { get { return this._resourceRequestStatusFilter; } set { this._resourceRequestStatusFilter = value; } } // Check to see if ResourceRequestStatusFilter property is set internal bool IsSetResourceRequestStatusFilter() { return this._resourceRequestStatusFilter != null; } } }
118
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the ListResourceRequests operation. /// </summary> public partial class ListResourceRequestsResponse : AmazonWebServiceResponse { private string _nextToken; private List<ProgressEvent> _resourceRequestStatusSummaries = new List<ProgressEvent>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the request doesn't return all of the remaining results, <code>NextToken</code> /// is set to a token. To retrieve the next set of results, call <code>ListResources</code> /// again and assign that token to the request object's <code>NextToken</code> parameter. /// If the request returns all results, <code>NextToken</code> is set to null. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceRequestStatusSummaries. /// <para> /// The requests that match the specified filter criteria. /// </para> /// </summary> public List<ProgressEvent> ResourceRequestStatusSummaries { get { return this._resourceRequestStatusSummaries; } set { this._resourceRequestStatusSummaries = value; } } // Check to see if ResourceRequestStatusSummaries property is set internal bool IsSetResourceRequestStatusSummaries() { return this._resourceRequestStatusSummaries != null && this._resourceRequestStatusSummaries.Count > 0; } } }
80
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the ListResources operation. /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> public partial class ListResourcesRequest : AmazonCloudControlApiRequest { private int? _maxResults; private string _nextToken; private string _resourceModel; private string _roleArn; private string _typeName; private string _typeVersionId; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Reserved. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the previous paginated request didn't return all of the remaining results, the /// response object's <code>NextToken</code> parameter value is set to a token. To retrieve /// the next set of results, call this action again and assign that token to the request /// object's <code>NextToken</code> parameter. If there are no remaining results, the /// previous response object's <code>NextToken</code> parameter is set to <code>null</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceModel. /// <para> /// The resource model to use to select the resources to return. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=65536)] public string ResourceModel { get { return this._resourceModel; } set { this._resourceModel = value; } } // Check to see if ResourceModel property is set internal bool IsSetResourceModel() { return this._resourceModel != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for /// Cloud Control API to use when performing this resource operation. The role specified /// must have the permissions required for this operation. The necessary permissions for /// each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> /// </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource /// type definition schema</a>. /// </para> /// /// <para> /// If you do not specify a role, Cloud Control API uses a temporary session created using /// your Amazon Web Services user credentials. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying /// credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Required=true, Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeVersionId. /// <para> /// For private resource types, the type version to use in this resource operation. If /// you do not specify a resource version, CloudFormation uses the default version. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string TypeVersionId { get { return this._typeVersionId; } set { this._typeVersionId = value; } } // Check to see if TypeVersionId property is set internal bool IsSetTypeVersionId() { return this._typeVersionId != null; } } }
187
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the ListResources operation. /// </summary> public partial class ListResourcesResponse : AmazonWebServiceResponse { private string _nextToken; private List<ResourceDescription> _resourceDescriptions = new List<ResourceDescription>(); private string _typeName; /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the request doesn't return all of the remaining results, <code>NextToken</code> /// is set to a token. To retrieve the next set of results, call <code>ListResources</code> /// again and assign that token to the request object's <code>NextToken</code> parameter. /// If the request returns all results, <code>NextToken</code> is set to null. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceDescriptions. /// <para> /// Information about the specified resources, including primary identifier and resource /// model. /// </para> /// </summary> public List<ResourceDescription> ResourceDescriptions { get { return this._resourceDescriptions; } set { this._resourceDescriptions = value; } } // Check to see if ResourceDescriptions property is set internal bool IsSetResourceDescriptions() { return this._resourceDescriptions != null && this._resourceDescriptions.Count > 0; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NetworkFailureException : AmazonCloudControlApiException { /// <summary> /// Constructs a new NetworkFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NetworkFailureException(string message) : base(message) {} /// <summary> /// Construct instance of NetworkFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NetworkFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NetworkFailureException /// </summary> /// <param name="innerException"></param> public NetworkFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NetworkFailureException /// </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 NetworkFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NetworkFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NetworkFailureException(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 NetworkFailureException 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 NetworkFailureException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NotStabilizedException : AmazonCloudControlApiException { /// <summary> /// Constructs a new NotStabilizedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotStabilizedException(string message) : base(message) {} /// <summary> /// Construct instance of NotStabilizedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotStabilizedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotStabilizedException /// </summary> /// <param name="innerException"></param> public NotStabilizedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotStabilizedException /// </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 NotStabilizedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotStabilizedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotStabilizedException(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 NotStabilizedException 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 NotStabilizedException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NotUpdatableException : AmazonCloudControlApiException { /// <summary> /// Constructs a new NotUpdatableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotUpdatableException(string message) : base(message) {} /// <summary> /// Construct instance of NotUpdatableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotUpdatableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotUpdatableException /// </summary> /// <param name="innerException"></param> public NotUpdatableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotUpdatableException /// </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 NotUpdatableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotUpdatableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotUpdatableException(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 NotUpdatableException 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 NotUpdatableException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class PrivateTypeException : AmazonCloudControlApiException { /// <summary> /// Constructs a new PrivateTypeException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public PrivateTypeException(string message) : base(message) {} /// <summary> /// Construct instance of PrivateTypeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public PrivateTypeException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of PrivateTypeException /// </summary> /// <param name="innerException"></param> public PrivateTypeException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of PrivateTypeException /// </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 PrivateTypeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of PrivateTypeException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PrivateTypeException(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 PrivateTypeException 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 PrivateTypeException(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 } }
126
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Represents the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html">Managing /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// </summary> public partial class ProgressEvent { private HandlerErrorCode _errorCode; private DateTime? _eventTime; private string _identifier; private Operation _operation; private OperationStatus _operationStatus; private string _requestToken; private string _resourceModel; private DateTime? _retryAfter; private string _statusMessage; private string _typeName; /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// For requests with a status of <code>FAILED</code>, the associated error code. /// </para> /// /// <para> /// For error code definitions, see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-test-contract-errors.html">Handler /// error codes</a> in the <i>CloudFormation Command Line Interface User Guide for Extension /// Development</i>. /// </para> /// </summary> public HandlerErrorCode ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property EventTime. /// <para> /// When the resource operation request was initiated. /// </para> /// </summary> public DateTime EventTime { get { return this._eventTime.GetValueOrDefault(); } set { this._eventTime = value; } } // Check to see if EventTime property is set internal bool IsSetEventTime() { return this._eventTime.HasValue; } /// <summary> /// Gets and sets the property Identifier. /// <para> /// The primary identifier for the resource. /// </para> /// <note> /// <para> /// In some cases, the resource identifier may be available before the resource operation /// has reached a status of <code>SUCCESS</code>. /// </para> /// </note> /// </summary> [AWSProperty(Min=1, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property Operation. /// <para> /// The resource operation type. /// </para> /// </summary> public Operation Operation { get { return this._operation; } set { this._operation = value; } } // Check to see if Operation property is set internal bool IsSetOperation() { return this._operation != null; } /// <summary> /// Gets and sets the property OperationStatus. /// <para> /// The current status of the resource operation request. /// </para> /// <ul> <li> /// <para> /// <code>PENDING</code>: The resource operation hasn't yet started. /// </para> /// </li> <li> /// <para> /// <code>IN_PROGRESS</code>: The resource operation is currently in progress. /// </para> /// </li> <li> /// <para> /// <code>SUCCESS</code>: The resource operation has successfully completed. /// </para> /// </li> <li> /// <para> /// <code>FAILED</code>: The resource operation has failed. Refer to the error code and /// status message for more information. /// </para> /// </li> <li> /// <para> /// <code>CANCEL_IN_PROGRESS</code>: The resource operation is in the process of being /// canceled. /// </para> /// </li> <li> /// <para> /// <code>CANCEL_COMPLETE</code>: The resource operation has been canceled. /// </para> /// </li> </ul> /// </summary> public OperationStatus OperationStatus { get { return this._operationStatus; } set { this._operationStatus = value; } } // Check to see if OperationStatus property is set internal bool IsSetOperationStatus() { return this._operationStatus != null; } /// <summary> /// Gets and sets the property RequestToken. /// <para> /// The unique token representing this resource operation request. /// </para> /// /// <para> /// Use the <code>RequestToken</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// to return the current status of a resource operation request. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string RequestToken { get { return this._requestToken; } set { this._requestToken = value; } } // Check to see if RequestToken property is set internal bool IsSetRequestToken() { return this._requestToken != null; } /// <summary> /// Gets and sets the property ResourceModel. /// <para> /// A JSON string containing the resource model, consisting of each resource property /// and its current value. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=65536)] public string ResourceModel { get { return this._resourceModel; } set { this._resourceModel = value; } } // Check to see if ResourceModel property is set internal bool IsSetResourceModel() { return this._resourceModel != null; } /// <summary> /// Gets and sets the property RetryAfter. /// <para> /// When to next request the status of this resource operation request. /// </para> /// </summary> public DateTime RetryAfter { get { return this._retryAfter.GetValueOrDefault(); } set { this._retryAfter = value; } } // Check to see if RetryAfter property is set internal bool IsSetRetryAfter() { return this._retryAfter.HasValue; } /// <summary> /// Gets and sets the property StatusMessage. /// <para> /// Any message explaining the current status. /// </para> /// </summary> [AWSProperty(Min=0, Max=1024)] public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type used in the operation. /// </para> /// </summary> [AWSProperty(Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } } }
281
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// A resource operation with the specified request token can't be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RequestTokenNotFoundException : AmazonCloudControlApiException { /// <summary> /// Constructs a new RequestTokenNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RequestTokenNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of RequestTokenNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RequestTokenNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RequestTokenNotFoundException /// </summary> /// <param name="innerException"></param> public RequestTokenNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RequestTokenNotFoundException /// </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 RequestTokenNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RequestTokenNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestTokenNotFoundException(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 RequestTokenNotFoundException 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 RequestTokenNotFoundException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceConflictException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ResourceConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceConflictException /// </summary> /// <param name="innerException"></param> public ResourceConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceConflictException /// </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 ResourceConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceConflictException(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 ResourceConflictException 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 ResourceConflictException(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 } }
126
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Represents information about a provisioned resource. /// </summary> public partial class ResourceDescription { private string _identifier; private string _properties; /// <summary> /// Gets and sets the property Identifier. /// <para> /// The primary identifier for the resource. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html">Identifying /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property Properties. /// <para> /// A list of the resource properties and their current values. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=65536)] public string Properties { get { return this._properties; } set { this._properties = value; } } // Check to see if Properties property is set internal bool IsSetProperties() { return this._properties != null; } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// A resource with the specified identifier can't be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </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 ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(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 ResourceNotFoundException 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 ResourceNotFoundException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The filter criteria to use in determining the requests returned. /// </summary> public partial class ResourceRequestStatusFilter { private List<string> _operations = new List<string>(); private List<string> _operationStatuses = new List<string>(); /// <summary> /// Gets and sets the property Operations. /// <para> /// The operation types to include in the filter. /// </para> /// </summary> public List<string> Operations { get { return this._operations; } set { this._operations = value; } } // Check to see if Operations property is set internal bool IsSetOperations() { return this._operations != null && this._operations.Count > 0; } /// <summary> /// Gets and sets the property OperationStatuses. /// <para> /// The operation statuses to include in the filter. /// </para> /// <ul> <li> /// <para> /// <code>PENDING</code>: The operation has been requested, but not yet initiated. /// </para> /// </li> <li> /// <para> /// <code>IN_PROGRESS</code>: The operation is in progress. /// </para> /// </li> <li> /// <para> /// <code>SUCCESS</code>: The operation completed. /// </para> /// </li> <li> /// <para> /// <code>FAILED</code>: The operation failed. /// </para> /// </li> <li> /// <para> /// <code>CANCEL_IN_PROGRESS</code>: The operation is in the process of being canceled. /// </para> /// </li> <li> /// <para> /// <code>CANCEL_COMPLETE</code>: The operation has been canceled. /// </para> /// </li> </ul> /// </summary> public List<string> OperationStatuses { get { return this._operationStatuses; } set { this._operationStatuses = value; } } // Check to see if OperationStatuses property is set internal bool IsSetOperationStatuses() { return this._operationStatuses != null && this._operationStatuses.Count > 0; } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceInternalErrorException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ServiceInternalErrorException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceInternalErrorException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceInternalErrorException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceInternalErrorException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceInternalErrorException /// </summary> /// <param name="innerException"></param> public ServiceInternalErrorException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceInternalErrorException /// </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 ServiceInternalErrorException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceInternalErrorException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceInternalErrorException(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 ServiceInternalErrorException 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 ServiceInternalErrorException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceLimitExceededException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ServiceLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="innerException"></param> public ServiceLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </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 ServiceLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceLimitExceededException(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 ServiceLimitExceededException 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 ServiceLimitExceededException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The request was denied due to request throttling. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonCloudControlApiException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(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 ThrottlingException 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 ThrottlingException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The specified extension doesn't exist in the CloudFormation registry. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TypeNotFoundException : AmazonCloudControlApiException { /// <summary> /// Constructs a new TypeNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public TypeNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of TypeNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public TypeNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of TypeNotFoundException /// </summary> /// <param name="innerException"></param> public TypeNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of TypeNotFoundException /// </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 TypeNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of TypeNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TypeNotFoundException(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 TypeNotFoundException 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 TypeNotFoundException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// The specified resource doesn't support this resource operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnsupportedActionException : AmazonCloudControlApiException { /// <summary> /// Constructs a new UnsupportedActionException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnsupportedActionException(string message) : base(message) {} /// <summary> /// Construct instance of UnsupportedActionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnsupportedActionException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnsupportedActionException /// </summary> /// <param name="innerException"></param> public UnsupportedActionException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnsupportedActionException /// </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 UnsupportedActionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnsupportedActionException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnsupportedActionException(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 UnsupportedActionException 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 UnsupportedActionException(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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Container for the parameters to the UpdateResource operation. /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> public partial class UpdateResourceRequest : AmazonCloudControlApiRequest { private string _clientToken; private string _identifier; private string _patchDocument; private string _roleArn; private string _typeName; private string _typeVersionId; /// <summary> /// Gets and sets the property ClientToken. /// <para> /// A unique identifier to ensure the idempotency of the resource request. As a best practice, /// specify this token to ensure idempotency, so that Amazon Web Services Cloud Control /// API can accurately distinguish between request retries and new resource requests. /// You might retry a resource request to ensure that it was successfully received. /// </para> /// /// <para> /// A client token is valid for 36 hours once used. After that, a resource request with /// the same client token is treated as a new request. /// </para> /// /// <para> /// If you do not specify a client token, one is generated for inclusion in the request. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency">Ensuring /// resource operation requests are unique</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property Identifier. /// <para> /// The identifier for the resource. /// </para> /// /// <para> /// You can specify the primary identifier, or any secondary identifier defined for the /// resource type in its resource schema. You can only specify one identifier. Primary /// identifiers can be specified as a string or JSON; secondary identifiers must be specified /// as JSON. /// </para> /// /// <para> /// For compound primary identifiers (that is, one that consists of multiple resource /// properties strung together), to specify the primary identifier as a string, list the /// property values <i>in the order they are specified</i> in the primary identifier definition, /// separated by <code>|</code>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html">Identifying /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// <summary> /// Gets and sets the property PatchDocument. /// <para> /// A JavaScript Object Notation (JSON) document listing the patch operations that represent /// the updates to apply to the current resource properties. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html#resource-operations-update-patch">Composing /// the patch document</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Min=1, Max=65536)] public string PatchDocument { get { return this._patchDocument; } set { this._patchDocument = value; } } // Check to see if PatchDocument property is set internal bool IsSetPatchDocument() { return this._patchDocument != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for /// Cloud Control API to use when performing this resource operation. The role specified /// must have the permissions required for this operation. The necessary permissions for /// each event handler are defined in the <code> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers">handlers</a> /// </code> section of the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html">resource /// type definition schema</a>. /// </para> /// /// <para> /// If you do not specify a role, Cloud Control API uses a temporary session created using /// your Amazon Web Services user credentials. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions">Specifying /// credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the resource type. /// </para> /// </summary> [AWSProperty(Required=true, Min=10, Max=196)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeVersionId. /// <para> /// For private resource types, the type version to use in this resource operation. If /// you do not specify a resource version, CloudFormation uses the default version. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string TypeVersionId { get { return this._typeVersionId; } set { this._typeVersionId = value; } } // Check to see if TypeVersionId property is set internal bool IsSetTypeVersionId() { return this._typeVersionId != null; } } }
239
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// This is the response object from the UpdateResource operation. /// </summary> public partial class UpdateResourceResponse : AmazonWebServiceResponse { private ProgressEvent _progressEvent; /// <summary> /// Gets and sets the property ProgressEvent. /// <para> /// Represents the current status of the resource update request. /// </para> /// /// <para> /// Use the <code>RequestToken</code> of the <code>ProgressEvent</code> with <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// to return the current status of a resource operation request. /// </para> /// </summary> public ProgressEvent ProgressEvent { get { return this._progressEvent; } set { this._progressEvent = value; } } // Check to see if ProgressEvent property is set internal bool IsSetProgressEvent() { return this._progressEvent != null; } } }
62
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AlreadyExistsException Object /// </summary> public class AlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<AlreadyExistsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AlreadyExistsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AlreadyExistsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AlreadyExistsException unmarshalledObject = new AlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AlreadyExistsExceptionUnmarshaller _instance = new AlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// CancelResourceRequest Request Marshaller /// </summary> public class CancelResourceRequestRequestMarshaller : IMarshaller<IRequest, CancelResourceRequestRequest> , 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((CancelResourceRequestRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CancelResourceRequestRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.CancelResourceRequest"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetRequestToken()) { context.Writer.WritePropertyName("RequestToken"); context.Writer.Write(publicRequest.RequestToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CancelResourceRequestRequestMarshaller _instance = new CancelResourceRequestRequestMarshaller(); internal static CancelResourceRequestRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelResourceRequestRequestMarshaller 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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CancelResourceRequest operation /// </summary> public class CancelResourceRequestResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CancelResourceRequestResponse response = new CancelResourceRequestResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("RequestTokenNotFoundException")) { return RequestTokenNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CancelResourceRequestResponseUnmarshaller _instance = new CancelResourceRequestResponseUnmarshaller(); internal static CancelResourceRequestResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelResourceRequestResponseUnmarshaller Instance { get { return _instance; } } } }
114
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ClientTokenConflictException Object /// </summary> public class ClientTokenConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ClientTokenConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ClientTokenConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ClientTokenConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ClientTokenConflictException unmarshalledObject = new ClientTokenConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ClientTokenConflictExceptionUnmarshaller _instance = new ClientTokenConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ClientTokenConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcurrentModificationException Object /// </summary> public class ConcurrentModificationExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentModificationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConcurrentModificationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConcurrentModificationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConcurrentModificationException unmarshalledObject = new ConcurrentModificationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConcurrentModificationExceptionUnmarshaller _instance = new ConcurrentModificationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcurrentModificationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcurrentOperationException Object /// </summary> public class ConcurrentOperationExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentOperationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConcurrentOperationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConcurrentOperationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConcurrentOperationException unmarshalledObject = new ConcurrentOperationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConcurrentOperationExceptionUnmarshaller _instance = new ConcurrentOperationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcurrentOperationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// CreateResource Request Marshaller /// </summary> public class CreateResourceRequestMarshaller : IMarshaller<IRequest, CreateResourceRequest> , 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((CreateResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.CreateResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetDesiredState()) { context.Writer.WritePropertyName("DesiredState"); context.Writer.Write(publicRequest.DesiredState); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("RoleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetTypeName()) { context.Writer.WritePropertyName("TypeName"); context.Writer.Write(publicRequest.TypeName); } if(publicRequest.IsSetTypeVersionId()) { context.Writer.WritePropertyName("TypeVersionId"); context.Writer.Write(publicRequest.TypeVersionId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateResourceRequestMarshaller _instance = new CreateResourceRequestMarshaller(); internal static CreateResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateResourceRequestMarshaller Instance { get { return _instance; } } } }
132
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateResource operation /// </summary> public class CreateResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateResourceResponse response = new CreateResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExistsException")) { return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ClientTokenConflictException")) { return ClientTokenConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentOperationException")) { return ConcurrentOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("GeneralServiceException")) { return GeneralServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerFailureException")) { return HandlerFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerInternalFailureException")) { return HandlerInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCredentialsException")) { return InvalidCredentialsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NetworkFailureException")) { return NetworkFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotStabilizedException")) { return NotStabilizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotUpdatableException")) { return NotUpdatableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PrivateTypeException")) { return PrivateTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException")) { return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalErrorException")) { return ServiceInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedActionException")) { return UnsupportedActionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateResourceResponseUnmarshaller _instance = new CreateResourceResponseUnmarshaller(); internal static CreateResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateResourceResponseUnmarshaller Instance { get { return _instance; } } } }
182
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// DeleteResource Request Marshaller /// </summary> public class DeleteResourceRequestMarshaller : IMarshaller<IRequest, DeleteResourceRequest> , 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((DeleteResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.DeleteResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetIdentifier()) { context.Writer.WritePropertyName("Identifier"); context.Writer.Write(publicRequest.Identifier); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("RoleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetTypeName()) { context.Writer.WritePropertyName("TypeName"); context.Writer.Write(publicRequest.TypeName); } if(publicRequest.IsSetTypeVersionId()) { context.Writer.WritePropertyName("TypeVersionId"); context.Writer.Write(publicRequest.TypeVersionId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteResourceRequestMarshaller _instance = new DeleteResourceRequestMarshaller(); internal static DeleteResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteResourceRequestMarshaller Instance { get { return _instance; } } } }
132
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteResource operation /// </summary> public class DeleteResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteResourceResponse response = new DeleteResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExistsException")) { return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ClientTokenConflictException")) { return ClientTokenConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentOperationException")) { return ConcurrentOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("GeneralServiceException")) { return GeneralServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerFailureException")) { return HandlerFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerInternalFailureException")) { return HandlerInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCredentialsException")) { return InvalidCredentialsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NetworkFailureException")) { return NetworkFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotStabilizedException")) { return NotStabilizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotUpdatableException")) { return NotUpdatableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PrivateTypeException")) { return PrivateTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException")) { return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalErrorException")) { return ServiceInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedActionException")) { return UnsupportedActionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteResourceResponseUnmarshaller _instance = new DeleteResourceResponseUnmarshaller(); internal static DeleteResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteResourceResponseUnmarshaller Instance { get { return _instance; } } } }
182
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GeneralServiceException Object /// </summary> public class GeneralServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<GeneralServiceException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public GeneralServiceException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public GeneralServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); GeneralServiceException unmarshalledObject = new GeneralServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static GeneralServiceExceptionUnmarshaller _instance = new GeneralServiceExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static GeneralServiceExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// GetResource Request Marshaller /// </summary> public class GetResourceRequestMarshaller : IMarshaller<IRequest, GetResourceRequest> , 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((GetResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.GetResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetIdentifier()) { context.Writer.WritePropertyName("Identifier"); context.Writer.Write(publicRequest.Identifier); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("RoleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetTypeName()) { context.Writer.WritePropertyName("TypeName"); context.Writer.Write(publicRequest.TypeName); } if(publicRequest.IsSetTypeVersionId()) { context.Writer.WritePropertyName("TypeVersionId"); context.Writer.Write(publicRequest.TypeVersionId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static GetResourceRequestMarshaller _instance = new GetResourceRequestMarshaller(); internal static GetResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetResourceRequestMarshaller 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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// GetResourceRequestStatus Request Marshaller /// </summary> public class GetResourceRequestStatusRequestMarshaller : IMarshaller<IRequest, GetResourceRequestStatusRequest> , 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((GetResourceRequestStatusRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetResourceRequestStatusRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.GetResourceRequestStatus"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetRequestToken()) { context.Writer.WritePropertyName("RequestToken"); context.Writer.Write(publicRequest.RequestToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static GetResourceRequestStatusRequestMarshaller _instance = new GetResourceRequestStatusRequestMarshaller(); internal static GetResourceRequestStatusRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetResourceRequestStatusRequestMarshaller 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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetResourceRequestStatus operation /// </summary> public class GetResourceRequestStatusResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetResourceRequestStatusResponse response = new GetResourceRequestStatusResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("RequestTokenNotFoundException")) { return RequestTokenNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetResourceRequestStatusResponseUnmarshaller _instance = new GetResourceRequestStatusResponseUnmarshaller(); internal static GetResourceRequestStatusResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetResourceRequestStatusResponseUnmarshaller Instance { get { return _instance; } } } }
110
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetResource operation /// </summary> public class GetResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetResourceResponse response = new GetResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ResourceDescription", targetDepth)) { var unmarshaller = ResourceDescriptionUnmarshaller.Instance; response.ResourceDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TypeName = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExistsException")) { return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("GeneralServiceException")) { return GeneralServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerFailureException")) { return HandlerFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerInternalFailureException")) { return HandlerInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCredentialsException")) { return InvalidCredentialsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NetworkFailureException")) { return NetworkFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotStabilizedException")) { return NotStabilizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotUpdatableException")) { return NotUpdatableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PrivateTypeException")) { return PrivateTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException")) { return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalErrorException")) { return ServiceInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedActionException")) { return UnsupportedActionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetResourceResponseUnmarshaller _instance = new GetResourceResponseUnmarshaller(); internal static GetResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetResourceResponseUnmarshaller Instance { get { return _instance; } } } }
180
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HandlerFailureException Object /// </summary> public class HandlerFailureExceptionUnmarshaller : IErrorResponseUnmarshaller<HandlerFailureException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HandlerFailureException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public HandlerFailureException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); HandlerFailureException unmarshalledObject = new HandlerFailureException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static HandlerFailureExceptionUnmarshaller _instance = new HandlerFailureExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HandlerFailureExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for HandlerInternalFailureException Object /// </summary> public class HandlerInternalFailureExceptionUnmarshaller : IErrorResponseUnmarshaller<HandlerInternalFailureException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public HandlerInternalFailureException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public HandlerInternalFailureException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); HandlerInternalFailureException unmarshalledObject = new HandlerInternalFailureException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static HandlerInternalFailureExceptionUnmarshaller _instance = new HandlerInternalFailureExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static HandlerInternalFailureExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidCredentialsException Object /// </summary> public class InvalidCredentialsExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidCredentialsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidCredentialsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidCredentialsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidCredentialsException unmarshalledObject = new InvalidCredentialsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidCredentialsExceptionUnmarshaller _instance = new InvalidCredentialsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidCredentialsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidRequestException Object /// </summary> public class InvalidRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidRequestException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidRequestException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidRequestException unmarshalledObject = new InvalidRequestException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidRequestExceptionUnmarshaller _instance = new InvalidRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// ListResourceRequests Request Marshaller /// </summary> public class ListResourceRequestsRequestMarshaller : IMarshaller<IRequest, ListResourceRequestsRequest> , 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((ListResourceRequestsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListResourceRequestsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.ListResourceRequests"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetResourceRequestStatusFilter()) { context.Writer.WritePropertyName("ResourceRequestStatusFilter"); context.Writer.WriteObjectStart(); var marshaller = ResourceRequestStatusFilterMarshaller.Instance; marshaller.Marshall(publicRequest.ResourceRequestStatusFilter, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListResourceRequestsRequestMarshaller _instance = new ListResourceRequestsRequestMarshaller(); internal static ListResourceRequestsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListResourceRequestsRequestMarshaller Instance { get { return _instance; } } } }
120
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListResourceRequests operation /// </summary> public class ListResourceRequestsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListResourceRequestsResponse response = new ListResourceRequestsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceRequestStatusSummaries", targetDepth)) { var unmarshaller = new ListUnmarshaller<ProgressEvent, ProgressEventUnmarshaller>(ProgressEventUnmarshaller.Instance); response.ResourceRequestStatusSummaries = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListResourceRequestsResponseUnmarshaller _instance = new ListResourceRequestsResponseUnmarshaller(); internal static ListResourceRequestsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListResourceRequestsResponseUnmarshaller Instance { get { return _instance; } } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// ListResources Request Marshaller /// </summary> public class ListResourcesRequestMarshaller : IMarshaller<IRequest, ListResourcesRequest> , 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((ListResourcesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListResourcesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.ListResources"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetResourceModel()) { context.Writer.WritePropertyName("ResourceModel"); context.Writer.Write(publicRequest.ResourceModel); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("RoleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetTypeName()) { context.Writer.WritePropertyName("TypeName"); context.Writer.Write(publicRequest.TypeName); } if(publicRequest.IsSetTypeVersionId()) { context.Writer.WritePropertyName("TypeVersionId"); context.Writer.Write(publicRequest.TypeVersionId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListResourcesRequestMarshaller _instance = new ListResourcesRequestMarshaller(); internal static ListResourcesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListResourcesRequestMarshaller 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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListResources operation /// </summary> public class ListResourcesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListResourcesResponse response = new ListResourcesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceDescriptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<ResourceDescription, ResourceDescriptionUnmarshaller>(ResourceDescriptionUnmarshaller.Instance); response.ResourceDescriptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TypeName = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExistsException")) { return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("GeneralServiceException")) { return GeneralServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerFailureException")) { return HandlerFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerInternalFailureException")) { return HandlerInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCredentialsException")) { return InvalidCredentialsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NetworkFailureException")) { return NetworkFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotStabilizedException")) { return NotStabilizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotUpdatableException")) { return NotUpdatableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PrivateTypeException")) { return PrivateTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException")) { return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalErrorException")) { return ServiceInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedActionException")) { return UnsupportedActionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListResourcesResponseUnmarshaller _instance = new ListResourcesResponseUnmarshaller(); internal static ListResourcesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListResourcesResponseUnmarshaller Instance { get { return _instance; } } } }
186
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NetworkFailureException Object /// </summary> public class NetworkFailureExceptionUnmarshaller : IErrorResponseUnmarshaller<NetworkFailureException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NetworkFailureException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NetworkFailureException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NetworkFailureException unmarshalledObject = new NetworkFailureException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NetworkFailureExceptionUnmarshaller _instance = new NetworkFailureExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NetworkFailureExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotStabilizedException Object /// </summary> public class NotStabilizedExceptionUnmarshaller : IErrorResponseUnmarshaller<NotStabilizedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotStabilizedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NotStabilizedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NotStabilizedException unmarshalledObject = new NotStabilizedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NotStabilizedExceptionUnmarshaller _instance = new NotStabilizedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotStabilizedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotUpdatableException Object /// </summary> public class NotUpdatableExceptionUnmarshaller : IErrorResponseUnmarshaller<NotUpdatableException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotUpdatableException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NotUpdatableException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); NotUpdatableException unmarshalledObject = new NotUpdatableException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NotUpdatableExceptionUnmarshaller _instance = new NotUpdatableExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotUpdatableExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PrivateTypeException Object /// </summary> public class PrivateTypeExceptionUnmarshaller : IErrorResponseUnmarshaller<PrivateTypeException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PrivateTypeException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public PrivateTypeException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); PrivateTypeException unmarshalledObject = new PrivateTypeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static PrivateTypeExceptionUnmarshaller _instance = new PrivateTypeExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PrivateTypeExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ProgressEvent Object /// </summary> public class ProgressEventUnmarshaller : IUnmarshaller<ProgressEvent, XmlUnmarshallerContext>, IUnmarshaller<ProgressEvent, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ProgressEvent IUnmarshaller<ProgressEvent, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ProgressEvent Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ProgressEvent unmarshalledObject = new ProgressEvent(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EventTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EventTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Identifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Identifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Operation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Operation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OperationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OperationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequestToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequestToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceModel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceModel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RetryAfter", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RetryAfter = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypeName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ProgressEventUnmarshaller _instance = new ProgressEventUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ProgressEventUnmarshaller Instance { get { return _instance; } } } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RequestTokenNotFoundException Object /// </summary> public class RequestTokenNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<RequestTokenNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RequestTokenNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public RequestTokenNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); RequestTokenNotFoundException unmarshalledObject = new RequestTokenNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static RequestTokenNotFoundExceptionUnmarshaller _instance = new RequestTokenNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RequestTokenNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceConflictException Object /// </summary> public class ResourceConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceConflictException unmarshalledObject = new ResourceConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceConflictExceptionUnmarshaller _instance = new ResourceConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceDescription Object /// </summary> public class ResourceDescriptionUnmarshaller : IUnmarshaller<ResourceDescription, XmlUnmarshallerContext>, IUnmarshaller<ResourceDescription, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ResourceDescription IUnmarshaller<ResourceDescription, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ResourceDescription unmarshalledObject = new ResourceDescription(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Identifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Identifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Properties", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Properties = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceDescriptionUnmarshaller _instance = new ResourceDescriptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceDescriptionUnmarshaller Instance { get { return _instance; } } } }
98
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// ResourceRequestStatusFilter Marshaller /// </summary> public class ResourceRequestStatusFilterMarshaller : IRequestMarshaller<ResourceRequestStatusFilter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ResourceRequestStatusFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetOperations()) { context.Writer.WritePropertyName("Operations"); context.Writer.WriteArrayStart(); foreach(var requestObjectOperationsListValue in requestObject.Operations) { context.Writer.Write(requestObjectOperationsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetOperationStatuses()) { context.Writer.WritePropertyName("OperationStatuses"); context.Writer.WriteArrayStart(); foreach(var requestObjectOperationStatusesListValue in requestObject.OperationStatuses) { context.Writer.Write(requestObjectOperationStatusesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ResourceRequestStatusFilterMarshaller Instance = new ResourceRequestStatusFilterMarshaller(); } }
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceInternalErrorException Object /// </summary> public class ServiceInternalErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceInternalErrorException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceInternalErrorException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ServiceInternalErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceInternalErrorException unmarshalledObject = new ServiceInternalErrorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ServiceInternalErrorExceptionUnmarshaller _instance = new ServiceInternalErrorExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceInternalErrorExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceLimitExceededException Object /// </summary> public class ServiceLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ServiceLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceLimitExceededException unmarshalledObject = new ServiceLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ServiceLimitExceededExceptionUnmarshaller _instance = new ServiceLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypeNotFoundException Object /// </summary> public class TypeNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<TypeNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TypeNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TypeNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TypeNotFoundException unmarshalledObject = new TypeNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TypeNotFoundExceptionUnmarshaller _instance = new TypeNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypeNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnsupportedActionException Object /// </summary> public class UnsupportedActionExceptionUnmarshaller : IErrorResponseUnmarshaller<UnsupportedActionException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public UnsupportedActionException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public UnsupportedActionException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); UnsupportedActionException unmarshalledObject = new UnsupportedActionException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static UnsupportedActionExceptionUnmarshaller _instance = new UnsupportedActionExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnsupportedActionExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// UpdateResource Request Marshaller /// </summary> public class UpdateResourceRequestMarshaller : IMarshaller<IRequest, UpdateResourceRequest> , 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((UpdateResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudControlApi"); string target = "CloudApiService.UpdateResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-09-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("ClientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetIdentifier()) { context.Writer.WritePropertyName("Identifier"); context.Writer.Write(publicRequest.Identifier); } if(publicRequest.IsSetPatchDocument()) { context.Writer.WritePropertyName("PatchDocument"); context.Writer.Write(publicRequest.PatchDocument); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("RoleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetTypeName()) { context.Writer.WritePropertyName("TypeName"); context.Writer.Write(publicRequest.TypeName); } if(publicRequest.IsSetTypeVersionId()) { context.Writer.WritePropertyName("TypeVersionId"); context.Writer.Write(publicRequest.TypeVersionId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateResourceRequestMarshaller _instance = new UpdateResourceRequestMarshaller(); internal static UpdateResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateResourceRequestMarshaller Instance { get { return _instance; } } } }
138
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudControlApi.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateResource operation /// </summary> public class UpdateResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateResourceResponse response = new UpdateResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ProgressEvent", targetDepth)) { var unmarshaller = ProgressEventUnmarshaller.Instance; response.ProgressEvent = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExistsException")) { return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ClientTokenConflictException")) { return ClientTokenConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentOperationException")) { return ConcurrentOperationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("GeneralServiceException")) { return GeneralServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerFailureException")) { return HandlerFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("HandlerInternalFailureException")) { return HandlerInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCredentialsException")) { return InvalidCredentialsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NetworkFailureException")) { return NetworkFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotStabilizedException")) { return NotStabilizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotUpdatableException")) { return NotUpdatableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("PrivateTypeException")) { return PrivateTypeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException")) { return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalErrorException")) { return ServiceInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TypeNotFoundException")) { return TypeNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedActionException")) { return UnsupportedActionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudControlApiException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateResourceResponseUnmarshaller _instance = new UpdateResourceResponseUnmarshaller(); internal static UpdateResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateResourceResponseUnmarshaller Instance { get { return _instance; } } } }
182
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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CloudControlApi.Model { /// <summary> /// Paginators for the CloudControlApi service ///</summary> public class CloudControlApiPaginatorFactory : ICloudControlApiPaginatorFactory { private readonly IAmazonCloudControlApi client; internal CloudControlApiPaginatorFactory(IAmazonCloudControlApi client) { this.client = client; } /// <summary> /// Paginator for ListResourceRequests operation ///</summary> public IListResourceRequestsPaginator ListResourceRequests(ListResourceRequestsRequest request) { return new ListResourceRequestsPaginator(this.client, request); } /// <summary> /// Paginator for ListResources operation ///</summary> public IListResourcesPaginator ListResources(ListResourcesRequest request) { return new ListResourcesPaginator(this.client, request); } } }
54
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 cloudcontrol-2021-09-30.normal.json service model. */ namespace Amazon.CloudControlApi.Model { /// <summary> /// Paginators for the CloudControlApi service ///</summary> public interface ICloudControlApiPaginatorFactory { /// <summary> /// Paginator for ListResourceRequests operation ///</summary> IListResourceRequestsPaginator ListResourceRequests(ListResourceRequestsRequest request); /// <summary> /// Paginator for ListResources operation ///</summary> IListResourcesPaginator ListResources(ListResourcesRequest request); } }
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 cloudcontrol-2021-09-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudControlApi.Model { /// <summary> /// Paginator for the ListResourceRequests operation ///</summary> public interface IListResourceRequestsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListResourceRequestsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the ResourceRequestStatusSummaries /// </summary> IPaginatedEnumerable<ProgressEvent> ResourceRequestStatusSummaries { 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 cloudcontrol-2021-09-30.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudControlApi.Model { /// <summary> /// Paginator for the ListResources operation ///</summary> public interface IListResourcesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListResourcesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the ResourceDescriptions /// </summary> IPaginatedEnumerable<ResourceDescription> ResourceDescriptions { 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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Base class for ListResourceRequests paginators. /// </summary> internal sealed partial class ListResourceRequestsPaginator : IPaginator<ListResourceRequestsResponse>, IListResourceRequestsPaginator { private readonly IAmazonCloudControlApi _client; private readonly ListResourceRequestsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListResourceRequestsResponse> Responses => new PaginatedResponse<ListResourceRequestsResponse>(this); /// <summary> /// Enumerable containing all of the ResourceRequestStatusSummaries /// </summary> public IPaginatedEnumerable<ProgressEvent> ResourceRequestStatusSummaries => new PaginatedResultKeyResponse<ListResourceRequestsResponse, ProgressEvent>(this, (i) => i.ResourceRequestStatusSummaries); internal ListResourceRequestsPaginator(IAmazonCloudControlApi client, ListResourceRequestsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListResourceRequestsResponse> IPaginator<ListResourceRequestsResponse>.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; ListResourceRequestsResponse response; do { _request.NextToken = nextToken; response = _client.ListResourceRequests(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListResourceRequestsResponse> IPaginator<ListResourceRequestsResponse>.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; ListResourceRequestsResponse response; do { _request.NextToken = nextToken; response = await _client.ListResourceRequestsAsync(_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 cloudcontrol-2021-09-30.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.CloudControlApi.Model { /// <summary> /// Base class for ListResources paginators. /// </summary> internal sealed partial class ListResourcesPaginator : IPaginator<ListResourcesResponse>, IListResourcesPaginator { private readonly IAmazonCloudControlApi _client; private readonly ListResourcesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListResourcesResponse> Responses => new PaginatedResponse<ListResourcesResponse>(this); /// <summary> /// Enumerable containing all of the ResourceDescriptions /// </summary> public IPaginatedEnumerable<ResourceDescription> ResourceDescriptions => new PaginatedResultKeyResponse<ListResourcesResponse, ResourceDescription>(this, (i) => i.ResourceDescriptions); internal ListResourcesPaginator(IAmazonCloudControlApi client, ListResourcesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListResourcesResponse> IPaginator<ListResourcesResponse>.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; ListResourcesResponse response; do { _request.NextToken = nextToken; response = _client.ListResources(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListResourcesResponse> IPaginator<ListResourcesResponse>.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; ListResourcesResponse response; do { _request.NextToken = nextToken; response = await _client.ListResourcesAsync(_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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CloudControlApi.Model; using Amazon.CloudControlApi.Model.Internal.MarshallTransformations; using Amazon.CloudControlApi.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudControlApi { /// <summary> /// Implementation for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial class AmazonCloudControlApiClient : AmazonServiceClient, IAmazonCloudControlApi { private static IServiceMetadata serviceMetadata = new AmazonCloudControlApiMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICloudControlApiPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudControlApiPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudControlApiPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AmazonCloudControlApiConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudControlApiClient(AWSCredentials credentials) : this(credentials, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudControlApiClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AWSCredentials credentials, AmazonCloudControlApiConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudControlApiConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudControlApiConfig 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.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudControlApiEndpointResolver()); } /// <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 CancelResourceRequest /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return Invoke<CancelResourceRequestResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelResourceRequest operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest operation on AmazonCloudControlApiClient.</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 EndCancelResourceRequest /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual IAsyncResult BeginCancelResourceRequest(CancelResourceRequestRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelResourceRequest operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelResourceRequest.</param> /// /// <returns>Returns a CancelResourceRequestResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual CancelResourceRequestResponse EndCancelResourceRequest(IAsyncResult asyncResult) { return EndInvoke<CancelResourceRequestResponse>(asyncResult); } #endregion #region CreateResource /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual CreateResourceResponse CreateResource(CreateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return Invoke<CreateResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateResource operation on AmazonCloudControlApiClient.</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 EndCreateResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual IAsyncResult BeginCreateResource(CreateResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateResource.</param> /// /// <returns>Returns a CreateResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual CreateResourceResponse EndCreateResource(IAsyncResult asyncResult) { return EndInvoke<CreateResourceResponse>(asyncResult); } #endregion #region DeleteResource /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return Invoke<DeleteResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteResource operation on AmazonCloudControlApiClient.</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 EndDeleteResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual IAsyncResult BeginDeleteResource(DeleteResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteResource.</param> /// /// <returns>Returns a DeleteResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual DeleteResourceResponse EndDeleteResource(IAsyncResult asyncResult) { return EndInvoke<DeleteResourceResponse>(asyncResult); } #endregion #region GetResource /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual GetResourceResponse GetResource(GetResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return Invoke<GetResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResource operation on AmazonCloudControlApiClient.</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 EndGetResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual IAsyncResult BeginGetResource(GetResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResource.</param> /// /// <returns>Returns a GetResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual GetResourceResponse EndGetResource(IAsyncResult asyncResult) { return EndInvoke<GetResourceResponse>(asyncResult); } #endregion #region GetResourceRequestStatus /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return Invoke<GetResourceRequestStatusResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetResourceRequestStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus operation on AmazonCloudControlApiClient.</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 EndGetResourceRequestStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual IAsyncResult BeginGetResourceRequestStatus(GetResourceRequestStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetResourceRequestStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResourceRequestStatus.</param> /// /// <returns>Returns a GetResourceRequestStatusResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual GetResourceRequestStatusResponse EndGetResourceRequestStatus(IAsyncResult asyncResult) { return EndInvoke<GetResourceRequestStatusResponse>(asyncResult); } #endregion #region ListResourceRequests /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return Invoke<ListResourceRequestsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListResourceRequests operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests operation on AmazonCloudControlApiClient.</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 EndListResourceRequests /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual IAsyncResult BeginListResourceRequests(ListResourceRequestsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListResourceRequests operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResourceRequests.</param> /// /// <returns>Returns a ListResourceRequestsResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual ListResourceRequestsResponse EndListResourceRequests(IAsyncResult asyncResult) { return EndInvoke<ListResourceRequestsResponse>(asyncResult); } #endregion #region ListResources /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual ListResourcesResponse ListResources(ListResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return Invoke<ListResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResources operation on AmazonCloudControlApiClient.</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 EndListResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual IAsyncResult BeginListResources(ListResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResources.</param> /// /// <returns>Returns a ListResourcesResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual ListResourcesResponse EndListResources(IAsyncResult asyncResult) { return EndInvoke<ListResourcesResponse>(asyncResult); } #endregion #region UpdateResource /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return Invoke<UpdateResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateResource operation on AmazonCloudControlApiClient.</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 EndUpdateResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual IAsyncResult BeginUpdateResource(UpdateResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateResource.</param> /// /// <returns>Returns a UpdateResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual UpdateResourceResponse EndUpdateResource(IAsyncResult asyncResult) { return EndInvoke<UpdateResourceResponse>(asyncResult); } #endregion } }
1,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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudControlApi.Model; namespace Amazon.CloudControlApi { /// <summary> /// Interface for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial interface IAmazonCloudControlApi : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudControlApiPaginatorFactory Paginators { get; } #endif #region CancelResourceRequest /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelResourceRequest operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest operation on AmazonCloudControlApiClient.</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 EndCancelResourceRequest /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> IAsyncResult BeginCancelResourceRequest(CancelResourceRequestRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelResourceRequest operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelResourceRequest.</param> /// /// <returns>Returns a CancelResourceRequestResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> CancelResourceRequestResponse EndCancelResourceRequest(IAsyncResult asyncResult); #endregion #region CreateResource /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> CreateResourceResponse CreateResource(CreateResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateResource operation on AmazonCloudControlApiClient.</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 EndCreateResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> IAsyncResult BeginCreateResource(CreateResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateResource.</param> /// /// <returns>Returns a CreateResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> CreateResourceResponse EndCreateResource(IAsyncResult asyncResult); #endregion #region DeleteResource /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> DeleteResourceResponse DeleteResource(DeleteResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteResource operation on AmazonCloudControlApiClient.</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 EndDeleteResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> IAsyncResult BeginDeleteResource(DeleteResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteResource.</param> /// /// <returns>Returns a DeleteResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> DeleteResourceResponse EndDeleteResource(IAsyncResult asyncResult); #endregion #region GetResource /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> GetResourceResponse GetResource(GetResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the GetResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResource operation on AmazonCloudControlApiClient.</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 EndGetResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> IAsyncResult BeginGetResource(GetResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResource.</param> /// /// <returns>Returns a GetResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> GetResourceResponse EndGetResource(IAsyncResult asyncResult); #endregion #region GetResourceRequestStatus /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request); /// <summary> /// Initiates the asynchronous execution of the GetResourceRequestStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus operation on AmazonCloudControlApiClient.</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 EndGetResourceRequestStatus /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> IAsyncResult BeginGetResourceRequestStatus(GetResourceRequestStatusRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetResourceRequestStatus operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResourceRequestStatus.</param> /// /// <returns>Returns a GetResourceRequestStatusResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> GetResourceRequestStatusResponse EndGetResourceRequestStatus(IAsyncResult asyncResult); #endregion #region ListResourceRequests /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListResourceRequests operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests operation on AmazonCloudControlApiClient.</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 EndListResourceRequests /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> IAsyncResult BeginListResourceRequests(ListResourceRequestsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListResourceRequests operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResourceRequests.</param> /// /// <returns>Returns a ListResourceRequestsResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> ListResourceRequestsResponse EndListResourceRequests(IAsyncResult asyncResult); #endregion #region ListResources /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> ListResourcesResponse ListResources(ListResourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResources operation on AmazonCloudControlApiClient.</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 EndListResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> IAsyncResult BeginListResources(ListResourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResources.</param> /// /// <returns>Returns a ListResourcesResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> ListResourcesResponse EndListResources(IAsyncResult asyncResult); #endregion #region UpdateResource /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> UpdateResourceResponse UpdateResource(UpdateResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateResource operation on AmazonCloudControlApiClient.</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 EndUpdateResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> IAsyncResult BeginUpdateResource(UpdateResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateResource.</param> /// /// <returns>Returns a UpdateResourceResult from CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> UpdateResourceResponse EndUpdateResource(IAsyncResult asyncResult); #endregion } }
814
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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.CloudControlApi.Model.Internal.MarshallTransformations; using Amazon.CloudControlApi.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudControlApi { /// <summary> /// Implementation for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial class AmazonCloudControlApiClient : AmazonServiceClient, IAmazonCloudControlApi { private static IServiceMetadata serviceMetadata = new AmazonCloudControlApiMetadata(); private ICloudControlApiPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudControlApiPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudControlApiPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AmazonCloudControlApiConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudControlApiClient(AWSCredentials credentials) : this(credentials, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudControlApiClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AWSCredentials credentials, AmazonCloudControlApiConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudControlApiConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudControlApiConfig 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.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudControlApiEndpointResolver()); } /// <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 CancelResourceRequest /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return Invoke<CancelResourceRequestResponse>(request, options); } /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual Task<CancelResourceRequestResponse> CancelResourceRequestAsync(CancelResourceRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return InvokeAsync<CancelResourceRequestResponse>(request, options, cancellationToken); } #endregion #region CreateResource /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual CreateResourceResponse CreateResource(CreateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return Invoke<CreateResourceResponse>(request, options); } /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual Task<CreateResourceResponse> CreateResourceAsync(CreateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return InvokeAsync<CreateResourceResponse>(request, options, cancellationToken); } #endregion #region DeleteResource /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return Invoke<DeleteResourceResponse>(request, options); } /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual Task<DeleteResourceResponse> DeleteResourceAsync(DeleteResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return InvokeAsync<DeleteResourceResponse>(request, options, cancellationToken); } #endregion #region GetResource /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual GetResourceResponse GetResource(GetResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return Invoke<GetResourceResponse>(request, options); } /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual Task<GetResourceResponse> GetResourceAsync(GetResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return InvokeAsync<GetResourceResponse>(request, options, cancellationToken); } #endregion #region GetResourceRequestStatus /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return Invoke<GetResourceRequestStatusResponse>(request, options); } /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual Task<GetResourceRequestStatusResponse> GetResourceRequestStatusAsync(GetResourceRequestStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return InvokeAsync<GetResourceRequestStatusResponse>(request, options, cancellationToken); } #endregion #region ListResourceRequests /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return Invoke<ListResourceRequestsResponse>(request, options); } /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual Task<ListResourceRequestsResponse> ListResourceRequestsAsync(ListResourceRequestsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return InvokeAsync<ListResourceRequestsResponse>(request, options, cancellationToken); } #endregion #region ListResources /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual ListResourcesResponse ListResources(ListResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return Invoke<ListResourcesResponse>(request, options); } /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual Task<ListResourcesResponse> ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListResourcesResponse>(request, options, cancellationToken); } #endregion #region UpdateResource /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return Invoke<UpdateResourceResponse>(request, options); } /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual Task<UpdateResourceResponse> UpdateResourceAsync(UpdateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return InvokeAsync<UpdateResourceResponse>(request, options, cancellationToken); } #endregion } }
1,486
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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudControlApi.Model; namespace Amazon.CloudControlApi { /// <summary> /// Interface for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial interface IAmazonCloudControlApi : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> ICloudControlApiPaginatorFactory Paginators { get; } #region CancelResourceRequest /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request); /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> Task<CancelResourceRequestResponse> CancelResourceRequestAsync(CancelResourceRequestRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateResource /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> CreateResourceResponse CreateResource(CreateResourceRequest request); /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> Task<CreateResourceResponse> CreateResourceAsync(CreateResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteResource /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> DeleteResourceResponse DeleteResource(DeleteResourceRequest request); /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> Task<DeleteResourceResponse> DeleteResourceAsync(DeleteResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResource /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> GetResourceResponse GetResource(GetResourceRequest request); /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> Task<GetResourceResponse> GetResourceAsync(GetResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceRequestStatus /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request); /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> Task<GetResourceRequestStatusResponse> GetResourceRequestStatusAsync(GetResourceRequestStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourceRequests /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request); /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> Task<ListResourceRequestsResponse> ListResourceRequestsAsync(ListResourceRequestsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResources /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> ListResourcesResponse ListResources(ListResourcesRequest request); /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> Task<ListResourcesResponse> ListResourcesAsync(ListResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateResource /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> UpdateResourceResponse UpdateResource(UpdateResourceRequest request); /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> Task<UpdateResourceResponse> UpdateResourceAsync(UpdateResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,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 cloudcontrol-2021-09-30.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.CloudControlApi.Model; using Amazon.CloudControlApi.Model.Internal.MarshallTransformations; using Amazon.CloudControlApi.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudControlApi { /// <summary> /// Implementation for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial class AmazonCloudControlApiClient : AmazonServiceClient, IAmazonCloudControlApi { private static IServiceMetadata serviceMetadata = new AmazonCloudControlApiMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AmazonCloudControlApiConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudControlApiClient(AWSCredentials credentials) : this(credentials, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudControlApiClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Credentials and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(AWSCredentials credentials, AmazonCloudControlApiConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudControlApiConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig()) { } /// <summary> /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object</param> public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudControlApiConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICloudControlApiPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudControlApiPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudControlApiPaginatorFactory(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.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudControlApiEndpointResolver()); } /// <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 CancelResourceRequest internal virtual CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return Invoke<CancelResourceRequestResponse>(request, options); } /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> public virtual Task<CancelResourceRequestResponse> CancelResourceRequestAsync(CancelResourceRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return InvokeAsync<CancelResourceRequestResponse>(request, options, cancellationToken); } #endregion #region CreateResource internal virtual CreateResourceResponse CreateResource(CreateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return Invoke<CreateResourceResponse>(request, options); } /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> public virtual Task<CreateResourceResponse> CreateResourceAsync(CreateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return InvokeAsync<CreateResourceResponse>(request, options, cancellationToken); } #endregion #region DeleteResource internal virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return Invoke<DeleteResourceResponse>(request, options); } /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> public virtual Task<DeleteResourceResponse> DeleteResourceAsync(DeleteResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return InvokeAsync<DeleteResourceResponse>(request, options, cancellationToken); } #endregion #region GetResource internal virtual GetResourceResponse GetResource(GetResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return Invoke<GetResourceResponse>(request, options); } /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> public virtual Task<GetResourceResponse> GetResourceAsync(GetResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return InvokeAsync<GetResourceResponse>(request, options, cancellationToken); } #endregion #region GetResourceRequestStatus internal virtual GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return Invoke<GetResourceRequestStatusResponse>(request, options); } /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> public virtual Task<GetResourceRequestStatusResponse> GetResourceRequestStatusAsync(GetResourceRequestStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return InvokeAsync<GetResourceRequestStatusResponse>(request, options, cancellationToken); } #endregion #region ListResourceRequests internal virtual ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return Invoke<ListResourceRequestsResponse>(request, options); } /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> public virtual Task<ListResourceRequestsResponse> ListResourceRequestsAsync(ListResourceRequestsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return InvokeAsync<ListResourceRequestsResponse>(request, options, cancellationToken); } #endregion #region ListResources internal virtual ListResourcesResponse ListResources(ListResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return Invoke<ListResourcesResponse>(request, options); } /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> public virtual Task<ListResourcesResponse> ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return InvokeAsync<ListResourcesResponse>(request, options, cancellationToken); } #endregion #region UpdateResource internal virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return Invoke<UpdateResourceResponse>(request, options); } /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> public virtual Task<UpdateResourceResponse> UpdateResourceAsync(UpdateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return InvokeAsync<UpdateResourceResponse>(request, options, cancellationToken); } #endregion } }
989
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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudControlApi.Model; namespace Amazon.CloudControlApi { /// <summary> /// Interface for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html">Amazon /// Web Services Cloud Control API User Guide</a>. /// </summary> public partial interface IAmazonCloudControlApi : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudControlApiPaginatorFactory Paginators { get; } #endif #region CancelResourceRequest /// <summary> /// Cancels the specified resource operation request. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-cancel">Canceling /// resource operation requests</a> in the <i>Amazon Web Services Cloud Control API User /// Guide</i>. /// /// /// <para> /// Only resource operations requests with a status of <code>PENDING</code> or <code>IN_PROGRESS</code> /// can be canceled. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelResourceRequest service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelResourceRequest service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentModificationException"> /// The resource is currently being modified by another operation. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CancelResourceRequest">REST API Reference for CancelResourceRequest Operation</seealso> Task<CancelResourceRequestResponse> CancelResourceRequestAsync(CancelResourceRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateResource /// <summary> /// Creates the specified resource. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html">Creating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> type returned /// by <code>CreateResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/CreateResource">REST API Reference for CreateResource Operation</seealso> Task<CreateResourceResponse> CreateResourceAsync(CreateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteResource /// <summary> /// Deletes the specified resource. For details, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-delete.html">Deleting /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>DeleteResource</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/DeleteResource">REST API Reference for DeleteResource Operation</seealso> Task<DeleteResourceResponse> DeleteResourceAsync(DeleteResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResource /// <summary> /// Returns information about the current state of the specified resource. For details, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html">Reading /// a resource's current state</a>. /// /// /// <para> /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResource">REST API Reference for GetResource Operation</seealso> Task<GetResourceResponse> GetResourceAsync(GetResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceRequestStatus /// <summary> /// Returns the current status of a resource operation request. For more information, /// see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track">Tracking /// the progress of resource operation requests</a> in the <i>Amazon Web Services Cloud /// Control API User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceRequestStatus service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResourceRequestStatus service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.RequestTokenNotFoundException"> /// A resource operation with the specified request token can't be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus">REST API Reference for GetResourceRequestStatus Operation</seealso> Task<GetResourceRequestStatusResponse> GetResourceRequestStatusAsync(GetResourceRequestStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourceRequests /// <summary> /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list">Listing /// active resource operation requests</a> in the <i>Amazon Web Services Cloud Control /// API User Guide</i>. /// /// <note> /// <para> /// Resource operation requests expire after 7 days. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourceRequests service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourceRequests service method, as returned by CloudControlApi.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResourceRequests">REST API Reference for ListResourceRequests Operation</seealso> Task<ListResourceRequestsResponse> ListResourceRequestsAsync(ListResourceRequestsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResources /// <summary> /// Returns information about the specified resources. For more information, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html">Discovering /// resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// /// /// <para> /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResources service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/ListResources">REST API Reference for ListResources Operation</seealso> Task<ListResourcesResponse> ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateResource /// <summary> /// Updates the specified property values in the resource. /// /// /// <para> /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the <a href="https://datatracker.ietf.org/doc/html/rfc6902"> /// <i>RFC 6902 - JavaScript Object Notation (JSON) Patch</i> </a> standard. /// </para> /// /// <para> /// For details on how Cloud Control API performs resource update operations, see <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-update.html">Updating /// a resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>. /// </para> /// /// <para> /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling <a href="https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html">GetResourceRequestStatus</a> /// using the <code>RequestToken</code> of the <code>ProgressEvent</code> returned by /// <code>UpdateResource</code>. /// </para> /// /// <para> /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Resource /// and property types reference</a> in the <i>CloudFormation Users Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateResource service method, as returned by CloudControlApi.</returns> /// <exception cref="Amazon.CloudControlApi.Model.AlreadyExistsException"> /// The resource with the name requested already exists. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ClientTokenConflictException"> /// The specified client token has already been used in another resource request. /// /// /// <para> /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// </para> /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ConcurrentOperationException"> /// Another resource operation is currently being performed on this resource. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.GeneralServiceException"> /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerFailureException"> /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.HandlerInternalFailureException"> /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidCredentialsException"> /// The resource handler has returned that the credentials provided by the user are invalid. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.InvalidRequestException"> /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NetworkFailureException"> /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotStabilizedException"> /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.NotUpdatableException"> /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.PrivateTypeException"> /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceConflictException"> /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ResourceNotFoundException"> /// A resource with the specified identifier can't be found. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceInternalErrorException"> /// The resource handler has returned that the downstream service returned an internal /// error, typically with a <code>5XX HTTP</code> status code. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ServiceLimitExceededException"> /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.TypeNotFoundException"> /// The specified extension doesn't exist in the CloudFormation registry. /// </exception> /// <exception cref="Amazon.CloudControlApi.Model.UnsupportedActionException"> /// The specified resource doesn't support this resource operation. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/UpdateResource">REST API Reference for UpdateResource Operation</seealso> Task<UpdateResourceResponse> UpdateResourceAsync(UpdateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
636
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.CloudControlApi")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Cloud Control API. Initial release of the SDK for AWS Cloud Control API")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Cloud Control API. Initial release of the SDK for AWS Cloud Control API")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Cloud Control API. Initial release of the SDK for AWS Cloud Control API")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Cloud Control API. Initial release of the SDK for AWS Cloud Control API")] #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.100.147")] [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("Naming", "CA1720:Identifier contains type name", Scope = "member", Target = "~F:Amazon.CloudDirectory.FacetAttributeType.STRING")]
9
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 clouddirectory-2017-01-11.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudDirectory.Internal; namespace Amazon.CloudDirectory { /// <summary> /// Configuration for accessing Amazon CloudDirectory service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudDirectoryConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.101.85"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudDirectoryConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudDirectoryDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "clouddirectory"; this.EndpointProvider = new AmazonCloudDirectoryEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "clouddirectory"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2017-01-11"; } } /// <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 clouddirectory-2017-01-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudDirectory { /// <summary> /// Configuration for accessing Amazon CloudDirectory service /// </summary> public static class AmazonCloudDirectoryDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudDirectory /// </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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudDirectory.Endpoints { /// <summary> /// Contains parameters used for resolving CloudDirectory endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudDirectoryEndpointProvider and CloudDirectoryEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudDirectoryEndpointParameters : EndpointParameters { /// <summary> /// CloudDirectoryEndpointParameters constructor /// </summary> public CloudDirectoryEndpointParameters() { 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 clouddirectory-2017-01-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudDirectory { ///<summary> /// Common exception for the CloudDirectory service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudDirectoryException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudDirectoryException /// </summary> /// <param name="message"></param> public AmazonCloudDirectoryException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudDirectoryException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudDirectoryException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudDirectoryException /// </summary> /// <param name="innerException"></param> public AmazonCloudDirectoryException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudDirectoryException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudDirectoryException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudDirectoryException /// </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 AmazonCloudDirectoryException(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 AmazonCloudDirectoryException 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 AmazonCloudDirectoryException(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 clouddirectory-2017-01-11.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudDirectory { /// <summary> /// Constants used for properties of type BatchReadExceptionType. /// </summary> public class BatchReadExceptionType : ConstantClass { /// <summary> /// Constant AccessDeniedException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType AccessDeniedException = new BatchReadExceptionType("AccessDeniedException"); /// <summary> /// Constant CannotListParentOfRootException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType CannotListParentOfRootException = new BatchReadExceptionType("CannotListParentOfRootException"); /// <summary> /// Constant DirectoryNotEnabledException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType DirectoryNotEnabledException = new BatchReadExceptionType("DirectoryNotEnabledException"); /// <summary> /// Constant FacetValidationException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType FacetValidationException = new BatchReadExceptionType("FacetValidationException"); /// <summary> /// Constant InternalServiceException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType InternalServiceException = new BatchReadExceptionType("InternalServiceException"); /// <summary> /// Constant InvalidArnException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType InvalidArnException = new BatchReadExceptionType("InvalidArnException"); /// <summary> /// Constant InvalidNextTokenException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType InvalidNextTokenException = new BatchReadExceptionType("InvalidNextTokenException"); /// <summary> /// Constant LimitExceededException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType LimitExceededException = new BatchReadExceptionType("LimitExceededException"); /// <summary> /// Constant NotIndexException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType NotIndexException = new BatchReadExceptionType("NotIndexException"); /// <summary> /// Constant NotNodeException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType NotNodeException = new BatchReadExceptionType("NotNodeException"); /// <summary> /// Constant NotPolicyException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType NotPolicyException = new BatchReadExceptionType("NotPolicyException"); /// <summary> /// Constant ResourceNotFoundException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType ResourceNotFoundException = new BatchReadExceptionType("ResourceNotFoundException"); /// <summary> /// Constant ValidationException for BatchReadExceptionType /// </summary> public static readonly BatchReadExceptionType ValidationException = new BatchReadExceptionType("ValidationException"); /// <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 BatchReadExceptionType(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 BatchReadExceptionType FindValue(string value) { return FindValue<BatchReadExceptionType>(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 BatchReadExceptionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BatchWriteExceptionType. /// </summary> public class BatchWriteExceptionType : ConstantClass { /// <summary> /// Constant AccessDeniedException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType AccessDeniedException = new BatchWriteExceptionType("AccessDeniedException"); /// <summary> /// Constant DirectoryNotEnabledException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType DirectoryNotEnabledException = new BatchWriteExceptionType("DirectoryNotEnabledException"); /// <summary> /// Constant FacetValidationException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType FacetValidationException = new BatchWriteExceptionType("FacetValidationException"); /// <summary> /// Constant IndexedAttributeMissingException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType IndexedAttributeMissingException = new BatchWriteExceptionType("IndexedAttributeMissingException"); /// <summary> /// Constant InternalServiceException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType InternalServiceException = new BatchWriteExceptionType("InternalServiceException"); /// <summary> /// Constant InvalidArnException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType InvalidArnException = new BatchWriteExceptionType("InvalidArnException"); /// <summary> /// Constant InvalidAttachmentException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType InvalidAttachmentException = new BatchWriteExceptionType("InvalidAttachmentException"); /// <summary> /// Constant LimitExceededException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType LimitExceededException = new BatchWriteExceptionType("LimitExceededException"); /// <summary> /// Constant LinkNameAlreadyInUseException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType LinkNameAlreadyInUseException = new BatchWriteExceptionType("LinkNameAlreadyInUseException"); /// <summary> /// Constant NotIndexException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType NotIndexException = new BatchWriteExceptionType("NotIndexException"); /// <summary> /// Constant NotNodeException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType NotNodeException = new BatchWriteExceptionType("NotNodeException"); /// <summary> /// Constant NotPolicyException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType NotPolicyException = new BatchWriteExceptionType("NotPolicyException"); /// <summary> /// Constant ObjectAlreadyDetachedException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType ObjectAlreadyDetachedException = new BatchWriteExceptionType("ObjectAlreadyDetachedException"); /// <summary> /// Constant ObjectNotDetachedException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType ObjectNotDetachedException = new BatchWriteExceptionType("ObjectNotDetachedException"); /// <summary> /// Constant ResourceNotFoundException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType ResourceNotFoundException = new BatchWriteExceptionType("ResourceNotFoundException"); /// <summary> /// Constant StillContainsLinksException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType StillContainsLinksException = new BatchWriteExceptionType("StillContainsLinksException"); /// <summary> /// Constant UnsupportedIndexTypeException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType UnsupportedIndexTypeException = new BatchWriteExceptionType("UnsupportedIndexTypeException"); /// <summary> /// Constant ValidationException for BatchWriteExceptionType /// </summary> public static readonly BatchWriteExceptionType ValidationException = new BatchWriteExceptionType("ValidationException"); /// <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 BatchWriteExceptionType(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 BatchWriteExceptionType FindValue(string value) { return FindValue<BatchWriteExceptionType>(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 BatchWriteExceptionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConsistencyLevel. /// </summary> public class ConsistencyLevel : ConstantClass { /// <summary> /// Constant EVENTUAL for ConsistencyLevel /// </summary> public static readonly ConsistencyLevel EVENTUAL = new ConsistencyLevel("EVENTUAL"); /// <summary> /// Constant SERIALIZABLE for ConsistencyLevel /// </summary> public static readonly ConsistencyLevel SERIALIZABLE = new ConsistencyLevel("SERIALIZABLE"); /// <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 ConsistencyLevel(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 ConsistencyLevel FindValue(string value) { return FindValue<ConsistencyLevel>(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 ConsistencyLevel(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DirectoryState. /// </summary> public class DirectoryState : ConstantClass { /// <summary> /// Constant DELETED for DirectoryState /// </summary> public static readonly DirectoryState DELETED = new DirectoryState("DELETED"); /// <summary> /// Constant DISABLED for DirectoryState /// </summary> public static readonly DirectoryState DISABLED = new DirectoryState("DISABLED"); /// <summary> /// Constant ENABLED for DirectoryState /// </summary> public static readonly DirectoryState ENABLED = new DirectoryState("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 DirectoryState(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 DirectoryState FindValue(string value) { return FindValue<DirectoryState>(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 DirectoryState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FacetAttributeType. /// </summary> public class FacetAttributeType : ConstantClass { /// <summary> /// Constant BINARY for FacetAttributeType /// </summary> public static readonly FacetAttributeType BINARY = new FacetAttributeType("BINARY"); /// <summary> /// Constant BOOLEAN for FacetAttributeType /// </summary> public static readonly FacetAttributeType BOOLEAN = new FacetAttributeType("BOOLEAN"); /// <summary> /// Constant DATETIME for FacetAttributeType /// </summary> public static readonly FacetAttributeType DATETIME = new FacetAttributeType("DATETIME"); /// <summary> /// Constant NUMBER for FacetAttributeType /// </summary> public static readonly FacetAttributeType NUMBER = new FacetAttributeType("NUMBER"); /// <summary> /// Constant STRING for FacetAttributeType /// </summary> public static readonly FacetAttributeType STRING = new FacetAttributeType("STRING"); /// <summary> /// Constant VARIANT for FacetAttributeType /// </summary> public static readonly FacetAttributeType VARIANT = new FacetAttributeType("VARIANT"); /// <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 FacetAttributeType(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 FacetAttributeType FindValue(string value) { return FindValue<FacetAttributeType>(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 FacetAttributeType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type FacetStyle. /// </summary> public class FacetStyle : ConstantClass { /// <summary> /// Constant DYNAMIC for FacetStyle /// </summary> public static readonly FacetStyle DYNAMIC = new FacetStyle("DYNAMIC"); /// <summary> /// Constant STATIC for FacetStyle /// </summary> public static readonly FacetStyle STATIC = new FacetStyle("STATIC"); /// <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 FacetStyle(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 FacetStyle FindValue(string value) { return FindValue<FacetStyle>(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 FacetStyle(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ObjectType. /// </summary> public class ObjectType : ConstantClass { /// <summary> /// Constant INDEX for ObjectType /// </summary> public static readonly ObjectType INDEX = new ObjectType("INDEX"); /// <summary> /// Constant LEAF_NODE for ObjectType /// </summary> public static readonly ObjectType LEAF_NODE = new ObjectType("LEAF_NODE"); /// <summary> /// Constant NODE for ObjectType /// </summary> public static readonly ObjectType NODE = new ObjectType("NODE"); /// <summary> /// Constant POLICY for ObjectType /// </summary> public static readonly ObjectType POLICY = new ObjectType("POLICY"); /// <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 ObjectType(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 ObjectType FindValue(string value) { return FindValue<ObjectType>(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 ObjectType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RangeMode. /// </summary> public class RangeMode : ConstantClass { /// <summary> /// Constant EXCLUSIVE for RangeMode /// </summary> public static readonly RangeMode EXCLUSIVE = new RangeMode("EXCLUSIVE"); /// <summary> /// Constant FIRST for RangeMode /// </summary> public static readonly RangeMode FIRST = new RangeMode("FIRST"); /// <summary> /// Constant INCLUSIVE for RangeMode /// </summary> public static readonly RangeMode INCLUSIVE = new RangeMode("INCLUSIVE"); /// <summary> /// Constant LAST for RangeMode /// </summary> public static readonly RangeMode LAST = new RangeMode("LAST"); /// <summary> /// Constant LAST_BEFORE_MISSING_VALUES for RangeMode /// </summary> public static readonly RangeMode LAST_BEFORE_MISSING_VALUES = new RangeMode("LAST_BEFORE_MISSING_VALUES"); /// <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 RangeMode(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 RangeMode FindValue(string value) { return FindValue<RangeMode>(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 RangeMode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RequiredAttributeBehavior. /// </summary> public class RequiredAttributeBehavior : ConstantClass { /// <summary> /// Constant NOT_REQUIRED for RequiredAttributeBehavior /// </summary> public static readonly RequiredAttributeBehavior NOT_REQUIRED = new RequiredAttributeBehavior("NOT_REQUIRED"); /// <summary> /// Constant REQUIRED_ALWAYS for RequiredAttributeBehavior /// </summary> public static readonly RequiredAttributeBehavior REQUIRED_ALWAYS = new RequiredAttributeBehavior("REQUIRED_ALWAYS"); /// <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 RequiredAttributeBehavior(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 RequiredAttributeBehavior FindValue(string value) { return FindValue<RequiredAttributeBehavior>(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 RequiredAttributeBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RuleType. /// </summary> public class RuleType : ConstantClass { /// <summary> /// Constant BINARY_LENGTH for RuleType /// </summary> public static readonly RuleType BINARY_LENGTH = new RuleType("BINARY_LENGTH"); /// <summary> /// Constant NUMBER_COMPARISON for RuleType /// </summary> public static readonly RuleType NUMBER_COMPARISON = new RuleType("NUMBER_COMPARISON"); /// <summary> /// Constant STRING_FROM_SET for RuleType /// </summary> public static readonly RuleType STRING_FROM_SET = new RuleType("STRING_FROM_SET"); /// <summary> /// Constant STRING_LENGTH for RuleType /// </summary> public static readonly RuleType STRING_LENGTH = new RuleType("STRING_LENGTH"); /// <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 RuleType(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 RuleType FindValue(string value) { return FindValue<RuleType>(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 RuleType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type UpdateActionType. /// </summary> public class UpdateActionType : ConstantClass { /// <summary> /// Constant CREATE_OR_UPDATE for UpdateActionType /// </summary> public static readonly UpdateActionType CREATE_OR_UPDATE = new UpdateActionType("CREATE_OR_UPDATE"); /// <summary> /// Constant DELETE for UpdateActionType /// </summary> public static readonly UpdateActionType DELETE = new UpdateActionType("DELETE"); /// <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 UpdateActionType(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 UpdateActionType FindValue(string value) { return FindValue<UpdateActionType>(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 UpdateActionType(string value) { return FindValue(value); } } }
732
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 clouddirectory-2017-01-11.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.CloudDirectory.Internal { /// <summary> /// Amazon CloudDirectory endpoint provider. /// Resolves endpoint for given set of CloudDirectoryEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudDirectoryEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudDirectoryEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["Region"] == null) throw new AmazonClientException("Region parameter must be set for endpoint resolution"); 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 ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { 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 (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://clouddirectory-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("aws-us-gov", GetAttr(refs["PartitionResult"], "name"))) { return new Endpoint(Interpolate(@"https://clouddirectory.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://clouddirectory-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://clouddirectory.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://clouddirectory.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 clouddirectory-2017-01-11.normal.json service model. */ using System; using Amazon.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudDirectory.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudDirectory.Internal { /// <summary> /// Amazon CloudDirectory endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudDirectory service requests. /// Collects values for CloudDirectoryEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudDirectoryEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudDirectoryEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudDirectoryConfig)requestContext.ClientConfig; var result = new CloudDirectoryEndpointParameters(); 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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudDirectory.Internal { /// <summary> /// Service metadata for Amazon CloudDirectory service /// </summary> public partial class AmazonCloudDirectoryMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudDirectory"; } } /// <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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Access denied or directory not found. Either you don't have permissions for this directory /// or the directory does not exist. Try calling <a>ListDirectories</a> and check your /// permissions. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonCloudDirectoryException { /// <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 } }
126