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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified public key doesn't exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NoSuchPublicKeyException : AmazonCloudFrontException { /// <summary> /// Constructs a new NoSuchPublicKeyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NoSuchPublicKeyException(string message) : base(message) {} /// <summary> /// Construct instance of NoSuchPublicKeyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NoSuchPublicKeyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NoSuchPublicKeyException /// </summary> /// <param name="innerException"></param> public NoSuchPublicKeyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NoSuchPublicKeyException /// </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 NoSuchPublicKeyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NoSuchPublicKeyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NoSuchPublicKeyException(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 NoSuchPublicKeyException 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 NoSuchPublicKeyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The real-time log configuration does not exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NoSuchRealtimeLogConfigException : AmazonCloudFrontException { /// <summary> /// Constructs a new NoSuchRealtimeLogConfigException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NoSuchRealtimeLogConfigException(string message) : base(message) {} /// <summary> /// Construct instance of NoSuchRealtimeLogConfigException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NoSuchRealtimeLogConfigException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NoSuchRealtimeLogConfigException /// </summary> /// <param name="innerException"></param> public NoSuchRealtimeLogConfigException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NoSuchRealtimeLogConfigException /// </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 NoSuchRealtimeLogConfigException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NoSuchRealtimeLogConfigException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NoSuchRealtimeLogConfigException(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 NoSuchRealtimeLogConfigException 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 NoSuchRealtimeLogConfigException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A resource that was specified is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NoSuchResourceException : AmazonCloudFrontException { /// <summary> /// Constructs a new NoSuchResourceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NoSuchResourceException(string message) : base(message) {} /// <summary> /// Construct instance of NoSuchResourceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NoSuchResourceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NoSuchResourceException /// </summary> /// <param name="innerException"></param> public NoSuchResourceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NoSuchResourceException /// </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 NoSuchResourceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NoSuchResourceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NoSuchResourceException(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 NoSuchResourceException 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 NoSuchResourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The response headers policy does not exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NoSuchResponseHeadersPolicyException : AmazonCloudFrontException { /// <summary> /// Constructs a new NoSuchResponseHeadersPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NoSuchResponseHeadersPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of NoSuchResponseHeadersPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NoSuchResponseHeadersPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NoSuchResponseHeadersPolicyException /// </summary> /// <param name="innerException"></param> public NoSuchResponseHeadersPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NoSuchResponseHeadersPolicyException /// </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 NoSuchResponseHeadersPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NoSuchResponseHeadersPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NoSuchResponseHeadersPolicyException(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 NoSuchResponseHeadersPolicyException 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 NoSuchResponseHeadersPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified streaming distribution does not exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NoSuchStreamingDistributionException : AmazonCloudFrontException { /// <summary> /// Constructs a new NoSuchStreamingDistributionException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NoSuchStreamingDistributionException(string message) : base(message) {} /// <summary> /// Construct instance of NoSuchStreamingDistributionException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NoSuchStreamingDistributionException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NoSuchStreamingDistributionException /// </summary> /// <param name="innerException"></param> public NoSuchStreamingDistributionException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NoSuchStreamingDistributionException /// </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 NoSuchStreamingDistributionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NoSuchStreamingDistributionException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NoSuchStreamingDistributionException(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 NoSuchStreamingDistributionException 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 NoSuchStreamingDistributionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin. /// /// /// <para> /// An origin is the location where content is stored, and from which CloudFront gets /// content to serve to viewers. To specify an origin: /// </para> /// <ul> <li> /// <para> /// Use <code>S3OriginConfig</code> to specify an Amazon S3 bucket that is not configured /// with static website hosting. /// </para> /// </li> <li> /// <para> /// Use <code>CustomOriginConfig</code> to specify all other kinds of origins, including: /// </para> /// <ul> <li> /// <para> /// An Amazon S3 bucket that is configured with static website hosting /// </para> /// </li> <li> /// <para> /// An Elastic Load Balancing load balancer /// </para> /// </li> <li> /// <para> /// An AWS Elemental MediaPackage endpoint /// </para> /// </li> <li> /// <para> /// An AWS Elemental MediaStore container /// </para> /// </li> <li> /// <para> /// Any other HTTP server, running on an Amazon EC2 instance or any other kind of host /// </para> /// </li> </ul> </li> </ul> /// <para> /// For the current maximum number of origins that you can specify per distribution, see /// <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions">General /// Quotas on Web Distributions</a> in the <i>Amazon CloudFront Developer Guide</i> (quotas /// were formerly referred to as limits). /// </para> /// </summary> public partial class Origin { private int? _connectionAttempts; private int? _connectionTimeout; private CustomHeaders _customHeaders; private CustomOriginConfig _customOriginConfig; private string _domainName; private string _id; private string _originAccessControlId; private string _originPath; private OriginShield _originShield; private S3OriginConfig _s3OriginConfig; /// <summary> /// Gets and sets the property ConnectionAttempts. /// <para> /// The number of times that CloudFront attempts to connect to the origin. The minimum /// number is 1, the maximum is 3, and the default (if you don't specify otherwise) is /// 3. /// </para> /// /// <para> /// For a custom origin (including an Amazon S3 bucket that's configured with static website /// hosting), this value also specifies the number of times that CloudFront attempts to /// get a response from the origin, in the case of an <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout">Origin /// Response Timeout</a>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts">Origin /// Connection Attempts</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public int ConnectionAttempts { get { return this._connectionAttempts.GetValueOrDefault(); } set { this._connectionAttempts = value; } } // Check to see if ConnectionAttempts property is set internal bool IsSetConnectionAttempts() { return this._connectionAttempts.HasValue; } /// <summary> /// Gets and sets the property ConnectionTimeout. /// <para> /// The number of seconds that CloudFront waits when trying to establish a connection /// to the origin. The minimum timeout is 1 second, the maximum is 10 seconds, and the /// default (if you don't specify otherwise) is 10 seconds. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout">Origin /// Connection Timeout</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public int ConnectionTimeout { get { return this._connectionTimeout.GetValueOrDefault(); } set { this._connectionTimeout = value; } } // Check to see if ConnectionTimeout property is set internal bool IsSetConnectionTimeout() { return this._connectionTimeout.HasValue; } /// <summary> /// Gets and sets the property CustomHeaders. /// <para> /// A list of HTTP header names and values that CloudFront adds to the requests that it /// sends to the origin. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html">Adding /// Custom Headers to Origin Requests</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public CustomHeaders CustomHeaders { get { return this._customHeaders; } set { this._customHeaders = value; } } // Check to see if CustomHeaders property is set internal bool IsSetCustomHeaders() { return this._customHeaders != null; } /// <summary> /// Gets and sets the property CustomOriginConfig. /// <para> /// Use this type to specify an origin that is not an Amazon S3 bucket, with one exception. /// If the Amazon S3 bucket is configured with static website hosting, use this type. /// If the Amazon S3 bucket is not configured with static website hosting, use the <code>S3OriginConfig</code> /// type instead. /// </para> /// </summary> public CustomOriginConfig CustomOriginConfig { get { return this._customOriginConfig; } set { this._customOriginConfig = value; } } // Check to see if CustomOriginConfig property is set internal bool IsSetCustomOriginConfig() { return this._customOriginConfig != null; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name for the origin. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName">Origin /// Domain Name</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// A unique identifier for the origin. This value must be unique within the distribution. /// </para> /// /// <para> /// Use this value to specify the <code>TargetOriginId</code> in a <code>CacheBehavior</code> /// or <code>DefaultCacheBehavior</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property OriginAccessControlId. /// <para> /// The unique identifier of an origin access control for this origin. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">Restricting /// access to an Amazon S3 origin</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public string OriginAccessControlId { get { return this._originAccessControlId; } set { this._originAccessControlId = value; } } // Check to see if OriginAccessControlId property is set internal bool IsSetOriginAccessControlId() { return this._originAccessControlId != null; } /// <summary> /// Gets and sets the property OriginPath. /// <para> /// An optional path that CloudFront appends to the origin domain name when CloudFront /// requests content from the origin. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath">Origin /// Path</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public string OriginPath { get { return this._originPath; } set { this._originPath = value; } } // Check to see if OriginPath property is set internal bool IsSetOriginPath() { return this._originPath != null; } /// <summary> /// Gets and sets the property OriginShield. /// <para> /// CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html">Using /// Origin Shield</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public OriginShield OriginShield { get { return this._originShield; } set { this._originShield = value; } } // Check to see if OriginShield property is set internal bool IsSetOriginShield() { return this._originShield != null; } /// <summary> /// Gets and sets the property S3OriginConfig. /// <para> /// Use this type to specify an origin that is an Amazon S3 bucket that is not configured /// with static website hosting. To specify any other type of origin, including an Amazon /// S3 bucket that is configured with static website hosting, use the <code>CustomOriginConfig</code> /// type instead. /// </para> /// </summary> public S3OriginConfig S3OriginConfig { get { return this._s3OriginConfig; } set { this._s3OriginConfig = value; } } // Check to see if S3OriginConfig property is set internal bool IsSetS3OriginConfig() { return this._s3OriginConfig != null; } } }
331
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A CloudFront origin access control, including its unique identifier. /// </summary> public partial class OriginAccessControl { private string _id; private OriginAccessControlConfig _originAccessControlConfig; /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier of the origin access control. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property OriginAccessControlConfig. /// <para> /// The origin access control. /// </para> /// </summary> public OriginAccessControlConfig OriginAccessControlConfig { get { return this._originAccessControlConfig; } set { this._originAccessControlConfig = value; } } // Check to see if OriginAccessControlConfig property is set internal bool IsSetOriginAccessControlConfig() { return this._originAccessControlConfig != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin access control with the specified parameters already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class OriginAccessControlAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new OriginAccessControlAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public OriginAccessControlAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of OriginAccessControlAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public OriginAccessControlAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of OriginAccessControlAlreadyExistsException /// </summary> /// <param name="innerException"></param> public OriginAccessControlAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of OriginAccessControlAlreadyExistsException /// </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 OriginAccessControlAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of OriginAccessControlAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public OriginAccessControlAlreadyExistsException(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 OriginAccessControlAlreadyExistsException 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 OriginAccessControlAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A CloudFront origin access control configuration. /// </summary> public partial class OriginAccessControlConfig { private string _description; private string _name; private OriginAccessControlOriginTypes _originAccessControlOriginType; private OriginAccessControlSigningBehaviors _signingBehavior; private OriginAccessControlSigningProtocols _signingProtocol; /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the origin access control. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name to identify the origin access control. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property OriginAccessControlOriginType. /// <para> /// The type of origin that this origin access control is for. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlOriginTypes OriginAccessControlOriginType { get { return this._originAccessControlOriginType; } set { this._originAccessControlOriginType = value; } } // Check to see if OriginAccessControlOriginType property is set internal bool IsSetOriginAccessControlOriginType() { return this._originAccessControlOriginType != null; } /// <summary> /// Gets and sets the property SigningBehavior. /// <para> /// Specifies which requests CloudFront signs (adds authentication information to). Specify /// <code>always</code> for the most common use case. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#oac-advanced-settings">origin /// access control advanced settings</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// This field can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <code>always</code> – CloudFront signs all origin requests, overwriting the <code>Authorization</code> /// header from the viewer request if one exists. /// </para> /// </li> <li> /// <para> /// <code>never</code> – CloudFront doesn't sign any origin requests. This value turns /// off origin access control for all origins in all distributions that use this origin /// access control. /// </para> /// </li> <li> /// <para> /// <code>no-override</code> – If the viewer request doesn't contain the <code>Authorization</code> /// header, then CloudFront signs the origin request. If the viewer request contains the /// <code>Authorization</code> header, then CloudFront doesn't sign the origin request /// and instead passes along the <code>Authorization</code> header from the viewer request. /// <b>WARNING: To pass along the <code>Authorization</code> header from the viewer request, /// you <i>must</i> add the <code>Authorization</code> header to a <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">cache /// policy</a> for all cache behaviors that use origins associated with this origin access /// control.</b> /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlSigningBehaviors SigningBehavior { get { return this._signingBehavior; } set { this._signingBehavior = value; } } // Check to see if SigningBehavior property is set internal bool IsSetSigningBehavior() { return this._signingBehavior != null; } /// <summary> /// Gets and sets the property SigningProtocol. /// <para> /// The signing protocol of the origin access control, which determines how CloudFront /// signs (authenticates) requests. The only valid value is <code>sigv4</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlSigningProtocols SigningProtocol { get { return this._signingProtocol; } set { this._signingProtocol = value; } } // Check to see if SigningProtocol property is set internal bool IsSetSigningProtocol() { return this._signingProtocol != null; } } }
167
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete the origin access control because it's in use by one or more distributions. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class OriginAccessControlInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new OriginAccessControlInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public OriginAccessControlInUseException(string message) : base(message) {} /// <summary> /// Construct instance of OriginAccessControlInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public OriginAccessControlInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of OriginAccessControlInUseException /// </summary> /// <param name="innerException"></param> public OriginAccessControlInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of OriginAccessControlInUseException /// </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 OriginAccessControlInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of OriginAccessControlInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public OriginAccessControlInUseException(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 OriginAccessControlInUseException 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 OriginAccessControlInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of CloudFront origin access controls. /// </summary> public partial class OriginAccessControlList { private bool? _isTruncated; private List<OriginAccessControlSummary> _items = new List<OriginAccessControlSummary>(); private string _marker; private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Gets and sets the property IsTruncated. /// <para> /// If there are more items in the list than are in this response, this value is <code>true</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public bool IsTruncated { get { return this._isTruncated.GetValueOrDefault(); } set { this._isTruncated = value; } } // Check to see if IsTruncated property is set internal bool IsSetIsTruncated() { return this._isTruncated.HasValue; } /// <summary> /// Gets and sets the property Items. /// <para> /// Contains the origin access controls in the list. /// </para> /// </summary> public List<OriginAccessControlSummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Marker. /// <para> /// The value of the <code>Marker</code> field that was provided in the request. /// </para> /// </summary> [AWSProperty(Required=true)] public string Marker { get { return this._marker; } set { this._marker = value; } } // Check to see if Marker property is set internal bool IsSetMarker() { return this._marker != null; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of origin access controls requested. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more items in the list than are in this response, this element is present. /// It contains the value to use in the <code>Marker</code> field of another request to /// continue listing origin access controls. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of origin access controls returned in the response. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A CloudFront origin access control. /// </summary> public partial class OriginAccessControlSummary { private string _description; private string _id; private string _name; private OriginAccessControlOriginTypes _originAccessControlOriginType; private OriginAccessControlSigningBehaviors _signingBehavior; private OriginAccessControlSigningProtocols _signingProtocol; /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the origin access control. /// </para> /// </summary> [AWSProperty(Required=true)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier of the origin access control. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A unique name that identifies the origin access control. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property OriginAccessControlOriginType. /// <para> /// The type of origin that this origin access control is for. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlOriginTypes OriginAccessControlOriginType { get { return this._originAccessControlOriginType; } set { this._originAccessControlOriginType = value; } } // Check to see if OriginAccessControlOriginType property is set internal bool IsSetOriginAccessControlOriginType() { return this._originAccessControlOriginType != null; } /// <summary> /// Gets and sets the property SigningBehavior. /// <para> /// A value that specifies which requests CloudFront signs (adds authentication information /// to). This field can have one of the following values: /// </para> /// <ul> <li> /// <para> /// <code>never</code> – CloudFront doesn't sign any origin requests. /// </para> /// </li> <li> /// <para> /// <code>always</code> – CloudFront signs all origin requests, overwriting the <code>Authorization</code> /// header from the viewer request if necessary. /// </para> /// </li> <li> /// <para> /// <code>no-override</code> – If the viewer request doesn't contain the <code>Authorization</code> /// header, CloudFront signs the origin request. If the viewer request contains the <code>Authorization</code> /// header, CloudFront doesn't sign the origin request, but instead passes along the <code>Authorization</code> /// header that it received in the viewer request. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlSigningBehaviors SigningBehavior { get { return this._signingBehavior; } set { this._signingBehavior = value; } } // Check to see if SigningBehavior property is set internal bool IsSetSigningBehavior() { return this._signingBehavior != null; } /// <summary> /// Gets and sets the property SigningProtocol. /// <para> /// The signing protocol of the origin access control. The signing protocol determines /// how CloudFront signs (authenticates) requests. The only valid value is <code>sigv4</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginAccessControlSigningProtocols SigningProtocol { get { return this._signingProtocol; } set { this._signingProtocol = value; } } // Check to see if SigningProtocol property is set internal bool IsSetSigningProtocol() { return this._signingProtocol != null; } } }
177
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains <code>HeaderName</code> and <code>HeaderValue</code> /// elements, if any, for this distribution. /// </summary> public partial class OriginCustomHeader { private string _headerName; private string _headerValue; /// <summary> /// Gets and sets the property HeaderName. /// <para> /// The name of a header that you want CloudFront to send to your origin. For more information, /// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html">Adding /// Custom Headers to Origin Requests</a> in the <i> Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string HeaderName { get { return this._headerName; } set { this._headerName = value; } } // Check to see if HeaderName property is set internal bool IsSetHeaderName() { return this._headerName != null; } /// <summary> /// Gets and sets the property HeaderValue. /// <para> /// The value for the header that you specified in the <code>HeaderName</code> field. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true)] public string HeaderValue { get { return this._headerValue; } set { this._headerValue = value; } } // Check to see if HeaderValue property is set internal bool IsSetHeaderValue() { return this._headerValue != null; } } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin group includes two origins (a primary origin and a second origin to failover /// to) and a failover criteria that you specify. You create an origin group to support /// origin failover in CloudFront. When you create or update a distribution, you can specifiy /// the origin group instead of a single origin, and CloudFront will failover from the /// primary origin to the second origin under the failover conditions that you've chosen. /// </summary> public partial class OriginGroup { private OriginGroupFailoverCriteria _failoverCriteria; private string _id; private OriginGroupMembers _members; /// <summary> /// Gets and sets the property FailoverCriteria. /// <para> /// A complex type that contains information about the failover criteria for an origin /// group. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginGroupFailoverCriteria FailoverCriteria { get { return this._failoverCriteria; } set { this._failoverCriteria = value; } } // Check to see if FailoverCriteria property is set internal bool IsSetFailoverCriteria() { return this._failoverCriteria != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The origin group's ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Members. /// <para> /// A complex type that contains information about the origins in an origin group. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginGroupMembers Members { get { return this._members; } set { this._members = value; } } // Check to see if Members property is set internal bool IsSetMembers() { return this._members != null; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex data type that includes information about the failover criteria for an origin /// group, including the status codes for which CloudFront will failover from the primary /// origin to the second origin. /// </summary> public partial class OriginGroupFailoverCriteria { private StatusCodes _statusCodes; /// <summary> /// Gets and sets the property StatusCodes. /// <para> /// The status codes that, when returned from the primary origin, will trigger CloudFront /// to failover to the second origin. /// </para> /// </summary> [AWSProperty(Required=true)] public StatusCodes StatusCodes { get { return this._statusCodes; } set { this._statusCodes = value; } } // Check to see if StatusCodes property is set internal bool IsSetStatusCodes() { return this._statusCodes != null; } } }
61
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin in an origin group. /// </summary> public partial class OriginGroupMember { private string _originId; /// <summary> /// Gets and sets the property OriginId. /// <para> /// The ID for an origin in an origin group. /// </para> /// </summary> [AWSProperty(Required=true)] public string OriginId { get { return this._originId; } set { this._originId = value; } } // Check to see if OriginId property is set internal bool IsSetOriginId() { return this._originId != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex data type for the origins included in an origin group. /// </summary> public partial class OriginGroupMembers { private List<OriginGroupMember> _items = new List<OriginGroupMember>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// Items (origins) in an origin group. /// </para> /// </summary> [AWSProperty(Required=true, Min=2, Max=2)] public List<OriginGroupMember> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of origins in an origin group. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex data type for the origin groups specified for a distribution. /// </summary> public partial class OriginGroups { private List<OriginGroup> _items = new List<OriginGroup>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The items (origin groups) in a distribution. /// </para> /// </summary> public List<OriginGroup> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of origin groups. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin request policy. /// /// /// <para> /// When it's attached to a cache behavior, the origin request policy determines the values /// that CloudFront includes in requests that it sends to the origin. Each request that /// CloudFront sends to the origin includes the following: /// </para> /// <ul> <li> /// <para> /// The request body and the URL path (without the domain name) from the viewer request. /// </para> /// </li> <li> /// <para> /// The headers that CloudFront automatically includes in every origin request, including /// <code>Host</code>, <code>User-Agent</code>, and <code>X-Amz-Cf-Id</code>. /// </para> /// </li> <li> /// <para> /// All HTTP headers, cookies, and URL query strings that are specified in the cache policy /// or the origin request policy. These can include items from the viewer request and, /// in the case of headers, additional ones that are added by CloudFront. /// </para> /// </li> </ul> /// <para> /// CloudFront sends a request when it can't find an object in its cache that matches /// the request. If you want to send values to the origin and also include them in the /// cache key, use <code>CachePolicy</code>. /// </para> /// </summary> public partial class OriginRequestPolicy { private string _id; private DateTime? _lastModifiedTime; private OriginRequestPolicyConfig _originRequestPolicyConfig; /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the origin request policy. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The date and time when the origin request policy was last modified. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property OriginRequestPolicyConfig. /// <para> /// The origin request policy configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyConfig OriginRequestPolicyConfig { get { return this._originRequestPolicyConfig; } set { this._originRequestPolicyConfig = value; } } // Check to see if OriginRequestPolicyConfig property is set internal bool IsSetOriginRequestPolicyConfig() { return this._originRequestPolicyConfig != null; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin request policy with this name already exists. You must provide a unique /// name. To modify an existing origin request policy, use <code>UpdateOriginRequestPolicy</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class OriginRequestPolicyAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new OriginRequestPolicyAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public OriginRequestPolicyAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of OriginRequestPolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public OriginRequestPolicyAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of OriginRequestPolicyAlreadyExistsException /// </summary> /// <param name="innerException"></param> public OriginRequestPolicyAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of OriginRequestPolicyAlreadyExistsException /// </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 OriginRequestPolicyAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of OriginRequestPolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public OriginRequestPolicyAlreadyExistsException(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 OriginRequestPolicyAlreadyExistsException 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 OriginRequestPolicyAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An origin request policy configuration. /// /// /// <para> /// This configuration determines the values that CloudFront includes in requests that /// it sends to the origin. Each request that CloudFront sends to the origin includes /// the following: /// </para> /// <ul> <li> /// <para> /// The request body and the URL path (without the domain name) from the viewer request. /// </para> /// </li> <li> /// <para> /// The headers that CloudFront automatically includes in every origin request, including /// <code>Host</code>, <code>User-Agent</code>, and <code>X-Amz-Cf-Id</code>. /// </para> /// </li> <li> /// <para> /// All HTTP headers, cookies, and URL query strings that are specified in the cache policy /// or the origin request policy. These can include items from the viewer request and, /// in the case of headers, additional ones that are added by CloudFront. /// </para> /// </li> </ul> /// <para> /// CloudFront sends a request when it can't find an object in its cache that matches /// the request. If you want to send values to the origin and also include them in the /// cache key, use <code>CachePolicy</code>. /// </para> /// </summary> public partial class OriginRequestPolicyConfig { private string _comment; private OriginRequestPolicyCookiesConfig _cookiesConfig; private OriginRequestPolicyHeadersConfig _headersConfig; private string _name; private OriginRequestPolicyQueryStringsConfig _queryStringsConfig; /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment to describe the origin request policy. The comment cannot be longer than /// 128 characters. /// </para> /// </summary> public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property CookiesConfig. /// <para> /// The cookies from viewer requests to include in origin requests. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyCookiesConfig CookiesConfig { get { return this._cookiesConfig; } set { this._cookiesConfig = value; } } // Check to see if CookiesConfig property is set internal bool IsSetCookiesConfig() { return this._cookiesConfig != null; } /// <summary> /// Gets and sets the property HeadersConfig. /// <para> /// The HTTP headers to include in origin requests. These can include headers from viewer /// requests and additional headers added by CloudFront. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyHeadersConfig HeadersConfig { get { return this._headersConfig; } set { this._headersConfig = value; } } // Check to see if HeadersConfig property is set internal bool IsSetHeadersConfig() { return this._headersConfig != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A unique name to identify the origin request policy. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property QueryStringsConfig. /// <para> /// The URL query strings from viewer requests to include in origin requests. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyQueryStringsConfig QueryStringsConfig { get { return this._queryStringsConfig; } set { this._queryStringsConfig = value; } } // Check to see if QueryStringsConfig property is set internal bool IsSetQueryStringsConfig() { return this._queryStringsConfig != null; } } }
167
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An object that determines whether any cookies in viewer requests (and if so, which /// cookies) are included in requests that CloudFront sends to the origin. /// </summary> public partial class OriginRequestPolicyCookiesConfig { private OriginRequestPolicyCookieBehavior _cookieBehavior; private CookieNames _cookies; /// <summary> /// Gets and sets the property CookieBehavior. /// <para> /// Determines whether cookies in viewer requests are included in requests that CloudFront /// sends to the origin. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>none</code> – No cookies in viewer requests are included in requests that CloudFront /// sends to the origin. Even when this field is set to <code>none</code>, any cookies /// that are listed in a <code>CachePolicy</code> <i>are</i> included in origin requests. /// </para> /// </li> <li> /// <para> /// <code>whitelist</code> – Only the cookies in viewer requests that are listed in the /// <code>CookieNames</code> type are included in requests that CloudFront sends to the /// origin. /// </para> /// </li> <li> /// <para> /// <code>all</code> – All cookies in viewer requests are included in requests that CloudFront /// sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>allExcept</code> – All cookies in viewer requests are included in requests /// that CloudFront sends to the origin, <i> <b>except</b> </i> for those listed in the /// <code>CookieNames</code> type, which are not included. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyCookieBehavior CookieBehavior { get { return this._cookieBehavior; } set { this._cookieBehavior = value; } } // Check to see if CookieBehavior property is set internal bool IsSetCookieBehavior() { return this._cookieBehavior != null; } /// <summary> /// Gets and sets the property Cookies. /// </summary> public CookieNames Cookies { get { return this._cookies; } set { this._cookies = value; } } // Check to see if Cookies property is set internal bool IsSetCookies() { return this._cookies != null; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An object that determines whether any HTTP headers (and if so, which headers) are /// included in requests that CloudFront sends to the origin. /// </summary> public partial class OriginRequestPolicyHeadersConfig { private OriginRequestPolicyHeaderBehavior _headerBehavior; private Headers _headers; /// <summary> /// Gets and sets the property HeaderBehavior. /// <para> /// Determines whether any HTTP headers are included in requests that CloudFront sends /// to the origin. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>none</code> – No HTTP headers in viewer requests are included in requests that /// CloudFront sends to the origin. Even when this field is set to <code>none</code>, /// any headers that are listed in a <code>CachePolicy</code> <i>are</i> included in origin /// requests. /// </para> /// </li> <li> /// <para> /// <code>whitelist</code> – Only the HTTP headers that are listed in the <code>Headers</code> /// type are included in requests that CloudFront sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>allViewer</code> – All HTTP headers in viewer requests are included in requests /// that CloudFront sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>allViewerAndWhitelistCloudFront</code> – All HTTP headers in viewer requests /// and the additional CloudFront headers that are listed in the <code>Headers</code> /// type are included in requests that CloudFront sends to the origin. The additional /// headers are added by CloudFront. /// </para> /// </li> <li> /// <para> /// <code>allExcept</code> – All HTTP headers in viewer requests are included in requests /// that CloudFront sends to the origin, <i> <b>except</b> </i> for those listed in the /// <code>Headers</code> type, which are not included. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyHeaderBehavior HeaderBehavior { get { return this._headerBehavior; } set { this._headerBehavior = value; } } // Check to see if HeaderBehavior property is set internal bool IsSetHeaderBehavior() { return this._headerBehavior != null; } /// <summary> /// Gets and sets the property Headers. /// </summary> public Headers Headers { get { return this._headers; } set { this._headers = value; } } // Check to see if Headers property is set internal bool IsSetHeaders() { return this._headers != null; } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete the origin request policy because it is attached to one or more cache /// behaviors. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class OriginRequestPolicyInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new OriginRequestPolicyInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public OriginRequestPolicyInUseException(string message) : base(message) {} /// <summary> /// Construct instance of OriginRequestPolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public OriginRequestPolicyInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of OriginRequestPolicyInUseException /// </summary> /// <param name="innerException"></param> public OriginRequestPolicyInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of OriginRequestPolicyInUseException /// </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 OriginRequestPolicyInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of OriginRequestPolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public OriginRequestPolicyInUseException(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 OriginRequestPolicyInUseException 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 OriginRequestPolicyInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of origin request policies. /// </summary> public partial class OriginRequestPolicyList { private List<OriginRequestPolicySummary> _items = new List<OriginRequestPolicySummary>(); private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// Contains the origin request policies in the list. /// </para> /// </summary> public List<OriginRequestPolicySummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of origin request policies requested. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more items in the list than are in this response, this element is present. /// It contains the value that you should use in the <code>Marker</code> field of a subsequent /// request to continue listing origin request policies where you left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The total number of origin request policies returned in the response. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An object that determines whether any URL query strings in viewer requests (and if /// so, which query strings) are included in requests that CloudFront sends to the origin. /// </summary> public partial class OriginRequestPolicyQueryStringsConfig { private OriginRequestPolicyQueryStringBehavior _queryStringBehavior; private QueryStringNames _queryStrings; /// <summary> /// Gets and sets the property QueryStringBehavior. /// <para> /// Determines whether any URL query strings in viewer requests are included in requests /// that CloudFront sends to the origin. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>none</code> – No query strings in viewer requests are included in requests /// that CloudFront sends to the origin. Even when this field is set to <code>none</code>, /// any query strings that are listed in a <code>CachePolicy</code> <i>are</i> included /// in origin requests. /// </para> /// </li> <li> /// <para> /// <code>whitelist</code> – Only the query strings in viewer requests that are listed /// in the <code>QueryStringNames</code> type are included in requests that CloudFront /// sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>all</code> – All query strings in viewer requests are included in requests /// that CloudFront sends to the origin. /// </para> /// </li> <li> /// <para> /// <code>allExcept</code> – All query strings in viewer requests are included in requests /// that CloudFront sends to the origin, <i> <b>except</b> </i> for those listed in the /// <code>QueryStringNames</code> type, which are not included. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyQueryStringBehavior QueryStringBehavior { get { return this._queryStringBehavior; } set { this._queryStringBehavior = value; } } // Check to see if QueryStringBehavior property is set internal bool IsSetQueryStringBehavior() { return this._queryStringBehavior != null; } /// <summary> /// Gets and sets the property QueryStrings. /// <para> /// Contains the specific query strings in viewer requests that either <i> <b>are</b> /// </i> or <i> <b>are not</b> </i> included in requests that CloudFront sends to the /// origin. The behavior depends on whether the <code>QueryStringBehavior</code> field /// in the <code>OriginRequestPolicyQueryStringsConfig</code> type is set to <code>whitelist</code> /// (the listed query strings <i> <b>are</b> </i> included) or <code>allExcept</code> /// (the listed query strings <i> <b>are not</b> </i> included, but all other query strings /// are). /// </para> /// </summary> public QueryStringNames QueryStrings { get { return this._queryStrings; } set { this._queryStrings = value; } } // Check to see if QueryStrings property is set internal bool IsSetQueryStrings() { return this._queryStrings != null; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Contains an origin request policy. /// </summary> public partial class OriginRequestPolicySummary { private OriginRequestPolicy _originRequestPolicy; private OriginRequestPolicyType _type; /// <summary> /// Gets and sets the property OriginRequestPolicy. /// <para> /// The origin request policy. /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicy OriginRequestPolicy { get { return this._originRequestPolicy; } set { this._originRequestPolicy = value; } } // Check to see if OriginRequestPolicy property is set internal bool IsSetOriginRequestPolicy() { return this._originRequestPolicy != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of origin request policy, either <code>managed</code> (created by Amazon /// Web Services) or <code>custom</code> (created in this Amazon Web Services account). /// </para> /// </summary> [AWSProperty(Required=true)] public OriginRequestPolicyType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Contains information about the origins for this distribution. /// </summary> public partial class Origins { private List<Origin> _items = new List<Origin>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A list of origins. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public List<Origin> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of origins for this distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// CloudFront Origin Shield. /// /// /// <para> /// Using Origin Shield can help reduce the load on your origin. For more information, /// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html">Using /// Origin Shield</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public partial class OriginShield { private bool? _enabled; private string _originShieldRegion; /// <summary> /// Gets and sets the property Enabled. /// <para> /// A flag that specifies whether Origin Shield is enabled. /// </para> /// /// <para> /// When it's enabled, CloudFront routes all requests through Origin Shield, which can /// help protect your origin. When it's disabled, CloudFront might send requests directly /// to your origin from multiple edge locations or regional edge caches. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property OriginShieldRegion. /// <para> /// The Amazon Web Services Region for Origin Shield. /// </para> /// /// <para> /// Specify the Amazon Web Services Region that has the lowest latency to your origin. /// To specify a region, use the region code, not the region name. For example, specify /// the US East (Ohio) region as <code>us-east-2</code>. /// </para> /// /// <para> /// When you enable CloudFront Origin Shield, you must specify the Amazon Web Services /// Region for Origin Shield. For the list of Amazon Web Services Regions that you can /// specify, and for help choosing the best Region for your origin, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region">Choosing /// the Amazon Web Services Region for Origin Shield</a> in the <i>Amazon CloudFront Developer /// Guide</i>. /// </para> /// </summary> [AWSProperty(Min=1, Max=32)] public string OriginShieldRegion { get { return this._originShieldRegion; } set { this._originShieldRegion = value; } } // Check to see if OriginShieldRegion property is set internal bool IsSetOriginShieldRegion() { return this._originShieldRegion != null; } } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains information about the SSL/TLS protocols that CloudFront /// can use when establishing an HTTPS connection with your origin. /// </summary> public partial class OriginSslProtocols { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A list that contains allowed SSL/TLS protocols for this distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing /// an HTTPS connection with this origin. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// This object determines the values that CloudFront includes in the cache key. These /// values can include HTTP headers, cookies, and URL query strings. CloudFront uses the /// cache key to find an object in its cache that it can return to the viewer. /// /// /// <para> /// The headers, cookies, and query strings that are included in the cache key are also /// included in requests that CloudFront sends to the origin. CloudFront sends a request /// when it can't find an object in its cache that matches the request's cache key. If /// you want to send values to the origin but <i>not</i> include them in the cache key, /// use <code>OriginRequestPolicy</code>. /// </para> /// </summary> public partial class ParametersInCacheKeyAndForwardedToOrigin { private CachePolicyCookiesConfig _cookiesConfig; private bool? _enableAcceptEncodingBrotli; private bool? _enableAcceptEncodingGzip; private CachePolicyHeadersConfig _headersConfig; private CachePolicyQueryStringsConfig _queryStringsConfig; /// <summary> /// Gets and sets the property CookiesConfig. /// <para> /// An object that determines whether any cookies in viewer requests (and if so, which /// cookies) are included in the cache key and in requests that CloudFront sends to the /// origin. /// </para> /// </summary> [AWSProperty(Required=true)] public CachePolicyCookiesConfig CookiesConfig { get { return this._cookiesConfig; } set { this._cookiesConfig = value; } } // Check to see if CookiesConfig property is set internal bool IsSetCookiesConfig() { return this._cookiesConfig != null; } /// <summary> /// Gets and sets the property EnableAcceptEncodingBrotli. /// <para> /// A flag that can affect whether the <code>Accept-Encoding</code> HTTP header is included /// in the cache key and included in requests that CloudFront sends to the origin. /// </para> /// /// <para> /// This field is related to the <code>EnableAcceptEncodingGzip</code> field. If one or /// both of these fields is <code>true</code> <i>and</i> the viewer request includes the /// <code>Accept-Encoding</code> header, then CloudFront does the following: /// </para> /// <ul> <li> /// <para> /// Normalizes the value of the viewer's <code>Accept-Encoding</code> header /// </para> /// </li> <li> /// <para> /// Includes the normalized header in the cache key /// </para> /// </li> <li> /// <para> /// Includes the normalized header in the request to the origin, if a request is necessary /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects">Compression /// support</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// If you set this value to <code>true</code>, and this cache behavior also has an origin /// request policy attached, do not include the <code>Accept-Encoding</code> header in /// the origin request policy. CloudFront always includes the <code>Accept-Encoding</code> /// header in origin requests when the value of this field is <code>true</code>, so including /// this header in an origin request policy has no effect. /// </para> /// /// <para> /// If both of these fields are <code>false</code>, then CloudFront treats the <code>Accept-Encoding</code> /// header the same as any other HTTP header in the viewer request. By default, it's not /// included in the cache key and it's not included in origin requests. In this case, /// you can manually add <code>Accept-Encoding</code> to the headers whitelist like any /// other HTTP header. /// </para> /// </summary> public bool EnableAcceptEncodingBrotli { get { return this._enableAcceptEncodingBrotli.GetValueOrDefault(); } set { this._enableAcceptEncodingBrotli = value; } } // Check to see if EnableAcceptEncodingBrotli property is set internal bool IsSetEnableAcceptEncodingBrotli() { return this._enableAcceptEncodingBrotli.HasValue; } /// <summary> /// Gets and sets the property EnableAcceptEncodingGzip. /// <para> /// A flag that can affect whether the <code>Accept-Encoding</code> HTTP header is included /// in the cache key and included in requests that CloudFront sends to the origin. /// </para> /// /// <para> /// This field is related to the <code>EnableAcceptEncodingBrotli</code> field. If one /// or both of these fields is <code>true</code> <i>and</i> the viewer request includes /// the <code>Accept-Encoding</code> header, then CloudFront does the following: /// </para> /// <ul> <li> /// <para> /// Normalizes the value of the viewer's <code>Accept-Encoding</code> header /// </para> /// </li> <li> /// <para> /// Includes the normalized header in the cache key /// </para> /// </li> <li> /// <para> /// Includes the normalized header in the request to the origin, if a request is necessary /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects">Compression /// support</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// If you set this value to <code>true</code>, and this cache behavior also has an origin /// request policy attached, do not include the <code>Accept-Encoding</code> header in /// the origin request policy. CloudFront always includes the <code>Accept-Encoding</code> /// header in origin requests when the value of this field is <code>true</code>, so including /// this header in an origin request policy has no effect. /// </para> /// /// <para> /// If both of these fields are <code>false</code>, then CloudFront treats the <code>Accept-Encoding</code> /// header the same as any other HTTP header in the viewer request. By default, it's not /// included in the cache key and it's not included in origin requests. In this case, /// you can manually add <code>Accept-Encoding</code> to the headers whitelist like any /// other HTTP header. /// </para> /// </summary> [AWSProperty(Required=true)] public bool EnableAcceptEncodingGzip { get { return this._enableAcceptEncodingGzip.GetValueOrDefault(); } set { this._enableAcceptEncodingGzip = value; } } // Check to see if EnableAcceptEncodingGzip property is set internal bool IsSetEnableAcceptEncodingGzip() { return this._enableAcceptEncodingGzip.HasValue; } /// <summary> /// Gets and sets the property HeadersConfig. /// <para> /// An object that determines whether any HTTP headers (and if so, which headers) are /// included in the cache key and in requests that CloudFront sends to the origin. /// </para> /// </summary> [AWSProperty(Required=true)] public CachePolicyHeadersConfig HeadersConfig { get { return this._headersConfig; } set { this._headersConfig = value; } } // Check to see if HeadersConfig property is set internal bool IsSetHeadersConfig() { return this._headersConfig != null; } /// <summary> /// Gets and sets the property QueryStringsConfig. /// <para> /// An object that determines whether any URL query strings in viewer requests (and if /// so, which query strings) are included in the cache key and in requests that CloudFront /// sends to the origin. /// </para> /// </summary> [AWSProperty(Required=true)] public CachePolicyQueryStringsConfig QueryStringsConfig { get { return this._queryStringsConfig; } set { this._queryStringsConfig = value; } } // Check to see if QueryStringsConfig property is set internal bool IsSetQueryStringsConfig() { return this._queryStringsConfig != null; } } }
233
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains information about the objects that you want to invalidate. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects">Specifying /// the Objects to Invalidate</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </summary> public partial class Paths { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains a list of the paths that you want to invalidate. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of invalidation paths specified for the objects that you want to invalidate. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The precondition in one or more of the request fields evaluated to <code>false</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class PreconditionFailedException : AmazonCloudFrontException { /// <summary> /// Constructs a new PreconditionFailedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public PreconditionFailedException(string message) : base(message) {} /// <summary> /// Construct instance of PreconditionFailedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public PreconditionFailedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of PreconditionFailedException /// </summary> /// <param name="innerException"></param> public PreconditionFailedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of PreconditionFailedException /// </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 PreconditionFailedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of PreconditionFailedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PreconditionFailedException(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 PreconditionFailedException 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 PreconditionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A public key that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed /// URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level /// encryption</a>. /// </summary> public partial class PublicKey { private DateTime? _createdTime; private string _id; private PublicKeyConfig _publicKeyConfig; /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// The date and time when the public key was uploaded. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of the public key. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property PublicKeyConfig. /// <para> /// Configuration information about a public key that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed /// URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level /// encryption</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public PublicKeyConfig PublicKeyConfig { get { return this._publicKeyConfig; } set { this._publicKeyConfig = value; } } // Check to see if PublicKeyConfig property is set internal bool IsSetPublicKeyConfig() { return this._publicKeyConfig != null; } } }
102
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified public key already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class PublicKeyAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new PublicKeyAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public PublicKeyAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of PublicKeyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public PublicKeyAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of PublicKeyAlreadyExistsException /// </summary> /// <param name="innerException"></param> public PublicKeyAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of PublicKeyAlreadyExistsException /// </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 PublicKeyAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of PublicKeyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PublicKeyAlreadyExistsException(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 PublicKeyAlreadyExistsException 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 PublicKeyAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Configuration information about a public key that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed /// URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level /// encryption</a>. /// </summary> public partial class PublicKeyConfig { private string _callerReference; private string _comment; private string _encodedKey; private string _name; /// <summary> /// Gets and sets the property CallerReference. /// <para> /// A string included in the request to help make sure that the request can't be replayed. /// </para> /// </summary> [AWSProperty(Required=true)] public string CallerReference { get { return this._callerReference; } set { this._callerReference = value; } } // Check to see if CallerReference property is set internal bool IsSetCallerReference() { return this._callerReference != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment to describe the public key. The comment cannot be longer than 128 characters. /// </para> /// </summary> public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property EncodedKey. /// <para> /// The public key that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed /// URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level /// encryption</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string EncodedKey { get { return this._encodedKey; } set { this._encodedKey = value; } } // Check to see if EncodedKey property is set internal bool IsSetEncodedKey() { return this._encodedKey != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name to help identify the public key. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified public key is in use. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class PublicKeyInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new PublicKeyInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public PublicKeyInUseException(string message) : base(message) {} /// <summary> /// Construct instance of PublicKeyInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public PublicKeyInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of PublicKeyInUseException /// </summary> /// <param name="innerException"></param> public PublicKeyInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of PublicKeyInUseException /// </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 PublicKeyInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of PublicKeyInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PublicKeyInUseException(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 PublicKeyInUseException 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 PublicKeyInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of public keys that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed /// URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level /// encryption</a>. /// </summary> public partial class PublicKeyList { private List<PublicKeySummary> _items = new List<PublicKeySummary>(); private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A list of public keys. /// </para> /// </summary> public List<PublicKeySummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of public keys you want in the response. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more elements to be listed, this element is present and contains the /// value that you can use for the <code>Marker</code> request parameter to continue listing /// your public keys where you left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of public keys in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Contains information about a public key. /// </summary> public partial class PublicKeySummary { private string _comment; private DateTime? _createdTime; private string _encodedKey; private string _id; private string _name; /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment to describe the public key. The comment cannot be longer than 128 characters. /// </para> /// </summary> public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// The date and time when the public key was uploaded. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// <summary> /// Gets and sets the property EncodedKey. /// <para> /// The public key. /// </para> /// </summary> [AWSProperty(Required=true)] public string EncodedKey { get { return this._encodedKey; } set { this._encodedKey = value; } } // Check to see if EncodedKey property is set internal bool IsSetEncodedKey() { return this._encodedKey != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier of the public key. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name to help identify the public key. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Container for the parameters to the PublishFunction operation. /// Publishes a CloudFront function by copying the function code from the <code>DEVELOPMENT</code> /// stage to <code>LIVE</code>. This automatically updates all cache behaviors that are /// using this function to use the newly published copy in the <code>LIVE</code> stage. /// /// /// <para> /// When a function is published to the <code>LIVE</code> stage, you can attach the function /// to a distribution's cache behavior, using the function's Amazon Resource Name (ARN). /// </para> /// /// <para> /// To publish a function, you must provide the function's name and version (<code>ETag</code> /// value). To get these values, you can use <code>ListFunctions</code> and <code>DescribeFunction</code>. /// </para> /// </summary> public partial class PublishFunctionRequest : AmazonCloudFrontRequest { private string _ifMatch; private string _name; /// <summary> /// Gets and sets the property IfMatch. /// <para> /// The current version (<code>ETag</code> value) of the function that you are publishing, /// which you can get using <code>DescribeFunction</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string IfMatch { get { return this._ifMatch; } set { this._ifMatch = value; } } // Check to see if IfMatch property is set internal bool IsSetIfMatch() { return this._ifMatch != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the function that you are publishing. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
93
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// This is the response object from the PublishFunction operation. /// </summary> public partial class PublishFunctionResponse : AmazonWebServiceResponse { private FunctionSummary _functionSummary; /// <summary> /// Gets and sets the property FunctionSummary. /// <para> /// Contains configuration information and metadata about a CloudFront function. /// </para> /// </summary> public FunctionSummary FunctionSummary { get { return this._functionSummary; } set { this._functionSummary = value; } } // Check to see if FunctionSummary property is set internal bool IsSetFunctionSummary() { return this._functionSummary != 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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Query argument-profile mapping for field-level encryption. /// </summary> public partial class QueryArgProfile { private string _profileId; private string _queryArg; /// <summary> /// Gets and sets the property ProfileId. /// <para> /// ID of profile to use for field-level encryption query argument-profile mapping /// </para> /// </summary> [AWSProperty(Required=true)] public string ProfileId { get { return this._profileId; } set { this._profileId = value; } } // Check to see if ProfileId property is set internal bool IsSetProfileId() { return this._profileId != null; } /// <summary> /// Gets and sets the property QueryArg. /// <para> /// Query argument for field-level encryption query argument-profile mapping. /// </para> /// </summary> [AWSProperty(Required=true)] public string QueryArg { get { return this._queryArg; } set { this._queryArg = value; } } // Check to see if QueryArg property is set internal bool IsSetQueryArg() { return this._queryArg != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Configuration for query argument-profile mapping for field-level encryption. /// </summary> public partial class QueryArgProfileConfig { private bool? _forwardWhenQueryArgProfileIsUnknown; private QueryArgProfiles _queryArgProfiles; /// <summary> /// Gets and sets the property ForwardWhenQueryArgProfileIsUnknown. /// <para> /// Flag to set if you want a request to be forwarded to the origin even if the profile /// specified by the field-level encryption query argument, fle-profile, is unknown. /// </para> /// </summary> [AWSProperty(Required=true)] public bool ForwardWhenQueryArgProfileIsUnknown { get { return this._forwardWhenQueryArgProfileIsUnknown.GetValueOrDefault(); } set { this._forwardWhenQueryArgProfileIsUnknown = value; } } // Check to see if ForwardWhenQueryArgProfileIsUnknown property is set internal bool IsSetForwardWhenQueryArgProfileIsUnknown() { return this._forwardWhenQueryArgProfileIsUnknown.HasValue; } /// <summary> /// Gets and sets the property QueryArgProfiles. /// <para> /// Profiles specified for query argument-profile mapping for field-level encryption. /// </para> /// </summary> public QueryArgProfiles QueryArgProfiles { get { return this._queryArgProfiles; } set { this._queryArgProfiles = value; } } // Check to see if QueryArgProfiles property is set internal bool IsSetQueryArgProfiles() { return this._queryArgProfiles != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// No profile specified for the field-level encryption query argument. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class QueryArgProfileEmptyException : AmazonCloudFrontException { /// <summary> /// Constructs a new QueryArgProfileEmptyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public QueryArgProfileEmptyException(string message) : base(message) {} /// <summary> /// Construct instance of QueryArgProfileEmptyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public QueryArgProfileEmptyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of QueryArgProfileEmptyException /// </summary> /// <param name="innerException"></param> public QueryArgProfileEmptyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of QueryArgProfileEmptyException /// </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 QueryArgProfileEmptyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of QueryArgProfileEmptyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public QueryArgProfileEmptyException(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 QueryArgProfileEmptyException 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 QueryArgProfileEmptyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Query argument-profile mapping for field-level encryption. /// </summary> public partial class QueryArgProfiles { private List<QueryArgProfile> _items = new List<QueryArgProfile>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// Number of items for query argument-profile mapping for field-level encryption. /// </para> /// </summary> public List<QueryArgProfile> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// Number of profiles for query argument-profile mapping for field-level encryption. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// This field is deprecated. We recommend that you use a cache policy or an origin request /// policy instead of this field. /// /// /// <para> /// If you want to include query strings in the cache key, use <code>QueryStringsConfig</code> /// in a cache policy. See <code>CachePolicy</code>. /// </para> /// /// <para> /// If you want to send query strings to the origin but not include them in the cache /// key, use <code>QueryStringsConfig</code> in an origin request policy. See <code>OriginRequestPolicy</code>. /// </para> /// /// <para> /// A complex type that contains information about the query string parameters that you /// want CloudFront to use for caching for a cache behavior. /// </para> /// </summary> public partial class QueryStringCacheKeys { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A list that contains the query string parameters that you want CloudFront to use as /// a basis for caching for a cache behavior. If <code>Quantity</code> is 0, you can omit /// <code>Items</code>. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of <code>whitelisted</code> query string parameters for a cache behavior. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Contains a list of query string names. /// </summary> public partial class QueryStringNames { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// A list of query string names. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of query string names in the <code>Items</code> list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A real-time log configuration. /// </summary> public partial class RealtimeLogConfig { private string _arn; private List<EndPoint> _endPoints = new List<EndPoint>(); private List<string> _fields = new List<string>(); private string _name; private long? _samplingRate; /// <summary> /// Gets and sets the property ARN. /// <para> /// The Amazon Resource Name (ARN) of this real-time log configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public string ARN { get { return this._arn; } set { this._arn = value; } } // Check to see if ARN property is set internal bool IsSetARN() { return this._arn != null; } /// <summary> /// Gets and sets the property EndPoints. /// <para> /// Contains information about the Amazon Kinesis data stream where you are sending real-time /// log data for this real-time log configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public List<EndPoint> EndPoints { get { return this._endPoints; } set { this._endPoints = value; } } // Check to see if EndPoints property is set internal bool IsSetEndPoints() { return this._endPoints != null && this._endPoints.Count > 0; } /// <summary> /// Gets and sets the property Fields. /// <para> /// A list of fields that are included in each real-time log record. In an API response, /// the fields are provided in the same order in which they are sent to the Amazon Kinesis /// data stream. /// </para> /// /// <para> /// For more information about fields, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields">Real-time /// log configuration fields</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The unique name of this real-time log configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property SamplingRate. /// <para> /// The sampling rate for this real-time log configuration. The sampling rate determines /// the percentage of viewer requests that are represented in the real-time log data. /// The sampling rate is an integer between 1 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Required=true)] public long SamplingRate { get { return this._samplingRate.GetValueOrDefault(); } set { this._samplingRate = value; } } // Check to see if SamplingRate property is set internal bool IsSetSamplingRate() { return this._samplingRate.HasValue; } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A real-time log configuration with this name already exists. You must provide a unique /// name. To modify an existing real-time log configuration, use <code>UpdateRealtimeLogConfig</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RealtimeLogConfigAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new RealtimeLogConfigAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RealtimeLogConfigAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of RealtimeLogConfigAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RealtimeLogConfigAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigAlreadyExistsException /// </summary> /// <param name="innerException"></param> public RealtimeLogConfigAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigAlreadyExistsException /// </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 RealtimeLogConfigAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RealtimeLogConfigAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RealtimeLogConfigAlreadyExistsException(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 RealtimeLogConfigAlreadyExistsException 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 RealtimeLogConfigAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete the real-time log configuration because it is attached to one or more /// cache behaviors. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RealtimeLogConfigInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new RealtimeLogConfigInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RealtimeLogConfigInUseException(string message) : base(message) {} /// <summary> /// Construct instance of RealtimeLogConfigInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RealtimeLogConfigInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigInUseException /// </summary> /// <param name="innerException"></param> public RealtimeLogConfigInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigInUseException /// </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 RealtimeLogConfigInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RealtimeLogConfigInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RealtimeLogConfigInUseException(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 RealtimeLogConfigInUseException 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 RealtimeLogConfigInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified real-time log configuration belongs to a different Amazon Web Services /// account. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RealtimeLogConfigOwnerMismatchException : AmazonCloudFrontException { /// <summary> /// Constructs a new RealtimeLogConfigOwnerMismatchException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RealtimeLogConfigOwnerMismatchException(string message) : base(message) {} /// <summary> /// Construct instance of RealtimeLogConfigOwnerMismatchException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RealtimeLogConfigOwnerMismatchException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigOwnerMismatchException /// </summary> /// <param name="innerException"></param> public RealtimeLogConfigOwnerMismatchException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RealtimeLogConfigOwnerMismatchException /// </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 RealtimeLogConfigOwnerMismatchException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RealtimeLogConfigOwnerMismatchException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RealtimeLogConfigOwnerMismatchException(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 RealtimeLogConfigOwnerMismatchException 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 RealtimeLogConfigOwnerMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of real-time log configurations. /// </summary> public partial class RealtimeLogConfigs { private bool? _isTruncated; private List<RealtimeLogConfig> _items = new List<RealtimeLogConfig>(); private string _marker; private int? _maxItems; private string _nextMarker; /// <summary> /// Gets and sets the property IsTruncated. /// <para> /// A flag that indicates whether there are more real-time log configurations than are /// contained in this list. /// </para> /// </summary> [AWSProperty(Required=true)] public bool IsTruncated { get { return this._isTruncated.GetValueOrDefault(); } set { this._isTruncated = value; } } // Check to see if IsTruncated property is set internal bool IsSetIsTruncated() { return this._isTruncated.HasValue; } /// <summary> /// Gets and sets the property Items. /// <para> /// Contains the list of real-time log configurations. /// </para> /// </summary> public List<RealtimeLogConfig> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Marker. /// <para> /// This parameter indicates where this list of real-time log configurations begins. This /// list includes real-time log configurations that occur after the marker. /// </para> /// </summary> [AWSProperty(Required=true)] public string Marker { get { return this._marker; } set { this._marker = value; } } // Check to see if Marker property is set internal bool IsSetMarker() { return this._marker != null; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of real-time log configurations requested. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more items in the list than are in this response, this element is present. /// It contains the value that you should use in the <code>Marker</code> field of a subsequent /// request to continue listing real-time log configurations where you left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A subscription configuration for additional CloudWatch metrics. /// </summary> public partial class RealtimeMetricsSubscriptionConfig { private RealtimeMetricsSubscriptionStatus _realtimeMetricsSubscriptionStatus; /// <summary> /// Gets and sets the property RealtimeMetricsSubscriptionStatus. /// <para> /// A flag that indicates whether additional CloudWatch metrics are enabled for a given /// CloudFront distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public RealtimeMetricsSubscriptionStatus RealtimeMetricsSubscriptionStatus { get { return this._realtimeMetricsSubscriptionStatus; } set { this._realtimeMetricsSubscriptionStatus = value; } } // Check to see if RealtimeMetricsSubscriptionStatus property is set internal bool IsSetRealtimeMetricsSubscriptionStatus() { return this._realtimeMetricsSubscriptionStatus != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete this resource because it is in use. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new ResourceInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceInUseException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="innerException"></param> public ResourceInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceInUseException /// </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 ResourceInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceInUseException(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 ResourceInUseException 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 ResourceInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A response headers policy. /// /// /// <para> /// A response headers policy contains information about a set of HTTP response headers. /// </para> /// /// <para> /// After you create a response headers policy, you can use its ID to attach it to one /// or more cache behaviors in a CloudFront distribution. When it's attached to a cache /// behavior, the response headers policy affects the HTTP headers that CloudFront includes /// in HTTP responses to requests that match the cache behavior. CloudFront adds or removes /// response headers according to the configuration of the response headers policy. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html">Adding /// or removing HTTP headers in CloudFront responses</a> in the <i>Amazon CloudFront Developer /// Guide</i>. /// </para> /// </summary> public partial class ResponseHeadersPolicy { private string _id; private DateTime? _lastModifiedTime; private ResponseHeadersPolicyConfig _responseHeadersPolicyConfig; /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the response headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The date and time when the response headers policy was last modified. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property ResponseHeadersPolicyConfig. /// <para> /// A response headers policy configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicyConfig ResponseHeadersPolicyConfig { get { return this._responseHeadersPolicyConfig; } set { this._responseHeadersPolicyConfig = value; } } // Check to see if ResponseHeadersPolicyConfig property is set internal bool IsSetResponseHeadersPolicyConfig() { return this._responseHeadersPolicyConfig != null; } } }
117
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of HTTP header names that CloudFront includes as values for the <code>Access-Control-Allow-Headers</code> /// HTTP response header. /// /// /// <para> /// For more information about the <code>Access-Control-Allow-Headers</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers">Access-Control-Allow-Headers</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyAccessControlAllowHeaders { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of HTTP header names. You can specify <code>*</code> to allow all headers. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP header names in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of HTTP methods that CloudFront includes as values for the <code>Access-Control-Allow-Methods</code> /// HTTP response header. /// /// /// <para> /// For more information about the <code>Access-Control-Allow-Methods</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods">Access-Control-Allow-Methods</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyAccessControlAllowMethods { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of HTTP methods. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>GET</code> /// </para> /// </li> <li> /// <para> /// <code>DELETE</code> /// </para> /// </li> <li> /// <para> /// <code>HEAD</code> /// </para> /// </li> <li> /// <para> /// <code>OPTIONS</code> /// </para> /// </li> <li> /// <para> /// <code>PATCH</code> /// </para> /// </li> <li> /// <para> /// <code>POST</code> /// </para> /// </li> <li> /// <para> /// <code>PUT</code> /// </para> /// </li> <li> /// <para> /// <code>ALL</code> /// </para> /// </li> </ul> /// <para> /// <code>ALL</code> is a special value that includes all of the listed HTTP methods. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP methods in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of origins (domain names) that CloudFront can use as the value for the <code>Access-Control-Allow-Origin</code> /// HTTP response header. /// /// /// <para> /// For more information about the <code>Access-Control-Allow-Origin</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyAccessControlAllowOrigins { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of origins (domain names). You can specify <code>*</code> to allow all origins. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of origins in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of HTTP headers that CloudFront includes as values for the <code>Access-Control-Expose-Headers</code> /// HTTP response header. /// /// /// <para> /// For more information about the <code>Access-Control-Expose-Headers</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyAccessControlExposeHeaders { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of HTTP headers. You can specify <code>*</code> to expose all headers. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP headers in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A response headers policy with this name already exists. You must provide a unique /// name. To modify an existing response headers policy, use <code>UpdateResponseHeadersPolicy</code>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResponseHeadersPolicyAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new ResponseHeadersPolicyAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResponseHeadersPolicyAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of ResponseHeadersPolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResponseHeadersPolicyAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResponseHeadersPolicyAlreadyExistsException /// </summary> /// <param name="innerException"></param> public ResponseHeadersPolicyAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResponseHeadersPolicyAlreadyExistsException /// </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 ResponseHeadersPolicyAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResponseHeadersPolicyAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResponseHeadersPolicyAlreadyExistsException(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 ResponseHeadersPolicyAlreadyExistsException 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 ResponseHeadersPolicyAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A response headers policy configuration. /// /// /// <para> /// A response headers policy configuration contains metadata about the response headers /// policy, and configurations for sets of HTTP response headers. /// </para> /// </summary> public partial class ResponseHeadersPolicyConfig { private string _comment; private ResponseHeadersPolicyCorsConfig _corsConfig; private ResponseHeadersPolicyCustomHeadersConfig _customHeadersConfig; private string _name; private ResponseHeadersPolicyRemoveHeadersConfig _removeHeadersConfig; private ResponseHeadersPolicySecurityHeadersConfig _securityHeadersConfig; private ResponseHeadersPolicyServerTimingHeadersConfig _serverTimingHeadersConfig; /// <summary> /// Gets and sets the property Comment. /// <para> /// A comment to describe the response headers policy. /// </para> /// /// <para> /// The comment cannot be longer than 128 characters. /// </para> /// </summary> public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property CorsConfig. /// <para> /// A configuration for a set of HTTP response headers that are used for cross-origin /// resource sharing (CORS). /// </para> /// </summary> public ResponseHeadersPolicyCorsConfig CorsConfig { get { return this._corsConfig; } set { this._corsConfig = value; } } // Check to see if CorsConfig property is set internal bool IsSetCorsConfig() { return this._corsConfig != null; } /// <summary> /// Gets and sets the property CustomHeadersConfig. /// <para> /// A configuration for a set of custom HTTP response headers. /// </para> /// </summary> public ResponseHeadersPolicyCustomHeadersConfig CustomHeadersConfig { get { return this._customHeadersConfig; } set { this._customHeadersConfig = value; } } // Check to see if CustomHeadersConfig property is set internal bool IsSetCustomHeadersConfig() { return this._customHeadersConfig != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name to identify the response headers policy. /// </para> /// /// <para> /// The name must be unique for response headers policies in this Amazon Web Services /// account. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property RemoveHeadersConfig. /// <para> /// A configuration for a set of HTTP headers to remove from the HTTP response. /// </para> /// </summary> public ResponseHeadersPolicyRemoveHeadersConfig RemoveHeadersConfig { get { return this._removeHeadersConfig; } set { this._removeHeadersConfig = value; } } // Check to see if RemoveHeadersConfig property is set internal bool IsSetRemoveHeadersConfig() { return this._removeHeadersConfig != null; } /// <summary> /// Gets and sets the property SecurityHeadersConfig. /// <para> /// A configuration for a set of security-related HTTP response headers. /// </para> /// </summary> public ResponseHeadersPolicySecurityHeadersConfig SecurityHeadersConfig { get { return this._securityHeadersConfig; } set { this._securityHeadersConfig = value; } } // Check to see if SecurityHeadersConfig property is set internal bool IsSetSecurityHeadersConfig() { return this._securityHeadersConfig != null; } /// <summary> /// Gets and sets the property ServerTimingHeadersConfig. /// <para> /// A configuration for enabling the <code>Server-Timing</code> header in HTTP responses /// sent from CloudFront. /// </para> /// </summary> public ResponseHeadersPolicyServerTimingHeadersConfig ServerTimingHeadersConfig { get { return this._serverTimingHeadersConfig; } set { this._serverTimingHeadersConfig = value; } } // Check to see if ServerTimingHeadersConfig property is set internal bool IsSetServerTimingHeadersConfig() { return this._serverTimingHeadersConfig != null; } } }
189
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The policy directives and their values that CloudFront includes as values for the /// <code>Content-Security-Policy</code> HTTP response header. /// /// /// <para> /// For more information about the <code>Content-Security-Policy</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">Content-Security-Policy</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyContentSecurityPolicy { private string _contentSecurityPolicy; private bool? _override; /// <summary> /// Gets and sets the property ContentSecurityPolicy. /// <para> /// The policy directives and their values that CloudFront includes as values for the /// <code>Content-Security-Policy</code> HTTP response header. /// </para> /// </summary> [AWSProperty(Required=true)] public string ContentSecurityPolicy { get { return this._contentSecurityPolicy; } set { this._contentSecurityPolicy = value; } } // Check to see if ContentSecurityPolicy property is set internal bool IsSetContentSecurityPolicy() { return this._contentSecurityPolicy != null; } /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>Content-Security-Policy</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Determines whether CloudFront includes the <code>X-Content-Type-Options</code> HTTP /// response header with its value set to <code>nosniff</code>. /// /// /// <para> /// For more information about the <code>X-Content-Type-Options</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">X-Content-Type-Options</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyContentTypeOptions { private bool? _override; /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>X-Content-Type-Options</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A configuration for a set of HTTP response headers that are used for cross-origin /// resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends /// for CORS requests that match a cache behavior associated with this response headers /// policy. /// /// /// <para> /// For more information about CORS, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">Cross-Origin /// Resource Sharing (CORS)</a> in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyCorsConfig { private bool? _accessControlAllowCredentials; private ResponseHeadersPolicyAccessControlAllowHeaders _accessControlAllowHeaders; private ResponseHeadersPolicyAccessControlAllowMethods _accessControlAllowMethods; private ResponseHeadersPolicyAccessControlAllowOrigins _accessControlAllowOrigins; private ResponseHeadersPolicyAccessControlExposeHeaders _accessControlExposeHeaders; private int? _accessControlMaxAgeSec; private bool? _originOverride; /// <summary> /// Gets and sets the property AccessControlAllowCredentials. /// <para> /// A Boolean that CloudFront uses as the value for the <code>Access-Control-Allow-Credentials</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Allow-Credentials</code> HTTP /// response header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials">Access-Control-Allow-Credentials</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public bool AccessControlAllowCredentials { get { return this._accessControlAllowCredentials.GetValueOrDefault(); } set { this._accessControlAllowCredentials = value; } } // Check to see if AccessControlAllowCredentials property is set internal bool IsSetAccessControlAllowCredentials() { return this._accessControlAllowCredentials.HasValue; } /// <summary> /// Gets and sets the property AccessControlAllowHeaders. /// <para> /// A list of HTTP header names that CloudFront includes as values for the <code>Access-Control-Allow-Headers</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Allow-Headers</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers">Access-Control-Allow-Headers</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicyAccessControlAllowHeaders AccessControlAllowHeaders { get { return this._accessControlAllowHeaders; } set { this._accessControlAllowHeaders = value; } } // Check to see if AccessControlAllowHeaders property is set internal bool IsSetAccessControlAllowHeaders() { return this._accessControlAllowHeaders != null; } /// <summary> /// Gets and sets the property AccessControlAllowMethods. /// <para> /// A list of HTTP methods that CloudFront includes as values for the <code>Access-Control-Allow-Methods</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Allow-Methods</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods">Access-Control-Allow-Methods</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicyAccessControlAllowMethods AccessControlAllowMethods { get { return this._accessControlAllowMethods; } set { this._accessControlAllowMethods = value; } } // Check to see if AccessControlAllowMethods property is set internal bool IsSetAccessControlAllowMethods() { return this._accessControlAllowMethods != null; } /// <summary> /// Gets and sets the property AccessControlAllowOrigins. /// <para> /// A list of origins (domain names) that CloudFront can use as the value for the <code>Access-Control-Allow-Origin</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Allow-Origin</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin">Access-Control-Allow-Origin</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicyAccessControlAllowOrigins AccessControlAllowOrigins { get { return this._accessControlAllowOrigins; } set { this._accessControlAllowOrigins = value; } } // Check to see if AccessControlAllowOrigins property is set internal bool IsSetAccessControlAllowOrigins() { return this._accessControlAllowOrigins != null; } /// <summary> /// Gets and sets the property AccessControlExposeHeaders. /// <para> /// A list of HTTP headers that CloudFront includes as values for the <code>Access-Control-Expose-Headers</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Expose-Headers</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers">Access-Control-Expose-Headers</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyAccessControlExposeHeaders AccessControlExposeHeaders { get { return this._accessControlExposeHeaders; } set { this._accessControlExposeHeaders = value; } } // Check to see if AccessControlExposeHeaders property is set internal bool IsSetAccessControlExposeHeaders() { return this._accessControlExposeHeaders != null; } /// <summary> /// Gets and sets the property AccessControlMaxAgeSec. /// <para> /// A number that CloudFront uses as the value for the <code>Access-Control-Max-Age</code> /// HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Access-Control-Max-Age</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age">Access-Control-Max-Age</a> /// in the MDN Web Docs. /// </para> /// </summary> public int AccessControlMaxAgeSec { get { return this._accessControlMaxAgeSec.GetValueOrDefault(); } set { this._accessControlMaxAgeSec = value; } } // Check to see if AccessControlMaxAgeSec property is set internal bool IsSetAccessControlMaxAgeSec() { return this._accessControlMaxAgeSec.HasValue; } /// <summary> /// Gets and sets the property OriginOverride. /// <para> /// A Boolean that determines whether CloudFront overrides HTTP response headers received /// from the origin with the ones specified in this response headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool OriginOverride { get { return this._originOverride.GetValueOrDefault(); } set { this._originOverride = value; } } // Check to see if OriginOverride property is set internal bool IsSetOriginOverride() { return this._originOverride.HasValue; } } }
228
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// An HTTP response header name and its value. CloudFront includes this header in HTTP /// responses that it sends for requests that match a cache behavior that's associated /// with this response headers policy. /// </summary> public partial class ResponseHeadersPolicyCustomHeader { private string _header; private bool? _override; private string _value; /// <summary> /// Gets and sets the property Header. /// <para> /// The HTTP response header name. /// </para> /// </summary> [AWSProperty(Required=true)] public string Header { get { return this._header; } set { this._header = value; } } // Check to see if Header property is set internal bool IsSetHeader() { return this._header != null; } /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides a response header with the /// same name received from the origin with the header specified here. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value for the HTTP response header. /// </para> /// </summary> [AWSProperty(Required=true)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != 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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of HTTP response header names and their values. CloudFront includes these headers /// in HTTP responses that it sends for requests that match a cache behavior that's associated /// with this response headers policy. /// </summary> public partial class ResponseHeadersPolicyCustomHeadersConfig { private List<ResponseHeadersPolicyCustomHeader> _items = new List<ResponseHeadersPolicyCustomHeader>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of HTTP response headers and their values. /// </para> /// </summary> public List<ResponseHeadersPolicyCustomHeader> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP response headers in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response /// header and the header's value. /// /// /// <para> /// For more information about the <code>X-Frame-Options</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyFrameOptions { private FrameOptionsList _frameOption; private bool? _override; /// <summary> /// Gets and sets the property FrameOption. /// <para> /// The value of the <code>X-Frame-Options</code> HTTP response header. Valid values are /// <code>DENY</code> and <code>SAMEORIGIN</code>. /// </para> /// /// <para> /// For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public FrameOptionsList FrameOption { get { return this._frameOption; } set { this._frameOption = value; } } // Check to see if FrameOption property is set internal bool IsSetFrameOption() { return this._frameOption != null; } /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>X-Frame-Options</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } } }
94
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Cannot delete the response headers policy because it is attached to one or more cache /// behaviors in a CloudFront distribution. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResponseHeadersPolicyInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new ResponseHeadersPolicyInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResponseHeadersPolicyInUseException(string message) : base(message) {} /// <summary> /// Construct instance of ResponseHeadersPolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResponseHeadersPolicyInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResponseHeadersPolicyInUseException /// </summary> /// <param name="innerException"></param> public ResponseHeadersPolicyInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResponseHeadersPolicyInUseException /// </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 ResponseHeadersPolicyInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResponseHeadersPolicyInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResponseHeadersPolicyInUseException(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 ResponseHeadersPolicyInUseException 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 ResponseHeadersPolicyInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of response headers policies. /// </summary> public partial class ResponseHeadersPolicyList { private List<ResponseHeadersPolicySummary> _items = new List<ResponseHeadersPolicySummary>(); private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The response headers policies in the list. /// </para> /// </summary> public List<ResponseHeadersPolicySummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The maximum number of response headers policies requested. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If there are more items in the list than are in this response, this element is present. /// It contains the value that you should use in the <code>Marker</code> field of a subsequent /// request to continue listing response headers policies where you left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of response headers policies returned. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response /// header and the header's value. /// /// /// <para> /// For more information about the <code>Referrer-Policy</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyReferrerPolicy { private bool? _override; private ReferrerPolicyList _referrerPolicy; /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>Referrer-Policy</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } /// <summary> /// Gets and sets the property ReferrerPolicy. /// <para> /// The value of the <code>Referrer-Policy</code> HTTP response header. Valid values are: /// </para> /// <ul> <li> /// <para> /// <code>no-referrer</code> /// </para> /// </li> <li> /// <para> /// <code>no-referrer-when-downgrade</code> /// </para> /// </li> <li> /// <para> /// <code>origin</code> /// </para> /// </li> <li> /// <para> /// <code>origin-when-cross-origin</code> /// </para> /// </li> <li> /// <para> /// <code>same-origin</code> /// </para> /// </li> <li> /// <para> /// <code>strict-origin</code> /// </para> /// </li> <li> /// <para> /// <code>strict-origin-when-cross-origin</code> /// </para> /// </li> <li> /// <para> /// <code>unsafe-url</code> /// </para> /// </li> </ul> /// <para> /// For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public ReferrerPolicyList ReferrerPolicy { get { return this._referrerPolicy; } set { this._referrerPolicy = value; } } // Check to see if ReferrerPolicy property is set internal bool IsSetReferrerPolicy() { return this._referrerPolicy != null; } } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The name of an HTTP header that CloudFront removes from HTTP responses to requests /// that match the cache behavior that this response headers policy is attached to. /// </summary> public partial class ResponseHeadersPolicyRemoveHeader { private string _header; /// <summary> /// Gets and sets the property Header. /// <para> /// The HTTP header name. /// </para> /// </summary> [AWSProperty(Required=true)] public string Header { get { return this._header; } set { this._header = value; } } // Check to see if Header property is set internal bool IsSetHeader() { return this._header != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of HTTP header names that CloudFront removes from HTTP responses to requests /// that match the cache behavior that this response headers policy is attached to. /// </summary> public partial class ResponseHeadersPolicyRemoveHeadersConfig { private List<ResponseHeadersPolicyRemoveHeader> _items = new List<ResponseHeadersPolicyRemoveHeader>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The list of HTTP header names. /// </para> /// </summary> public List<ResponseHeadersPolicyRemoveHeader> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of HTTP header names in the list. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A configuration for a set of security-related HTTP response headers. CloudFront adds /// these headers to HTTP responses that it sends for requests that match a cache behavior /// associated with this response headers policy. /// </summary> public partial class ResponseHeadersPolicySecurityHeadersConfig { private ResponseHeadersPolicyContentSecurityPolicy _contentSecurityPolicy; private ResponseHeadersPolicyContentTypeOptions _contentTypeOptions; private ResponseHeadersPolicyFrameOptions _frameOptions; private ResponseHeadersPolicyReferrerPolicy _referrerPolicy; private ResponseHeadersPolicyStrictTransportSecurity _strictTransportSecurity; private ResponseHeadersPolicyXSSProtection _xssProtection; /// <summary> /// Gets and sets the property ContentSecurityPolicy. /// <para> /// The policy directives and their values that CloudFront includes as values for the /// <code>Content-Security-Policy</code> HTTP response header. /// </para> /// /// <para> /// For more information about the <code>Content-Security-Policy</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">Content-Security-Policy</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyContentSecurityPolicy ContentSecurityPolicy { get { return this._contentSecurityPolicy; } set { this._contentSecurityPolicy = value; } } // Check to see if ContentSecurityPolicy property is set internal bool IsSetContentSecurityPolicy() { return this._contentSecurityPolicy != null; } /// <summary> /// Gets and sets the property ContentTypeOptions. /// <para> /// Determines whether CloudFront includes the <code>X-Content-Type-Options</code> HTTP /// response header with its value set to <code>nosniff</code>. /// </para> /// /// <para> /// For more information about the <code>X-Content-Type-Options</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">X-Content-Type-Options</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyContentTypeOptions ContentTypeOptions { get { return this._contentTypeOptions; } set { this._contentTypeOptions = value; } } // Check to see if ContentTypeOptions property is set internal bool IsSetContentTypeOptions() { return this._contentTypeOptions != null; } /// <summary> /// Gets and sets the property FrameOptions. /// <para> /// Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response /// header and the header's value. /// </para> /// /// <para> /// For more information about the <code>X-Frame-Options</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyFrameOptions FrameOptions { get { return this._frameOptions; } set { this._frameOptions = value; } } // Check to see if FrameOptions property is set internal bool IsSetFrameOptions() { return this._frameOptions != null; } /// <summary> /// Gets and sets the property ReferrerPolicy. /// <para> /// Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response /// header and the header's value. /// </para> /// /// <para> /// For more information about the <code>Referrer-Policy</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyReferrerPolicy ReferrerPolicy { get { return this._referrerPolicy; } set { this._referrerPolicy = value; } } // Check to see if ReferrerPolicy property is set internal bool IsSetReferrerPolicy() { return this._referrerPolicy != null; } /// <summary> /// Gets and sets the property StrictTransportSecurity. /// <para> /// Determines whether CloudFront includes the <code>Strict-Transport-Security</code> /// HTTP response header and the header's value. /// </para> /// /// <para> /// For more information about the <code>Strict-Transport-Security</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyStrictTransportSecurity StrictTransportSecurity { get { return this._strictTransportSecurity; } set { this._strictTransportSecurity = value; } } // Check to see if StrictTransportSecurity property is set internal bool IsSetStrictTransportSecurity() { return this._strictTransportSecurity != null; } /// <summary> /// Gets and sets the property XSSProtection. /// <para> /// Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response /// header and the header's value. /// </para> /// /// <para> /// For more information about the <code>X-XSS-Protection</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> /// in the MDN Web Docs. /// </para> /// </summary> public ResponseHeadersPolicyXSSProtection XSSProtection { get { return this._xssProtection; } set { this._xssProtection = value; } } // Check to see if XSSProtection property is set internal bool IsSetXSSProtection() { return this._xssProtection != null; } } }
196
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A configuration for enabling the <code>Server-Timing</code> header in HTTP responses /// sent from CloudFront. CloudFront adds this header to HTTP responses that it sends /// in response to requests that match a cache behavior that's associated with this response /// headers policy. /// /// /// <para> /// You can use the <code>Server-Timing</code> header to view metrics that can help you /// gain insights about the behavior and performance of CloudFront. For example, you can /// see which cache layer served a cache hit, or the first byte latency from the origin /// when there was a cache miss. You can use the metrics in the <code>Server-Timing</code> /// header to troubleshoot issues or test the efficiency of your CloudFront configuration. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#server-timing-header">Server-Timing /// header</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> public partial class ResponseHeadersPolicyServerTimingHeadersConfig { private bool? _enabled; private double? _samplingRate; /// <summary> /// Gets and sets the property Enabled. /// <para> /// A Boolean that determines whether CloudFront adds the <code>Server-Timing</code> header /// to HTTP responses that it sends in response to requests that match a cache behavior /// that's associated with this response headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property SamplingRate. /// <para> /// A number 0–100 (inclusive) that specifies the percentage of responses that you want /// CloudFront to add the <code>Server-Timing</code> header to. When you set the sampling /// rate to 100, CloudFront adds the <code>Server-Timing</code> header to the HTTP response /// for every request that matches the cache behavior that this response headers policy /// is attached to. When you set it to 50, CloudFront adds the header to 50% of the responses /// for requests that match the cache behavior. You can set the sampling rate to any number /// 0–100 with up to four decimal places. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public double SamplingRate { get { return this._samplingRate.GetValueOrDefault(); } set { this._samplingRate = value; } } // Check to see if SamplingRate property is set internal bool IsSetSamplingRate() { return this._samplingRate.HasValue; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Determines whether CloudFront includes the <code>Strict-Transport-Security</code> /// HTTP response header and the header's value. /// /// /// <para> /// For more information about the <code>Strict-Transport-Security</code> HTTP response /// header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyStrictTransportSecurity { private int? _accessControlMaxAgeSec; private bool? _includeSubdomains; private bool? _override; private bool? _preload; /// <summary> /// Gets and sets the property AccessControlMaxAgeSec. /// <para> /// A number that CloudFront uses as the value for the <code>max-age</code> directive /// in the <code>Strict-Transport-Security</code> HTTP response header. /// </para> /// </summary> [AWSProperty(Required=true)] public int AccessControlMaxAgeSec { get { return this._accessControlMaxAgeSec.GetValueOrDefault(); } set { this._accessControlMaxAgeSec = value; } } // Check to see if AccessControlMaxAgeSec property is set internal bool IsSetAccessControlMaxAgeSec() { return this._accessControlMaxAgeSec.HasValue; } /// <summary> /// Gets and sets the property IncludeSubdomains. /// <para> /// A Boolean that determines whether CloudFront includes the <code>includeSubDomains</code> /// directive in the <code>Strict-Transport-Security</code> HTTP response header. /// </para> /// </summary> public bool IncludeSubdomains { get { return this._includeSubdomains.GetValueOrDefault(); } set { this._includeSubdomains = value; } } // Check to see if IncludeSubdomains property is set internal bool IsSetIncludeSubdomains() { return this._includeSubdomains.HasValue; } /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>Strict-Transport-Security</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } /// <summary> /// Gets and sets the property Preload. /// <para> /// A Boolean that determines whether CloudFront includes the <code>preload</code> directive /// in the <code>Strict-Transport-Security</code> HTTP response header. /// </para> /// </summary> public bool Preload { get { return this._preload.GetValueOrDefault(); } set { this._preload = value; } } // Check to see if Preload property is set internal bool IsSetPreload() { return this._preload.HasValue; } } }
129
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Contains a response headers policy. /// </summary> public partial class ResponseHeadersPolicySummary { private ResponseHeadersPolicy _responseHeadersPolicy; private ResponseHeadersPolicyType _type; /// <summary> /// Gets and sets the property ResponseHeadersPolicy. /// <para> /// The response headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicy ResponseHeadersPolicy { get { return this._responseHeadersPolicy; } set { this._responseHeadersPolicy = value; } } // Check to see if ResponseHeadersPolicy property is set internal bool IsSetResponseHeadersPolicy() { return this._responseHeadersPolicy != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of response headers policy, either <code>managed</code> (created by Amazon /// Web Services) or <code>custom</code> (created in this Amazon Web Services account). /// </para> /// </summary> [AWSProperty(Required=true)] public ResponseHeadersPolicyType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response /// header and the header's value. /// /// /// <para> /// For more information about the <code>X-XSS-Protection</code> HTTP response header, /// see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> /// in the MDN Web Docs. /// </para> /// </summary> public partial class ResponseHeadersPolicyXSSProtection { private bool? _modeBlock; private bool? _override; private bool? _protection; private string _reportUri; /// <summary> /// Gets and sets the property ModeBlock. /// <para> /// A Boolean that determines whether CloudFront includes the <code>mode=block</code> /// directive in the <code>X-XSS-Protection</code> header. /// </para> /// /// <para> /// For more information about this directive, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> /// in the MDN Web Docs. /// </para> /// </summary> public bool ModeBlock { get { return this._modeBlock.GetValueOrDefault(); } set { this._modeBlock = value; } } // Check to see if ModeBlock property is set internal bool IsSetModeBlock() { return this._modeBlock.HasValue; } /// <summary> /// Gets and sets the property Override. /// <para> /// A Boolean that determines whether CloudFront overrides the <code>X-XSS-Protection</code> /// HTTP response header received from the origin with the one specified in this response /// headers policy. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Override { get { return this._override.GetValueOrDefault(); } set { this._override = value; } } // Check to see if Override property is set internal bool IsSetOverride() { return this._override.HasValue; } /// <summary> /// Gets and sets the property Protection. /// <para> /// A Boolean that determines the value of the <code>X-XSS-Protection</code> HTTP response /// header. When this setting is <code>true</code>, the value of the <code>X-XSS-Protection</code> /// header is <code>1</code>. When this setting is <code>false</code>, the value of the /// <code>X-XSS-Protection</code> header is <code>0</code>. /// </para> /// /// <para> /// For more information about these settings, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> /// in the MDN Web Docs. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Protection { get { return this._protection.GetValueOrDefault(); } set { this._protection = value; } } // Check to see if Protection property is set internal bool IsSetProtection() { return this._protection.HasValue; } /// <summary> /// Gets and sets the property ReportUri. /// <para> /// A reporting URI, which CloudFront uses as the value of the <code>report</code> directive /// in the <code>X-XSS-Protection</code> header. /// </para> /// /// <para> /// You cannot specify a <code>ReportUri</code> when <code>ModeBlock</code> is <code>true</code>. /// </para> /// /// <para> /// For more information about using a reporting URL, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> /// in the MDN Web Docs. /// </para> /// </summary> public string ReportUri { get { return this._reportUri; } set { this._reportUri = value; } } // Check to see if ReportUri property is set internal bool IsSetReportUri() { return this._reportUri != null; } } }
150
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that identifies ways in which you want to restrict distribution of /// your content. /// </summary> public partial class Restrictions { private GeoRestriction _geoRestriction; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public Restrictions() { } /// <summary> /// Instantiates Restrictions with the parameterized properties /// </summary> /// <param name="geoRestriction">A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using <code>MaxMind</code> GeoIP databases.</param> public Restrictions(GeoRestriction geoRestriction) { _geoRestriction = geoRestriction; } /// <summary> /// Gets and sets the property GeoRestriction. /// <para> /// A complex type that controls the countries in which your content is distributed. CloudFront /// determines the location of your users using <code>MaxMind</code> GeoIP databases. /// </para> /// </summary> [AWSProperty(Required=true)] public GeoRestriction GeoRestriction { get { return this._geoRestriction; } set { this._geoRestriction = value; } } // Check to see if GeoRestriction property is set internal bool IsSetGeoRestriction() { return this._geoRestriction != 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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains information about the Amazon S3 bucket from which you /// want CloudFront to get your media files for distribution. /// </summary> public partial class S3Origin { private string _domainName; private string _originAccessIdentity; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public S3Origin() { } /// <summary> /// Instantiates S3Origin with the parameterized properties /// </summary> /// <param name="domainName">The DNS name of the Amazon S3 origin.</param> public S3Origin(string domainName) { _domainName = domainName; } /// <summary> /// Instantiates S3Origin with the parameterized properties /// </summary> /// <param name="domainName">The DNS name of the Amazon S3 origin.</param> /// <param name="originAccessIdentity">The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty <code>OriginAccessIdentity</code> element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content</a> in the <i> Amazon CloudFront Developer Guide</i>.</param> public S3Origin(string domainName, string originAccessIdentity) { _domainName = domainName; _originAccessIdentity = originAccessIdentity; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The DNS name of the Amazon S3 origin. /// </para> /// </summary> [AWSProperty(Required=true)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property OriginAccessIdentity. /// <para> /// The CloudFront origin access identity to associate with the distribution. Use an origin /// access identity to configure the distribution so that end users can only access objects /// in an Amazon S3 bucket through CloudFront. /// </para> /// /// <para> /// If you want end users to be able to access objects using either the CloudFront URL /// or the Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element. /// </para> /// /// <para> /// To delete the origin access identity from an existing distribution, update the distribution /// configuration and include an empty <code>OriginAccessIdentity</code> element. /// </para> /// /// <para> /// To replace the origin access identity, update the distribution configuration and specify /// the new origin access identity. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html">Using /// an Origin Access Identity to Restrict Access to Your Amazon S3 Content</a> in the /// <i> Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string OriginAccessIdentity { get { return this._originAccessIdentity; } set { this._originAccessIdentity = value; } } // Check to see if OriginAccessIdentity property is set internal bool IsSetOriginAccessIdentity() { return this._originAccessIdentity != null; } } }
127
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains information about the Amazon S3 origin. If the origin /// is a custom origin or an S3 bucket that is configured as a website endpoint, use the /// <code>CustomOriginConfig</code> element instead. /// </summary> public partial class S3OriginConfig { private string _originAccessIdentity; /// <summary> /// Gets and sets the property OriginAccessIdentity. /// <para> /// The CloudFront origin access identity to associate with the origin. Use an origin /// access identity to configure the origin so that viewers can <i>only</i> access objects /// in an Amazon S3 bucket through CloudFront. The format of the value is: /// </para> /// /// <para> /// origin-access-identity/cloudfront/<i>ID-of-origin-access-identity</i> /// </para> /// /// <para> /// where <code> <i>ID-of-origin-access-identity</i> </code> is the value that CloudFront /// returned in the <code>ID</code> element when you created the origin access identity. /// </para> /// /// <para> /// If you want viewers to be able to access objects using either the CloudFront URL or /// the Amazon S3 URL, specify an empty <code>OriginAccessIdentity</code> element. /// </para> /// /// <para> /// To delete the origin access identity from an existing distribution, update the distribution /// configuration and include an empty <code>OriginAccessIdentity</code> element. /// </para> /// /// <para> /// To replace the origin access identity, update the distribution configuration and specify /// the new origin access identity. /// </para> /// /// <para> /// For more information about the origin access identity, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// Private Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public string OriginAccessIdentity { get { return this._originAccessIdentity; } set { this._originAccessIdentity = value; } } // Check to see if OriginAccessIdentity property is set internal bool IsSetOriginAccessIdentity() { return this._originAccessIdentity != null; } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Session stickiness provides the ability to define multiple requests from a single /// viewer as a single session. This prevents the potentially inconsistent experience /// of sending some of a given user's requests to your staging distribution, while others /// are sent to your primary distribution. Define the session duration using TTL values. /// </summary> public partial class SessionStickinessConfig { private int? _idleTTL; private int? _maximumTTL; /// <summary> /// Gets and sets the property IdleTTL. /// <para> /// The amount of time after which you want sessions to cease if no requests are received. /// Allowed values are 300–3600 seconds (5–60 minutes). /// </para> /// /// <para> /// The value must be less than or equal to <code>MaximumTTL</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public int IdleTTL { get { return this._idleTTL.GetValueOrDefault(); } set { this._idleTTL = value; } } // Check to see if IdleTTL property is set internal bool IsSetIdleTTL() { return this._idleTTL.HasValue; } /// <summary> /// Gets and sets the property MaximumTTL. /// <para> /// The maximum amount of time to consider requests from the viewer as being part of the /// same session. Allowed values are 300–3600 seconds (5–60 minutes). /// </para> /// /// <para> /// The value must be less than or equal to <code>IdleTTL</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaximumTTL { get { return this._maximumTTL.GetValueOrDefault(); } set { this._maximumTTL = value; } } // Check to see if MaximumTTL property is set internal bool IsSetMaximumTTL() { return this._maximumTTL.HasValue; } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A list of Amazon Web Services accounts and the active CloudFront key pairs in each /// account that CloudFront can use to verify the signatures of signed URLs and signed /// cookies. /// </summary> public partial class Signer { private string _awsAccountNumber; private KeyPairIds _keyPairIds; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public Signer() { } /// <summary> /// Gets and sets the property AwsAccountNumber. /// <para> /// An Amazon Web Services account number that contains active CloudFront key pairs that /// CloudFront can use to verify the signatures of signed URLs and signed cookies. If /// the Amazon Web Services account that owns the key pairs is the same account that owns /// the CloudFront distribution, the value of this field is <code>self</code>. /// </para> /// </summary> public string AwsAccountNumber { get { return this._awsAccountNumber; } set { this._awsAccountNumber = value; } } // Check to see if AwsAccountNumber property is set internal bool IsSetAwsAccountNumber() { return this._awsAccountNumber != null; } /// <summary> /// Gets and sets the property KeyPairIds. /// <para> /// A list of CloudFront key pair identifiers. /// </para> /// </summary> public KeyPairIds KeyPairIds { get { return this._keyPairIds; } set { this._keyPairIds = value; } } // Check to see if KeyPairIds property is set internal bool IsSetKeyPairIds() { return this._keyPairIds != null; } } }
86
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The CloudFront domain name of the staging distribution. /// </summary> public partial class StagingDistributionDnsNames { private List<string> _items = new List<string>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The CloudFront domain name of the staging distribution. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of CloudFront domain names in your staging distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A continuous deployment policy for this staging distribution already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class StagingDistributionInUseException : AmazonCloudFrontException { /// <summary> /// Constructs a new StagingDistributionInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public StagingDistributionInUseException(string message) : base(message) {} /// <summary> /// Construct instance of StagingDistributionInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public StagingDistributionInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of StagingDistributionInUseException /// </summary> /// <param name="innerException"></param> public StagingDistributionInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of StagingDistributionInUseException /// </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 StagingDistributionInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of StagingDistributionInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public StagingDistributionInUseException(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 StagingDistributionInUseException 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 StagingDistributionInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex data type for the status codes that you specify that, when returned by a /// primary origin, trigger CloudFront to failover to a second origin. /// </summary> public partial class StatusCodes { private List<int> _items = new List<int>(); private int? _quantity; /// <summary> /// Gets and sets the property Items. /// <para> /// The items (status codes) for an origin group. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public List<int> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of status codes. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A streaming distribution tells CloudFront where you want RTMP content to be delivered /// from, and the details about how to track and manage content delivery. /// </summary> public partial class StreamingDistribution { private ActiveTrustedSigners _activeTrustedSigners; private string _arn; private string _domainName; private string _id; private DateTime? _lastModifiedTime; private string _status; private StreamingDistributionConfig _streamingDistributionConfig; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public StreamingDistribution() { } /// <summary> /// Gets and sets the property ActiveTrustedSigners. /// <para> /// A complex type that lists the Amazon Web Services accounts, if any, that you included /// in the <code>TrustedSigners</code> complex type for this distribution. These are the /// accounts that you want to allow to create signed URLs for private content. /// </para> /// /// <para> /// The <code>Signer</code> complex type lists the Amazon Web Services account number /// of the trusted signer or <code>self</code> if the signer is the Amazon Web Services /// account that created the distribution. The <code>Signer</code> element also includes /// the IDs of any active CloudFront key pairs that are associated with the trusted signer's /// Amazon Web Services account. If no <code>KeyPairId</code> element appears for a <code>Signer</code>, /// that signer can't create signed URLs. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// Private Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public ActiveTrustedSigners ActiveTrustedSigners { get { return this._activeTrustedSigners; } set { this._activeTrustedSigners = value; } } // Check to see if ActiveTrustedSigners property is set internal bool IsSetActiveTrustedSigners() { return this._activeTrustedSigners != null; } /// <summary> /// Gets and sets the property ARN. /// <para> /// The ARN (Amazon Resource Name) for the distribution. For example: <code>arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5</code>, /// where <code>123456789012</code> is your Amazon Web Services account ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ARN { get { return this._arn; } set { this._arn = value; } } // Check to see if ARN property is set internal bool IsSetARN() { return this._arn != null; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name that corresponds to the streaming distribution, for example, <code>s5c39gqb8ow64r.cloudfront.net</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the RTMP distribution. For example: <code>EGTXBD79EXAMPLE</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The date and time that the distribution was last modified. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current status of the RTMP distribution. When the status is <code>Deployed</code>, /// the distribution's information is propagated to all CloudFront edge locations. /// </para> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StreamingDistributionConfig. /// <para> /// The current configuration information for the RTMP distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public StreamingDistributionConfig StreamingDistributionConfig { get { return this._streamingDistributionConfig; } set { this._streamingDistributionConfig = value; } } // Check to see if StreamingDistributionConfig property is set internal bool IsSetStreamingDistributionConfig() { return this._streamingDistributionConfig != 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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The caller reference you attempted to create the streaming distribution with is associated /// with another distribution /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class StreamingDistributionAlreadyExistsException : AmazonCloudFrontException { /// <summary> /// Constructs a new StreamingDistributionAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public StreamingDistributionAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of StreamingDistributionAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public StreamingDistributionAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of StreamingDistributionAlreadyExistsException /// </summary> /// <param name="innerException"></param> public StreamingDistributionAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of StreamingDistributionAlreadyExistsException /// </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 StreamingDistributionAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of StreamingDistributionAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public StreamingDistributionAlreadyExistsException(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 StreamingDistributionAlreadyExistsException 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 StreamingDistributionAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The RTMP distribution's configuration information. /// </summary> public partial class StreamingDistributionConfig { private Aliases _aliases; private string _callerReference; private string _comment; private bool? _enabled; private StreamingLoggingConfig _logging; private PriceClass _priceClass; private S3Origin _s3Origin; private TrustedSigners _trustedSigners; /// <summary> /// Gets and sets the property Aliases. /// <para> /// A complex type that contains information about CNAMEs (alternate domain names), if /// any, for this streaming distribution. /// </para> /// </summary> public Aliases Aliases { get { return this._aliases; } set { this._aliases = value; } } // Check to see if Aliases property is set internal bool IsSetAliases() { return this._aliases != null; } /// <summary> /// Gets and sets the property CallerReference. /// <para> /// A unique value (for example, a date-time stamp) that ensures that the request can't /// be replayed. /// </para> /// /// <para> /// If the value of <code>CallerReference</code> is new (regardless of the content of /// the <code>StreamingDistributionConfig</code> object), CloudFront creates a new distribution. /// </para> /// /// <para> /// If <code>CallerReference</code> is a value that you already sent in a previous request /// to create a distribution, CloudFront returns a <code>DistributionAlreadyExists</code> /// error. /// </para> /// </summary> [AWSProperty(Required=true)] public string CallerReference { get { return this._callerReference; } set { this._callerReference = value; } } // Check to see if CallerReference property is set internal bool IsSetCallerReference() { return this._callerReference != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// Any comments you want to include about the streaming distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property Enabled. /// <para> /// Whether the streaming distribution is enabled to accept user requests for content. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property Logging. /// <para> /// A complex type that controls whether access logs are written for the streaming distribution. /// </para> /// </summary> public StreamingLoggingConfig Logging { get { return this._logging; } set { this._logging = value; } } // Check to see if Logging property is set internal bool IsSetLogging() { return this._logging != null; } /// <summary> /// Gets and sets the property PriceClass. /// <para> /// A complex type that contains information about price class for this streaming distribution. /// </para> /// </summary> public PriceClass PriceClass { get { return this._priceClass; } set { this._priceClass = value; } } // Check to see if PriceClass property is set internal bool IsSetPriceClass() { return this._priceClass != null; } /// <summary> /// Gets and sets the property S3Origin. /// <para> /// A complex type that contains information about the Amazon S3 bucket from which you /// want CloudFront to get your media files for distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public S3Origin S3Origin { get { return this._s3Origin; } set { this._s3Origin = value; } } // Check to see if S3Origin property is set internal bool IsSetS3Origin() { return this._s3Origin != null; } /// <summary> /// Gets and sets the property TrustedSigners. /// <para> /// A complex type that specifies any Amazon Web Services accounts that you want to permit /// to create signed URLs for private content. If you want the distribution to use signed /// URLs, include this element; if you want the distribution to use public URLs, remove /// this element. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// Private Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public TrustedSigners TrustedSigners { get { return this._trustedSigners; } set { this._trustedSigners = value; } } // Check to see if TrustedSigners property is set internal bool IsSetTrustedSigners() { return this._trustedSigners != null; } } }
213
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A streaming distribution Configuration and a list of tags to be associated with the /// streaming distribution. /// </summary> public partial class StreamingDistributionConfigWithTags { private StreamingDistributionConfig _streamingDistributionConfig; private Tags _tags; /// <summary> /// Gets and sets the property StreamingDistributionConfig. /// <para> /// A streaming distribution Configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public StreamingDistributionConfig StreamingDistributionConfig { get { return this._streamingDistributionConfig; } set { this._streamingDistributionConfig = value; } } // Check to see if StreamingDistributionConfig property is set internal bool IsSetStreamingDistributionConfig() { return this._streamingDistributionConfig != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A complex type that contains zero or more <code>Tag</code> elements. /// </para> /// </summary> [AWSProperty(Required=true)] public Tags Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A streaming distribution list. /// </summary> public partial class StreamingDistributionList { private bool? _isTruncated; private List<StreamingDistributionSummary> _items = new List<StreamingDistributionSummary>(); private string _marker; private int? _maxItems; private string _nextMarker; private int? _quantity; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public StreamingDistributionList() { } /// <summary> /// Gets and sets the property IsTruncated. /// <para> /// A flag that indicates whether more streaming distributions remain to be listed. If /// your results were truncated, you can make a follow-up pagination request using the /// <code>Marker</code> request parameter to retrieve more distributions in the list. /// /// </para> /// </summary> [AWSProperty(Required=true)] public bool IsTruncated { get { return this._isTruncated.GetValueOrDefault(); } set { this._isTruncated = value; } } // Check to see if IsTruncated property is set internal bool IsSetIsTruncated() { return this._isTruncated.HasValue; } /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains one <code>StreamingDistributionSummary</code> element /// for each distribution that was created by the current Amazon Web Services account. /// </para> /// </summary> public List<StreamingDistributionSummary> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// <summary> /// Gets and sets the property Marker. /// <para> /// The value you provided for the <code>Marker</code> request parameter. /// </para> /// </summary> [AWSProperty(Required=true)] public string Marker { get { return this._marker; } set { this._marker = value; } } // Check to see if Marker property is set internal bool IsSetMarker() { return this._marker != null; } /// <summary> /// Gets and sets the property MaxItems. /// <para> /// The value you provided for the <code>MaxItems</code> request parameter. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxItems { get { return this._maxItems.GetValueOrDefault(); } set { this._maxItems = value; } } // Check to see if MaxItems property is set internal bool IsSetMaxItems() { return this._maxItems.HasValue; } /// <summary> /// Gets and sets the property NextMarker. /// <para> /// If <code>IsTruncated</code> is <code>true</code>, this element is present and contains /// the value you can use for the <code>Marker</code> request parameter to continue listing /// your RTMP distributions where they left off. /// </para> /// </summary> public string NextMarker { get { return this._nextMarker; } set { this._nextMarker = value; } } // Check to see if NextMarker property is set internal bool IsSetNextMarker() { return this._nextMarker != null; } /// <summary> /// Gets and sets the property Quantity. /// <para> /// The number of streaming distributions that were created by the current Amazon Web /// Services account. /// </para> /// </summary> [AWSProperty(Required=true)] public int Quantity { get { return this._quantity.GetValueOrDefault(); } set { this._quantity = value; } } // Check to see if Quantity property is set internal bool IsSetQuantity() { return this._quantity.HasValue; } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The specified CloudFront distribution is not disabled. You must disable the distribution /// before you can delete it. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class StreamingDistributionNotDisabledException : AmazonCloudFrontException { /// <summary> /// Constructs a new StreamingDistributionNotDisabledException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public StreamingDistributionNotDisabledException(string message) : base(message) {} /// <summary> /// Construct instance of StreamingDistributionNotDisabledException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public StreamingDistributionNotDisabledException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of StreamingDistributionNotDisabledException /// </summary> /// <param name="innerException"></param> public StreamingDistributionNotDisabledException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of StreamingDistributionNotDisabledException /// </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 StreamingDistributionNotDisabledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of StreamingDistributionNotDisabledException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public StreamingDistributionNotDisabledException(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 StreamingDistributionNotDisabledException 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 StreamingDistributionNotDisabledException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A summary of the information for a CloudFront streaming distribution. /// </summary> public partial class StreamingDistributionSummary { private Aliases _aliases; private string _arn; private string _comment; private string _domainName; private bool? _enabled; private string _id; private DateTime? _lastModifiedTime; private PriceClass _priceClass; private S3Origin _s3Origin; private string _status; private TrustedSigners _trustedSigners; /// <summary> /// Empty constructor used to set properties independently even when a simple constructor is available /// </summary> public StreamingDistributionSummary() { } /// <summary> /// Gets and sets the property Aliases. /// <para> /// A complex type that contains information about CNAMEs (alternate domain names), if /// any, for this streaming distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public Aliases Aliases { get { return this._aliases; } set { this._aliases = value; } } // Check to see if Aliases property is set internal bool IsSetAliases() { return this._aliases != null; } /// <summary> /// Gets and sets the property ARN. /// <para> /// The ARN (Amazon Resource Name) for the streaming distribution. For example: <code>arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5</code>, /// where <code>123456789012</code> is your Amazon Web Services account ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ARN { get { return this._arn; } set { this._arn = value; } } // Check to see if ARN property is set internal bool IsSetARN() { return this._arn != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// The comment originally specified when this distribution was created. /// </para> /// </summary> [AWSProperty(Required=true)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name corresponding to the distribution, for example, <code>d111111abcdef8.cloudfront.net</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property Enabled. /// <para> /// Whether the distribution is enabled to accept end user requests for content. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property Id. /// <para> /// The identifier for the distribution, for example, <code>EDFDVBD632BHDS5</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The date and time the distribution was last modified. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property PriceClass. /// <para> /// A complex type that contains information about price class for this streaming distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public PriceClass PriceClass { get { return this._priceClass; } set { this._priceClass = value; } } // Check to see if PriceClass property is set internal bool IsSetPriceClass() { return this._priceClass != null; } /// <summary> /// Gets and sets the property S3Origin. /// <para> /// A complex type that contains information about the Amazon S3 bucket from which you /// want CloudFront to get your media files for distribution. /// </para> /// </summary> [AWSProperty(Required=true)] public S3Origin S3Origin { get { return this._s3Origin; } set { this._s3Origin = value; } } // Check to see if S3Origin property is set internal bool IsSetS3Origin() { return this._s3Origin != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// Indicates the current status of the distribution. When the status is <code>Deployed</code>, /// the distribution's information is fully propagated throughout the Amazon CloudFront /// system. /// </para> /// </summary> [AWSProperty(Required=true)] public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property TrustedSigners. /// <para> /// A complex type that specifies the Amazon Web Services accounts, if any, that you want /// to allow to create signed URLs for private content. If you want to require signed /// URLs in requests for objects in the target origin that match the <code>PathPattern</code> /// for this cache behavior, specify <code>true</code> for <code>Enabled</code>, and specify /// the applicable values for <code>Quantity</code> and <code>Items</code>.If you don't /// want to require signed URLs in requests for objects that match <code>PathPattern</code>, /// specify <code>false</code> for <code>Enabled</code> and <code>0</code> for <code>Quantity</code>. /// Omit <code>Items</code>. To add, change, or remove one or more trusted signers, change /// <code>Enabled</code> to <code>true</code> (if it's currently <code>false</code>), /// change <code>Quantity</code> as applicable, and specify all of the trusted signers /// that you want to include in the updated distribution. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving /// Private Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public TrustedSigners TrustedSigners { get { return this._trustedSigners; } set { this._trustedSigners = value; } } // Check to see if TrustedSigners property is set internal bool IsSetTrustedSigners() { return this._trustedSigners != null; } } }
283
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that controls whether access logs are written for this streaming distribution. /// </summary> public partial class StreamingLoggingConfig { private string _bucket; private bool? _enabled; private string _prefix; /// <summary> /// Gets and sets the property Bucket. /// <para> /// The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Bucket { get { return this._bucket; } set { this._bucket = value; } } // Check to see if Bucket property is set internal bool IsSetBucket() { return this._bucket != null; } /// <summary> /// Gets and sets the property Enabled. /// <para> /// Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. /// If you don't want to enable logging when you create a streaming distribution or if /// you want to disable logging for an existing streaming distribution, specify <code>false</code> /// for <code>Enabled</code>, and specify <code>empty Bucket</code> and <code>Prefix</code> /// elements. If you specify <code>false</code> for <code>Enabled</code> but you specify /// values for <code>Bucket</code> and <code>Prefix</code>, the values are automatically /// deleted. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property Prefix. /// <para> /// An optional string that you want CloudFront to prefix to the access log filenames /// for this streaming distribution, for example, <code>myprefix/</code>. If you want /// to enable logging, but you don't want to specify a prefix, you still must include /// an empty <code>Prefix</code> element in the <code>Logging</code> element. /// </para> /// </summary> [AWSProperty(Required=true)] public string Prefix { get { return this._prefix; } set { this._prefix = value; } } // Check to see if Prefix property is set internal bool IsSetPrefix() { return this._prefix != null; } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains <code>Tag</code> key and <code>Tag</code> value. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// A string that contains <code>Tag</code> key. /// </para> /// /// <para> /// The string length should be between 1 and 128 characters. Valid characters include /// <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters /// <code>_ - . : / = + @</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// A string that contains an optional <code>Tag</code> value. /// </para> /// /// <para> /// The string length should be between 0 and 256 characters. Valid characters include /// <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, space, and the special characters /// <code>_ - . : / = + @</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains zero or more <code>Tag</code> elements. /// </summary> public partial class TagKeys { private List<string> _items = new List<string>(); /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains <code>Tag</code> key elements. /// </para> /// </summary> public List<string> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Add tags to a CloudFront resource. /// </summary> public partial class TagResourceRequest : AmazonCloudFrontRequest { private string _resource; private Tags _tags; /// <summary> /// Gets and sets the property Resource. /// <para> /// An ARN of a CloudFront resource. /// </para> /// </summary> [AWSProperty(Required=true)] public string Resource { get { return this._resource; } set { this._resource = value; } } // Check to see if Resource property is set internal bool IsSetResource() { return this._resource != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A complex type that contains zero or more <code>Tag</code> elements. /// </para> /// </summary> [AWSProperty(Required=true)] public Tags Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// A complex type that contains zero or more <code>Tag</code> elements. /// </summary> public partial class Tags { private List<Tag> _items = new List<Tag>(); /// <summary> /// Gets and sets the property Items. /// <para> /// A complex type that contains <code>Tag</code> elements. /// </para> /// </summary> public List<Tag> Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } } }
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 cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// The CloudFront function failed. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TestFunctionFailedException : AmazonCloudFrontException { /// <summary> /// Constructs a new TestFunctionFailedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public TestFunctionFailedException(string message) : base(message) {} /// <summary> /// Construct instance of TestFunctionFailedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public TestFunctionFailedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of TestFunctionFailedException /// </summary> /// <param name="innerException"></param> public TestFunctionFailedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of TestFunctionFailedException /// </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 TestFunctionFailedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of TestFunctionFailedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TestFunctionFailedException(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 TestFunctionFailedException 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 TestFunctionFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// <summary> /// Container for the parameters to the TestFunction operation. /// Tests a CloudFront function. /// /// /// <para> /// To test a function, you provide an <i>event object</i> that represents an HTTP request /// or response that your CloudFront distribution could receive in production. CloudFront /// runs the function, passing it the event object that you provided, and returns the /// function's result (the modified event object) in the response. The response also contains /// function logs and error messages, if any exist. For more information about testing /// functions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function">Testing /// functions</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// /// <para> /// To test a function, you provide the function's name and version (<code>ETag</code> /// value) along with the event object. To get the function's name and version, you can /// use <code>ListFunctions</code> and <code>DescribeFunction</code>. /// </para> /// </summary> public partial class TestFunctionRequest : AmazonCloudFrontRequest { private MemoryStream _eventObject; private string _ifMatch; private string _name; private FunctionStage _stage; /// <summary> /// Gets and sets the property EventObject. /// <para> /// The event object to test the function with. For more information about the structure /// of the event object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function">Testing /// functions</a> in the <i>Amazon CloudFront Developer Guide</i>. /// </para> /// </summary> [AWSProperty(Required=true, Sensitive=true, Max=40960)] public MemoryStream EventObject { get { return this._eventObject; } set { this._eventObject = value; } } // Check to see if EventObject property is set internal bool IsSetEventObject() { return this._eventObject != null; } /// <summary> /// Gets and sets the property IfMatch. /// <para> /// The current version (<code>ETag</code> value) of the function that you are testing, /// which you can get using <code>DescribeFunction</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string IfMatch { get { return this._ifMatch; } set { this._ifMatch = value; } } // Check to see if IfMatch property is set internal bool IsSetIfMatch() { return this._ifMatch != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the function that you are testing. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Stage. /// <para> /// The stage of the function that you are testing, either <code>DEVELOPMENT</code> or /// <code>LIVE</code>. /// </para> /// </summary> public FunctionStage Stage { get { return this._stage; } set { this._stage = value; } } // Check to see if Stage property is set internal bool IsSetStage() { return this._stage != null; } } }
139