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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudFront.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.CloudFront.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateStreamingDistribution operation
/// </summary>
public class UpdateStreamingDistributionResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
UpdateStreamingDistributionResponse response = new UpdateStreamingDistributionResponse();
UnmarshallResult(context,response);
if (context.ResponseData.IsHeaderPresent("ETag"))
response.ETag = context.ResponseData.GetHeaderValue("ETag");
return response;
}
private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateStreamingDistributionResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("StreamingDistribution", targetDepth))
{
var unmarshaller = StreamingDistributionUnmarshaller.Instance;
response.StreamingDistribution = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDenied"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CNAMEAlreadyExists"))
{
return CNAMEAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalUpdate"))
{
return IllegalUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InconsistentQuantities"))
{
return InconsistentQuantitiesExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArgument"))
{
return InvalidArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidIfMatchVersion"))
{
return InvalidIfMatchVersionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOriginAccessControl"))
{
return InvalidOriginAccessControlExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidOriginAccessIdentity"))
{
return InvalidOriginAccessIdentityExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingBody"))
{
return MissingBodyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NoSuchStreamingDistribution"))
{
return NoSuchStreamingDistributionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("PreconditionFailed"))
{
return PreconditionFailedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyStreamingDistributionCNAMEs"))
{
return TooManyStreamingDistributionCNAMEsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTrustedSigners"))
{
return TooManyTrustedSignersExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TrustedSignerDoesNotExist"))
{
return TrustedSignerDoesNotExistExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudFrontException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static UpdateStreamingDistributionResponseUnmarshaller _instance = new UpdateStreamingDistributionResponseUnmarshaller();
internal static UpdateStreamingDistributionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateStreamingDistributionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 178 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudFront.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.CloudFront.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ViewerCertificate Object
/// </summary>
public class ViewerCertificateUnmarshaller : IUnmarshaller<ViewerCertificate, XmlUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ViewerCertificate Unmarshall(XmlUnmarshallerContext context)
{
ViewerCertificate unmarshalledObject = new ViewerCertificate();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("ACMCertificateArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ACMCertificateArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Certificate", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Certificate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CertificateSource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CertificateSource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CloudFrontDefaultCertificate", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.CloudFrontDefaultCertificate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IAMCertificateId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IAMCertificateId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinimumProtocolVersion", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MinimumProtocolVersion = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SSLSupportMethod", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SSLSupportMethod = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
private static ViewerCertificateUnmarshaller _instance = new ViewerCertificateUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ViewerCertificateUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.Text;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginators for the CloudFront service
///</summary>
public class CloudFrontPaginatorFactory : ICloudFrontPaginatorFactory
{
private readonly IAmazonCloudFront client;
internal CloudFrontPaginatorFactory(IAmazonCloudFront client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListCloudFrontOriginAccessIdentities operation
///</summary>
public IListCloudFrontOriginAccessIdentitiesPaginator ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request)
{
return new ListCloudFrontOriginAccessIdentitiesPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListDistributions operation
///</summary>
public IListDistributionsPaginator ListDistributions(ListDistributionsRequest request)
{
return new ListDistributionsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListInvalidations operation
///</summary>
public IListInvalidationsPaginator ListInvalidations(ListInvalidationsRequest request)
{
return new ListInvalidationsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListStreamingDistributions operation
///</summary>
public IListStreamingDistributionsPaginator ListStreamingDistributions(ListStreamingDistributionsRequest request)
{
return new ListStreamingDistributionsPaginator(this.client, request);
}
}
} | 70 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.
*/
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginators for the CloudFront service
///</summary>
public interface ICloudFrontPaginatorFactory
{
/// <summary>
/// Paginator for ListCloudFrontOriginAccessIdentities operation
///</summary>
IListCloudFrontOriginAccessIdentitiesPaginator ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request);
/// <summary>
/// Paginator for ListDistributions operation
///</summary>
IListDistributionsPaginator ListDistributions(ListDistributionsRequest request);
/// <summary>
/// Paginator for ListInvalidations operation
///</summary>
IListInvalidationsPaginator ListInvalidations(ListInvalidationsRequest request);
/// <summary>
/// Paginator for ListStreamingDistributions operation
///</summary>
IListStreamingDistributionsPaginator ListStreamingDistributions(ListStreamingDistributionsRequest request);
}
} | 48 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginator for the ListCloudFrontOriginAccessIdentities operation
///</summary>
public interface IListCloudFrontOriginAccessIdentitiesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListCloudFrontOriginAccessIdentitiesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
IPaginatedEnumerable<CloudFrontOriginAccessIdentitySummary> Items { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginator for the ListDistributions operation
///</summary>
public interface IListDistributionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListDistributionsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
IPaginatedEnumerable<DistributionSummary> Items { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginator for the ListInvalidations operation
///</summary>
public interface IListInvalidationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListInvalidationsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
IPaginatedEnumerable<InvalidationSummary> Items { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Paginator for the ListStreamingDistributions operation
///</summary>
public interface IListStreamingDistributionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListStreamingDistributionsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
IPaginatedEnumerable<StreamingDistributionSummary> Items { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Base class for ListCloudFrontOriginAccessIdentities paginators.
/// </summary>
internal sealed partial class ListCloudFrontOriginAccessIdentitiesPaginator : IPaginator<ListCloudFrontOriginAccessIdentitiesResponse>, IListCloudFrontOriginAccessIdentitiesPaginator
{
private readonly IAmazonCloudFront _client;
private readonly ListCloudFrontOriginAccessIdentitiesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListCloudFrontOriginAccessIdentitiesResponse> Responses => new PaginatedResponse<ListCloudFrontOriginAccessIdentitiesResponse>(this);
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
public IPaginatedEnumerable<CloudFrontOriginAccessIdentitySummary> Items =>
new PaginatedResultKeyResponse<ListCloudFrontOriginAccessIdentitiesResponse, CloudFrontOriginAccessIdentitySummary>(this, (i) => i.CloudFrontOriginAccessIdentityList.Items);
internal ListCloudFrontOriginAccessIdentitiesPaginator(IAmazonCloudFront client, ListCloudFrontOriginAccessIdentitiesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListCloudFrontOriginAccessIdentitiesResponse> IPaginator<ListCloudFrontOriginAccessIdentitiesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListCloudFrontOriginAccessIdentitiesResponse response;
do
{
_request.Marker = marker;
response = _client.ListCloudFrontOriginAccessIdentities(_request);
marker = response.CloudFrontOriginAccessIdentityList.NextMarker;
yield return response;
}
while (response.CloudFrontOriginAccessIdentityList.IsTruncated);
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListCloudFrontOriginAccessIdentitiesResponse> IPaginator<ListCloudFrontOriginAccessIdentitiesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListCloudFrontOriginAccessIdentitiesResponse response;
do
{
_request.Marker = marker;
response = await _client.ListCloudFrontOriginAccessIdentitiesAsync(_request, cancellationToken).ConfigureAwait(false);
marker = response.CloudFrontOriginAccessIdentityList.NextMarker;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (response.CloudFrontOriginAccessIdentityList.IsTruncated);
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Base class for ListDistributions paginators.
/// </summary>
internal sealed partial class ListDistributionsPaginator : IPaginator<ListDistributionsResponse>, IListDistributionsPaginator
{
private readonly IAmazonCloudFront _client;
private readonly ListDistributionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListDistributionsResponse> Responses => new PaginatedResponse<ListDistributionsResponse>(this);
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
public IPaginatedEnumerable<DistributionSummary> Items =>
new PaginatedResultKeyResponse<ListDistributionsResponse, DistributionSummary>(this, (i) => i.DistributionList.Items);
internal ListDistributionsPaginator(IAmazonCloudFront client, ListDistributionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListDistributionsResponse> IPaginator<ListDistributionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListDistributionsResponse response;
do
{
_request.Marker = marker;
response = _client.ListDistributions(_request);
marker = response.DistributionList.NextMarker;
yield return response;
}
while (response.DistributionList.IsTruncated);
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListDistributionsResponse> IPaginator<ListDistributionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListDistributionsResponse response;
do
{
_request.Marker = marker;
response = await _client.ListDistributionsAsync(_request, cancellationToken).ConfigureAwait(false);
marker = response.DistributionList.NextMarker;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (response.DistributionList.IsTruncated);
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Base class for ListInvalidations paginators.
/// </summary>
internal sealed partial class ListInvalidationsPaginator : IPaginator<ListInvalidationsResponse>, IListInvalidationsPaginator
{
private readonly IAmazonCloudFront _client;
private readonly ListInvalidationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListInvalidationsResponse> Responses => new PaginatedResponse<ListInvalidationsResponse>(this);
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
public IPaginatedEnumerable<InvalidationSummary> Items =>
new PaginatedResultKeyResponse<ListInvalidationsResponse, InvalidationSummary>(this, (i) => i.InvalidationList.Items);
internal ListInvalidationsPaginator(IAmazonCloudFront client, ListInvalidationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListInvalidationsResponse> IPaginator<ListInvalidationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListInvalidationsResponse response;
do
{
_request.Marker = marker;
response = _client.ListInvalidations(_request);
marker = response.InvalidationList.NextMarker;
yield return response;
}
while (response.InvalidationList.IsTruncated);
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListInvalidationsResponse> IPaginator<ListInvalidationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListInvalidationsResponse response;
do
{
_request.Marker = marker;
response = await _client.ListInvalidationsAsync(_request, cancellationToken).ConfigureAwait(false);
marker = response.InvalidationList.NextMarker;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (response.InvalidationList.IsTruncated);
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.CloudFront.Model
{
/// <summary>
/// Base class for ListStreamingDistributions paginators.
/// </summary>
internal sealed partial class ListStreamingDistributionsPaginator : IPaginator<ListStreamingDistributionsResponse>, IListStreamingDistributionsPaginator
{
private readonly IAmazonCloudFront _client;
private readonly ListStreamingDistributionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListStreamingDistributionsResponse> Responses => new PaginatedResponse<ListStreamingDistributionsResponse>(this);
/// <summary>
/// Enumerable containing all of the Items
/// </summary>
public IPaginatedEnumerable<StreamingDistributionSummary> Items =>
new PaginatedResultKeyResponse<ListStreamingDistributionsResponse, StreamingDistributionSummary>(this, (i) => i.StreamingDistributionList.Items);
internal ListStreamingDistributionsPaginator(IAmazonCloudFront client, ListStreamingDistributionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListStreamingDistributionsResponse> IPaginator<ListStreamingDistributionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListStreamingDistributionsResponse response;
do
{
_request.Marker = marker;
response = _client.ListStreamingDistributions(_request);
marker = response.StreamingDistributionList.NextMarker;
yield return response;
}
while (response.StreamingDistributionList.IsTruncated);
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListStreamingDistributionsResponse> IPaginator<ListStreamingDistributionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var marker = _request.Marker;
ListStreamingDistributionsResponse response;
do
{
_request.Marker = marker;
response = await _client.ListStreamingDistributionsAsync(_request, cancellationToken).ConfigureAwait(false);
marker = response.StreamingDistributionList.NextMarker;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (response.StreamingDistributionList.IsTruncated);
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudFront.Model;
namespace Amazon.CloudFront
{
/// <summary>
/// Interface for accessing CloudFront
///
/// Amazon CloudFront
/// <para>
/// This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers who
/// need detailed information about CloudFront API actions, data types, and errors. For
/// detailed information about CloudFront features, see the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonCloudFront : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
ICloudFrontPaginatorFactory Paginators { get; }
#endif
#region AssociateAlias
/// <summary>
/// Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront
/// distribution.
///
///
/// <para>
/// With this operation you can move an alias that's already in use on a CloudFront distribution
/// to a different distribution in one step. This prevents the downtime that could occur
/// if you first remove the alias from one distribution and then separately add the alias
/// to another distribution.
/// </para>
///
/// <para>
/// To use this operation to associate an alias with a distribution, you provide the alias
/// and the ID of the target distribution for the alias. For more information, including
/// how to set up the target distribution, prerequisites that you must complete, and other
/// restrictions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateAlias service method.</param>
///
/// <returns>The response from the AssociateAlias service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias">REST API Reference for AssociateAlias Operation</seealso>
AssociateAliasResponse AssociateAlias(AssociateAliasRequest request);
/// <summary>
/// Initiates the asynchronous execution of the AssociateAlias operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AssociateAlias operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateAlias
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias">REST API Reference for AssociateAlias Operation</seealso>
IAsyncResult BeginAssociateAlias(AssociateAliasRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the AssociateAlias operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateAlias.</param>
///
/// <returns>Returns a AssociateAliasResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias">REST API Reference for AssociateAlias Operation</seealso>
AssociateAliasResponse EndAssociateAlias(IAsyncResult asyncResult);
#endregion
#region CopyDistribution
/// <summary>
/// Creates a staging distribution using the configuration of the provided primary distribution.
/// A staging distribution is a copy of an existing distribution (called the primary distribution)
/// that you can use in a continuous deployment workflow.
///
///
/// <para>
/// After you create a staging distribution, you can use <code>UpdateDistribution</code>
/// to modify the staging distribution's configuration. Then you can use <code>CreateContinuousDeploymentPolicy</code>
/// to incrementally move traffic to the staging distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CopyDistribution service method.</param>
///
/// <returns>The response from the CopyDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution">REST API Reference for CopyDistribution Operation</seealso>
CopyDistributionResponse CopyDistribution(CopyDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CopyDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CopyDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCopyDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution">REST API Reference for CopyDistribution Operation</seealso>
IAsyncResult BeginCopyDistribution(CopyDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CopyDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCopyDistribution.</param>
///
/// <returns>Returns a CopyDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution">REST API Reference for CopyDistribution Operation</seealso>
CopyDistributionResponse EndCopyDistribution(IAsyncResult asyncResult);
#endregion
#region CreateCachePolicy
/// <summary>
/// Creates a cache policy.
///
///
/// <para>
/// After you create a cache policy, you can attach it to one or more cache behaviors.
/// When it's attached to a cache behavior, the cache policy determines the following:
/// </para>
/// <ul> <li>
/// <para>
/// The values that CloudFront includes in the <i>cache key</i>. These values can include
/// HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find
/// an object in its cache that it can return to the viewer.
/// </para>
/// </li> <li>
/// <para>
/// The default, minimum, and maximum time to live (TTL) values that you want objects
/// to stay in the CloudFront cache.
/// </para>
/// </li> </ul>
/// <para>
/// The headers, cookies, and query strings that are included in the cache key are also
/// included in requests that CloudFront sends to the origin. CloudFront sends a request
/// when it can't find 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>
///
/// <para>
/// For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling
/// the cache key</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCachePolicy service method.</param>
///
/// <returns>The response from the CreateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCachePoliciesException">
/// You have reached the maximum number of cache policies for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy">REST API Reference for CreateCachePolicy Operation</seealso>
CreateCachePolicyResponse CreateCachePolicy(CreateCachePolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateCachePolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCachePolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCachePolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy">REST API Reference for CreateCachePolicy Operation</seealso>
IAsyncResult BeginCreateCachePolicy(CreateCachePolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateCachePolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCachePolicy.</param>
///
/// <returns>Returns a CreateCachePolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy">REST API Reference for CreateCachePolicy Operation</seealso>
CreateCachePolicyResponse EndCreateCachePolicy(IAsyncResult asyncResult);
#endregion
#region CreateCloudFrontOriginAccessIdentity
/// <summary>
/// Creates a new origin access identity. If you're using Amazon S3 for your origin, you
/// can use an origin access identity to require users to access your content using a
/// CloudFront URL instead of the Amazon S3 URL. For more information about how to use
/// origin access identities, 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>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity service method.</param>
///
/// <returns>The response from the CreateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityAlreadyExistsException">
/// If the <code>CallerReference</code> is a value you already sent in a previous request
/// to create an identity but the content of the <code>CloudFrontOriginAccessIdentityConfig</code>
/// is different from the original request, CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code>
/// error.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCloudFrontOriginAccessIdentitiesException">
/// Processing your request would cause you to exceed the maximum number of origin access
/// identities allowed.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity">REST API Reference for CreateCloudFrontOriginAccessIdentity Operation</seealso>
CreateCloudFrontOriginAccessIdentityResponse CreateCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCloudFrontOriginAccessIdentity
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity">REST API Reference for CreateCloudFrontOriginAccessIdentity Operation</seealso>
IAsyncResult BeginCreateCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCloudFrontOriginAccessIdentity.</param>
///
/// <returns>Returns a CreateCloudFrontOriginAccessIdentityResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity">REST API Reference for CreateCloudFrontOriginAccessIdentity Operation</seealso>
CreateCloudFrontOriginAccessIdentityResponse EndCreateCloudFrontOriginAccessIdentity(IAsyncResult asyncResult);
#endregion
#region CreateContinuousDeploymentPolicy
/// <summary>
/// Creates a continuous deployment policy that distributes traffic for a custom domain
/// name to two different CloudFront distributions.
///
///
/// <para>
/// To use a continuous deployment policy, first use <code>CopyDistribution</code> to
/// create a staging distribution, then use <code>UpdateDistribution</code> to modify
/// the staging distribution's configuration.
/// </para>
///
/// <para>
/// After you create and update a staging distribution, you can use a continuous deployment
/// policy to incrementally move traffic to the staging distribution. This workflow enables
/// you to test changes to a distribution's configuration before moving all of your domain's
/// production traffic to the new configuration.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateContinuousDeploymentPolicy service method.</param>
///
/// <returns>The response from the CreateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyAlreadyExistsException">
/// A continuous deployment policy with this configuration already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyContinuousDeploymentPoliciesException">
/// You have reached the maximum number of continuous deployment policies for this Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy">REST API Reference for CreateContinuousDeploymentPolicy Operation</seealso>
CreateContinuousDeploymentPolicyResponse CreateContinuousDeploymentPolicy(CreateContinuousDeploymentPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateContinuousDeploymentPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateContinuousDeploymentPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy">REST API Reference for CreateContinuousDeploymentPolicy Operation</seealso>
IAsyncResult BeginCreateContinuousDeploymentPolicy(CreateContinuousDeploymentPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateContinuousDeploymentPolicy.</param>
///
/// <returns>Returns a CreateContinuousDeploymentPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy">REST API Reference for CreateContinuousDeploymentPolicy Operation</seealso>
CreateContinuousDeploymentPolicyResponse EndCreateContinuousDeploymentPolicy(IAsyncResult asyncResult);
#endregion
#region CreateDistribution
/// <summary>
/// Creates a CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistribution service method.</param>
///
/// <returns>The response from the CreateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginAccessControlException">
/// The maximum number of distributions have been associated with the specified origin
/// access control.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution">REST API Reference for CreateDistribution Operation</seealso>
CreateDistributionResponse CreateDistribution(CreateDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution">REST API Reference for CreateDistribution Operation</seealso>
IAsyncResult BeginCreateDistribution(CreateDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDistribution.</param>
///
/// <returns>Returns a CreateDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution">REST API Reference for CreateDistribution Operation</seealso>
CreateDistributionResponse EndCreateDistribution(IAsyncResult asyncResult);
#endregion
#region CreateDistributionWithTags
/// <summary>
/// Create a new distribution with tags.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistributionWithTags service method.</param>
///
/// <returns>The response from the CreateDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags">REST API Reference for CreateDistributionWithTags Operation</seealso>
CreateDistributionWithTagsResponse CreateDistributionWithTags(CreateDistributionWithTagsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateDistributionWithTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateDistributionWithTags operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDistributionWithTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags">REST API Reference for CreateDistributionWithTags Operation</seealso>
IAsyncResult BeginCreateDistributionWithTags(CreateDistributionWithTagsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateDistributionWithTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateDistributionWithTags.</param>
///
/// <returns>Returns a CreateDistributionWithTagsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags">REST API Reference for CreateDistributionWithTags Operation</seealso>
CreateDistributionWithTagsResponse EndCreateDistributionWithTags(IAsyncResult asyncResult);
#endregion
#region CreateFieldLevelEncryptionConfig
/// <summary>
/// Create a new field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionConfig service method.</param>
///
/// <returns>The response from the CreateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigAlreadyExistsException">
/// The specified configuration for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionConfigsException">
/// The maximum number of configurations for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig">REST API Reference for CreateFieldLevelEncryptionConfig Operation</seealso>
CreateFieldLevelEncryptionConfigResponse CreateFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFieldLevelEncryptionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig">REST API Reference for CreateFieldLevelEncryptionConfig Operation</seealso>
IAsyncResult BeginCreateFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFieldLevelEncryptionConfig.</param>
///
/// <returns>Returns a CreateFieldLevelEncryptionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig">REST API Reference for CreateFieldLevelEncryptionConfig Operation</seealso>
CreateFieldLevelEncryptionConfigResponse EndCreateFieldLevelEncryptionConfig(IAsyncResult asyncResult);
#endregion
#region CreateFieldLevelEncryptionProfile
/// <summary>
/// Create a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionProfile service method.</param>
///
/// <returns>The response from the CreateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionProfilesException">
/// The maximum number of profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile">REST API Reference for CreateFieldLevelEncryptionProfile Operation</seealso>
CreateFieldLevelEncryptionProfileResponse CreateFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionProfile operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFieldLevelEncryptionProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile">REST API Reference for CreateFieldLevelEncryptionProfile Operation</seealso>
IAsyncResult BeginCreateFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFieldLevelEncryptionProfile.</param>
///
/// <returns>Returns a CreateFieldLevelEncryptionProfileResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile">REST API Reference for CreateFieldLevelEncryptionProfile Operation</seealso>
CreateFieldLevelEncryptionProfileResponse EndCreateFieldLevelEncryptionProfile(IAsyncResult asyncResult);
#endregion
#region CreateFunction
/// <summary>
/// Creates a CloudFront function.
///
///
/// <para>
/// To create a function, you provide the function code and some configuration information
/// about the function. The response contains an Amazon Resource Name (ARN) that uniquely
/// identifies the function.
/// </para>
///
/// <para>
/// When you create a function, it's in the <code>DEVELOPMENT</code> stage. In this stage,
/// you can test the function with <code>TestFunction</code>, and update it with <code>UpdateFunction</code>.
/// </para>
///
/// <para>
/// When you're ready to use your function with a CloudFront distribution, use <code>PublishFunction</code>
/// to copy the function from the <code>DEVELOPMENT</code> stage to <code>LIVE</code>.
/// When it's live, you can attach the function to a distribution's cache behavior, using
/// the function's ARN.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param>
///
/// <returns>The response from the CreateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionAlreadyExistsException">
/// A function with the same name already exists in this Amazon Web Services account.
/// To create a function, you must provide a unique name. To update an existing function,
/// use <code>UpdateFunction</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionsException">
/// You have reached the maximum number of CloudFront functions for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction">REST API Reference for CreateFunction Operation</seealso>
CreateFunctionResponse CreateFunction(CreateFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction">REST API Reference for CreateFunction Operation</seealso>
IAsyncResult BeginCreateFunction(CreateFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFunction.</param>
///
/// <returns>Returns a CreateFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction">REST API Reference for CreateFunction Operation</seealso>
CreateFunctionResponse EndCreateFunction(IAsyncResult asyncResult);
#endregion
#region CreateInvalidation
/// <summary>
/// Create a new invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateInvalidation service method.</param>
///
/// <returns>The response from the CreateInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.BatchTooLargeException">
/// Invalidation batch specified is too large.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyInvalidationsInProgressException">
/// You have exceeded the maximum number of allowable InProgress invalidation batch requests,
/// or invalidation objects.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation">REST API Reference for CreateInvalidation Operation</seealso>
CreateInvalidationResponse CreateInvalidation(CreateInvalidationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateInvalidation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateInvalidation operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateInvalidation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation">REST API Reference for CreateInvalidation Operation</seealso>
IAsyncResult BeginCreateInvalidation(CreateInvalidationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateInvalidation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateInvalidation.</param>
///
/// <returns>Returns a CreateInvalidationResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation">REST API Reference for CreateInvalidation Operation</seealso>
CreateInvalidationResponse EndCreateInvalidation(IAsyncResult asyncResult);
#endregion
#region CreateKeyGroup
/// <summary>
/// Creates a key group that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront
/// signed URLs and signed cookies</a>.
///
///
/// <para>
/// To create a key group, you must specify at least one public key for the key group.
/// After you create a key group, you can reference it from one or more cache behaviors.
/// When you reference a key group in a cache behavior, CloudFront requires signed URLs
/// or signed cookies for all requests that match the cache behavior. The URLs or cookies
/// must be signed with a private key whose corresponding public key is in the key group.
/// The signed URL or cookie contains information about which public key CloudFront should
/// use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving
/// private content</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateKeyGroup service method.</param>
///
/// <returns>The response from the CreateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsException">
/// You have reached the maximum number of key groups for this Amazon Web Services account.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyGroup">REST API Reference for CreateKeyGroup Operation</seealso>
CreateKeyGroupResponse CreateKeyGroup(CreateKeyGroupRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateKeyGroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateKeyGroup operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateKeyGroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyGroup">REST API Reference for CreateKeyGroup Operation</seealso>
IAsyncResult BeginCreateKeyGroup(CreateKeyGroupRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateKeyGroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateKeyGroup.</param>
///
/// <returns>Returns a CreateKeyGroupResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyGroup">REST API Reference for CreateKeyGroup Operation</seealso>
CreateKeyGroupResponse EndCreateKeyGroup(IAsyncResult asyncResult);
#endregion
#region CreateMonitoringSubscription
/// <summary>
/// Enables additional CloudWatch metrics for the specified CloudFront distribution. The
/// additional metrics incur an additional cost.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional">Viewing
/// additional CloudFront distribution metrics</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateMonitoringSubscription service method.</param>
///
/// <returns>The response from the CreateMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MonitoringSubscriptionAlreadyExistsException">
/// A monitoring subscription already exists for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription">REST API Reference for CreateMonitoringSubscription Operation</seealso>
CreateMonitoringSubscriptionResponse CreateMonitoringSubscription(CreateMonitoringSubscriptionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateMonitoringSubscription operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateMonitoringSubscription operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateMonitoringSubscription
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription">REST API Reference for CreateMonitoringSubscription Operation</seealso>
IAsyncResult BeginCreateMonitoringSubscription(CreateMonitoringSubscriptionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateMonitoringSubscription operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateMonitoringSubscription.</param>
///
/// <returns>Returns a CreateMonitoringSubscriptionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription">REST API Reference for CreateMonitoringSubscription Operation</seealso>
CreateMonitoringSubscriptionResponse EndCreateMonitoringSubscription(IAsyncResult asyncResult);
#endregion
#region CreateOriginAccessControl
/// <summary>
/// Creates a new origin access control in CloudFront. After you create an origin access
/// control, you can add it to an origin in a CloudFront distribution so that CloudFront
/// sends authenticated (signed) requests to the origin.
///
///
/// <para>
/// This makes it possible to block public access to the origin, allowing viewers (users)
/// to access the origin's content only through CloudFront.
/// </para>
///
/// <para>
/// For more information about using a CloudFront origin access control, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html">Restricting
/// access to an Amazon Web Services origin</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginAccessControl service method.</param>
///
/// <returns>The response from the CreateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginAccessControlsException">
/// The number of origin access controls in your Amazon Web Services account exceeds the
/// maximum allowed.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl">REST API Reference for CreateOriginAccessControl Operation</seealso>
CreateOriginAccessControlResponse CreateOriginAccessControl(CreateOriginAccessControlRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateOriginAccessControl operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateOriginAccessControl operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateOriginAccessControl
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl">REST API Reference for CreateOriginAccessControl Operation</seealso>
IAsyncResult BeginCreateOriginAccessControl(CreateOriginAccessControlRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateOriginAccessControl operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateOriginAccessControl.</param>
///
/// <returns>Returns a CreateOriginAccessControlResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl">REST API Reference for CreateOriginAccessControl Operation</seealso>
CreateOriginAccessControlResponse EndCreateOriginAccessControl(IAsyncResult asyncResult);
#endregion
#region CreateOriginRequestPolicy
/// <summary>
/// Creates an origin request policy.
///
///
/// <para>
/// After you create an origin request policy, you can attach it to one or more cache
/// behaviors. 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 a valid 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>
///
/// <para>
/// For more information about origin request policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html">Controlling
/// origin requests</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginRequestPolicy service method.</param>
///
/// <returns>The response from the CreateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginRequestPoliciesException">
/// You have reached the maximum number of origin request policies for this Amazon Web
/// Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy">REST API Reference for CreateOriginRequestPolicy Operation</seealso>
CreateOriginRequestPolicyResponse CreateOriginRequestPolicy(CreateOriginRequestPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateOriginRequestPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateOriginRequestPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateOriginRequestPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy">REST API Reference for CreateOriginRequestPolicy Operation</seealso>
IAsyncResult BeginCreateOriginRequestPolicy(CreateOriginRequestPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateOriginRequestPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateOriginRequestPolicy.</param>
///
/// <returns>Returns a CreateOriginRequestPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy">REST API Reference for CreateOriginRequestPolicy Operation</seealso>
CreateOriginRequestPolicyResponse EndCreateOriginRequestPolicy(IAsyncResult asyncResult);
#endregion
#region CreatePublicKey
/// <summary>
/// Uploads a public key to CloudFront 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>
/// <param name="request">Container for the necessary parameters to execute the CreatePublicKey service method.</param>
///
/// <returns>The response from the CreatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyAlreadyExistsException">
/// The specified public key already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysException">
/// The maximum number of public keys for field-level encryption have been created. To
/// create a new public key, delete one of the existing keys.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey">REST API Reference for CreatePublicKey Operation</seealso>
CreatePublicKeyResponse CreatePublicKey(CreatePublicKeyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreatePublicKey operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreatePublicKey operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePublicKey
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey">REST API Reference for CreatePublicKey Operation</seealso>
IAsyncResult BeginCreatePublicKey(CreatePublicKeyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreatePublicKey operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePublicKey.</param>
///
/// <returns>Returns a CreatePublicKeyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey">REST API Reference for CreatePublicKey Operation</seealso>
CreatePublicKeyResponse EndCreatePublicKey(IAsyncResult asyncResult);
#endregion
#region CreateRealtimeLogConfig
/// <summary>
/// Creates a real-time log configuration.
///
///
/// <para>
/// After you create a real-time log configuration, you can attach it to one or more cache
/// behaviors to send real-time log data to the specified Amazon Kinesis data stream.
/// </para>
///
/// <para>
/// For more information about real-time log configurations, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time
/// logs</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateRealtimeLogConfig service method.</param>
///
/// <returns>The response from the CreateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRealtimeLogConfigsException">
/// You have reached the maximum number of real-time log configurations for this Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig">REST API Reference for CreateRealtimeLogConfig Operation</seealso>
CreateRealtimeLogConfigResponse CreateRealtimeLogConfig(CreateRealtimeLogConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateRealtimeLogConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateRealtimeLogConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRealtimeLogConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig">REST API Reference for CreateRealtimeLogConfig Operation</seealso>
IAsyncResult BeginCreateRealtimeLogConfig(CreateRealtimeLogConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateRealtimeLogConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateRealtimeLogConfig.</param>
///
/// <returns>Returns a CreateRealtimeLogConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig">REST API Reference for CreateRealtimeLogConfig Operation</seealso>
CreateRealtimeLogConfigResponse EndCreateRealtimeLogConfig(IAsyncResult asyncResult);
#endregion
#region CreateResponseHeadersPolicy
/// <summary>
/// Creates a response headers policy.
///
///
/// <para>
/// A response headers policy contains information about a set of HTTP headers. To create
/// a response headers policy, you provide some metadata about the policy and a set of
/// configurations that specify the 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>
/// <param name="request">Container for the necessary parameters to execute the CreateResponseHeadersPolicy service method.</param>
///
/// <returns>The response from the CreateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyResponseHeadersPoliciesException">
/// You have reached the maximum number of response headers policies for this Amazon Web
/// Services account.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy">REST API Reference for CreateResponseHeadersPolicy Operation</seealso>
CreateResponseHeadersPolicyResponse CreateResponseHeadersPolicy(CreateResponseHeadersPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateResponseHeadersPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateResponseHeadersPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy">REST API Reference for CreateResponseHeadersPolicy Operation</seealso>
IAsyncResult BeginCreateResponseHeadersPolicy(CreateResponseHeadersPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateResponseHeadersPolicy.</param>
///
/// <returns>Returns a CreateResponseHeadersPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy">REST API Reference for CreateResponseHeadersPolicy Operation</seealso>
CreateResponseHeadersPolicyResponse EndCreateResponseHeadersPolicy(IAsyncResult asyncResult);
#endregion
#region CreateStreamingDistribution
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistribution service method.</param>
///
/// <returns>The response from the CreateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution">REST API Reference for CreateStreamingDistribution Operation</seealso>
CreateStreamingDistributionResponse CreateStreamingDistribution(CreateStreamingDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateStreamingDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateStreamingDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution">REST API Reference for CreateStreamingDistribution Operation</seealso>
IAsyncResult BeginCreateStreamingDistribution(CreateStreamingDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateStreamingDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStreamingDistribution.</param>
///
/// <returns>Returns a CreateStreamingDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution">REST API Reference for CreateStreamingDistribution Operation</seealso>
CreateStreamingDistributionResponse EndCreateStreamingDistribution(IAsyncResult asyncResult);
#endregion
#region CreateStreamingDistributionWithTags
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags service method.</param>
///
/// <returns>The response from the CreateStreamingDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags">REST API Reference for CreateStreamingDistributionWithTags Operation</seealso>
CreateStreamingDistributionWithTagsResponse CreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateStreamingDistributionWithTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateStreamingDistributionWithTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags">REST API Reference for CreateStreamingDistributionWithTags Operation</seealso>
IAsyncResult BeginCreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateStreamingDistributionWithTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateStreamingDistributionWithTags.</param>
///
/// <returns>Returns a CreateStreamingDistributionWithTagsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags">REST API Reference for CreateStreamingDistributionWithTags Operation</seealso>
CreateStreamingDistributionWithTagsResponse EndCreateStreamingDistributionWithTags(IAsyncResult asyncResult);
#endregion
#region DeleteCachePolicy
/// <summary>
/// Deletes a cache policy.
///
///
/// <para>
/// You cannot delete a cache policy if it's attached to a cache behavior. First update
/// your distributions to remove the cache policy from all cache behaviors, then delete
/// the cache policy.
/// </para>
///
/// <para>
/// To delete a cache policy, you must provide the policy's identifier and version. To
/// get these values, you can use <code>ListCachePolicies</code> or <code>GetCachePolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCachePolicy service method.</param>
///
/// <returns>The response from the DeleteCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyInUseException">
/// Cannot delete the cache policy because it is attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy">REST API Reference for DeleteCachePolicy Operation</seealso>
DeleteCachePolicyResponse DeleteCachePolicy(DeleteCachePolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteCachePolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteCachePolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCachePolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy">REST API Reference for DeleteCachePolicy Operation</seealso>
IAsyncResult BeginDeleteCachePolicy(DeleteCachePolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteCachePolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCachePolicy.</param>
///
/// <returns>Returns a DeleteCachePolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy">REST API Reference for DeleteCachePolicy Operation</seealso>
DeleteCachePolicyResponse EndDeleteCachePolicy(IAsyncResult asyncResult);
#endregion
#region DeleteCloudFrontOriginAccessIdentity
/// <summary>
/// Delete an origin access identity.
/// </summary>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity();
/// <summary>
/// Delete an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity service method.</param>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCloudFrontOriginAccessIdentity
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
IAsyncResult BeginDeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCloudFrontOriginAccessIdentity.</param>
///
/// <returns>Returns a DeleteCloudFrontOriginAccessIdentityResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
DeleteCloudFrontOriginAccessIdentityResponse EndDeleteCloudFrontOriginAccessIdentity(IAsyncResult asyncResult);
#endregion
#region DeleteContinuousDeploymentPolicy
/// <summary>
/// Deletes a continuous deployment policy.
///
///
/// <para>
/// You cannot delete a continuous deployment policy that's attached to a primary distribution.
/// First update your distribution to remove the continuous deployment policy, then you
/// can delete the policy.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteContinuousDeploymentPolicy service method.</param>
///
/// <returns>The response from the DeleteContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy">REST API Reference for DeleteContinuousDeploymentPolicy Operation</seealso>
DeleteContinuousDeploymentPolicyResponse DeleteContinuousDeploymentPolicy(DeleteContinuousDeploymentPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteContinuousDeploymentPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteContinuousDeploymentPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy">REST API Reference for DeleteContinuousDeploymentPolicy Operation</seealso>
IAsyncResult BeginDeleteContinuousDeploymentPolicy(DeleteContinuousDeploymentPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteContinuousDeploymentPolicy.</param>
///
/// <returns>Returns a DeleteContinuousDeploymentPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy">REST API Reference for DeleteContinuousDeploymentPolicy Operation</seealso>
DeleteContinuousDeploymentPolicyResponse EndDeleteContinuousDeploymentPolicy(IAsyncResult asyncResult);
#endregion
#region DeleteDistribution
/// <summary>
/// Delete a distribution.
/// </summary>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
DeleteDistributionResponse DeleteDistribution();
/// <summary>
/// Delete a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDistribution service method.</param>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
DeleteDistributionResponse DeleteDistribution(DeleteDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
IAsyncResult BeginDeleteDistribution(DeleteDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDistribution.</param>
///
/// <returns>Returns a DeleteDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
DeleteDistributionResponse EndDeleteDistribution(IAsyncResult asyncResult);
#endregion
#region DeleteFieldLevelEncryptionConfig
/// <summary>
/// Remove a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionConfig service method.</param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigInUseException">
/// The specified configuration for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig">REST API Reference for DeleteFieldLevelEncryptionConfig Operation</seealso>
DeleteFieldLevelEncryptionConfigResponse DeleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFieldLevelEncryptionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig">REST API Reference for DeleteFieldLevelEncryptionConfig Operation</seealso>
IAsyncResult BeginDeleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFieldLevelEncryptionConfig.</param>
///
/// <returns>Returns a DeleteFieldLevelEncryptionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig">REST API Reference for DeleteFieldLevelEncryptionConfig Operation</seealso>
DeleteFieldLevelEncryptionConfigResponse EndDeleteFieldLevelEncryptionConfig(IAsyncResult asyncResult);
#endregion
#region DeleteFieldLevelEncryptionProfile
/// <summary>
/// Remove a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionProfile service method.</param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileInUseException">
/// The specified profile for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile">REST API Reference for DeleteFieldLevelEncryptionProfile Operation</seealso>
DeleteFieldLevelEncryptionProfileResponse DeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionProfile operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFieldLevelEncryptionProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile">REST API Reference for DeleteFieldLevelEncryptionProfile Operation</seealso>
IAsyncResult BeginDeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFieldLevelEncryptionProfile.</param>
///
/// <returns>Returns a DeleteFieldLevelEncryptionProfileResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile">REST API Reference for DeleteFieldLevelEncryptionProfile Operation</seealso>
DeleteFieldLevelEncryptionProfileResponse EndDeleteFieldLevelEncryptionProfile(IAsyncResult asyncResult);
#endregion
#region DeleteFunction
/// <summary>
/// Deletes a CloudFront function.
///
///
/// <para>
/// You cannot delete a function if it's associated with a cache behavior. First, update
/// your distributions to remove the function association from all cache behaviors, then
/// delete the function.
/// </para>
///
/// <para>
/// To delete 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param>
///
/// <returns>The response from the DeleteFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionInUseException">
/// Cannot delete the function because it's attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso>
DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso>
IAsyncResult BeginDeleteFunction(DeleteFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFunction.</param>
///
/// <returns>Returns a DeleteFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso>
DeleteFunctionResponse EndDeleteFunction(IAsyncResult asyncResult);
#endregion
#region DeleteKeyGroup
/// <summary>
/// Deletes a key group.
///
///
/// <para>
/// You cannot delete a key group that is referenced in a cache behavior. First update
/// your distributions to remove the key group from all cache behaviors, then delete the
/// key group.
/// </para>
///
/// <para>
/// To delete a key group, you must provide the key group's identifier and version. To
/// get these values, use <code>ListKeyGroups</code> followed by <code>GetKeyGroup</code>
/// or <code>GetKeyGroupConfig</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteKeyGroup service method.</param>
///
/// <returns>The response from the DeleteKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResourceInUseException">
/// Cannot delete this resource because it is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyGroup">REST API Reference for DeleteKeyGroup Operation</seealso>
DeleteKeyGroupResponse DeleteKeyGroup(DeleteKeyGroupRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteKeyGroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteKeyGroup operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteKeyGroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyGroup">REST API Reference for DeleteKeyGroup Operation</seealso>
IAsyncResult BeginDeleteKeyGroup(DeleteKeyGroupRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteKeyGroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteKeyGroup.</param>
///
/// <returns>Returns a DeleteKeyGroupResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyGroup">REST API Reference for DeleteKeyGroup Operation</seealso>
DeleteKeyGroupResponse EndDeleteKeyGroup(IAsyncResult asyncResult);
#endregion
#region DeleteMonitoringSubscription
/// <summary>
/// Disables additional CloudWatch metrics for the specified CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteMonitoringSubscription service method.</param>
///
/// <returns>The response from the DeleteMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription">REST API Reference for DeleteMonitoringSubscription Operation</seealso>
DeleteMonitoringSubscriptionResponse DeleteMonitoringSubscription(DeleteMonitoringSubscriptionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteMonitoringSubscription operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteMonitoringSubscription operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMonitoringSubscription
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription">REST API Reference for DeleteMonitoringSubscription Operation</seealso>
IAsyncResult BeginDeleteMonitoringSubscription(DeleteMonitoringSubscriptionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteMonitoringSubscription operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteMonitoringSubscription.</param>
///
/// <returns>Returns a DeleteMonitoringSubscriptionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription">REST API Reference for DeleteMonitoringSubscription Operation</seealso>
DeleteMonitoringSubscriptionResponse EndDeleteMonitoringSubscription(IAsyncResult asyncResult);
#endregion
#region DeleteOriginAccessControl
/// <summary>
/// Deletes a CloudFront origin access control.
///
///
/// <para>
/// You cannot delete an origin access control if it's in use. First, update all distributions
/// to remove the origin access control from all origins, then delete the origin access
/// control.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginAccessControl service method.</param>
///
/// <returns>The response from the DeleteOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlInUseException">
/// Cannot delete the origin access control because it's in use by one or more distributions.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl">REST API Reference for DeleteOriginAccessControl Operation</seealso>
DeleteOriginAccessControlResponse DeleteOriginAccessControl(DeleteOriginAccessControlRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteOriginAccessControl operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginAccessControl operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteOriginAccessControl
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl">REST API Reference for DeleteOriginAccessControl Operation</seealso>
IAsyncResult BeginDeleteOriginAccessControl(DeleteOriginAccessControlRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteOriginAccessControl operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteOriginAccessControl.</param>
///
/// <returns>Returns a DeleteOriginAccessControlResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl">REST API Reference for DeleteOriginAccessControl Operation</seealso>
DeleteOriginAccessControlResponse EndDeleteOriginAccessControl(IAsyncResult asyncResult);
#endregion
#region DeleteOriginRequestPolicy
/// <summary>
/// Deletes an origin request policy.
///
///
/// <para>
/// You cannot delete an origin request policy if it's attached to any cache behaviors.
/// First update your distributions to remove the origin request policy from all cache
/// behaviors, then delete the origin request policy.
/// </para>
///
/// <para>
/// To delete an origin request policy, you must provide the policy's identifier and version.
/// To get the identifier, you can use <code>ListOriginRequestPolicies</code> or <code>GetOriginRequestPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginRequestPolicy service method.</param>
///
/// <returns>The response from the DeleteOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyInUseException">
/// Cannot delete the origin request policy because it is attached to one or more cache
/// behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy">REST API Reference for DeleteOriginRequestPolicy Operation</seealso>
DeleteOriginRequestPolicyResponse DeleteOriginRequestPolicy(DeleteOriginRequestPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteOriginRequestPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginRequestPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteOriginRequestPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy">REST API Reference for DeleteOriginRequestPolicy Operation</seealso>
IAsyncResult BeginDeleteOriginRequestPolicy(DeleteOriginRequestPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteOriginRequestPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteOriginRequestPolicy.</param>
///
/// <returns>Returns a DeleteOriginRequestPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy">REST API Reference for DeleteOriginRequestPolicy Operation</seealso>
DeleteOriginRequestPolicyResponse EndDeleteOriginRequestPolicy(IAsyncResult asyncResult);
#endregion
#region DeletePublicKey
/// <summary>
/// Remove a public key you previously added to CloudFront.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePublicKey service method.</param>
///
/// <returns>The response from the DeletePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyInUseException">
/// The specified public key is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey">REST API Reference for DeletePublicKey Operation</seealso>
DeletePublicKeyResponse DeletePublicKey(DeletePublicKeyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeletePublicKey operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeletePublicKey operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePublicKey
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey">REST API Reference for DeletePublicKey Operation</seealso>
IAsyncResult BeginDeletePublicKey(DeletePublicKeyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeletePublicKey operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePublicKey.</param>
///
/// <returns>Returns a DeletePublicKeyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey">REST API Reference for DeletePublicKey Operation</seealso>
DeletePublicKeyResponse EndDeletePublicKey(IAsyncResult asyncResult);
#endregion
#region DeleteRealtimeLogConfig
/// <summary>
/// Deletes a real-time log configuration.
///
///
/// <para>
/// You cannot delete a real-time log configuration if it's attached to a cache behavior.
/// First update your distributions to remove the real-time log configuration from all
/// cache behaviors, then delete the real-time log configuration.
/// </para>
///
/// <para>
/// To delete a real-time log configuration, you can provide the configuration's name
/// or its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to delete.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRealtimeLogConfig service method.</param>
///
/// <returns>The response from the DeleteRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigInUseException">
/// Cannot delete the real-time log configuration because it is attached to one or more
/// cache behaviors.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig">REST API Reference for DeleteRealtimeLogConfig Operation</seealso>
DeleteRealtimeLogConfigResponse DeleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteRealtimeLogConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteRealtimeLogConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRealtimeLogConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig">REST API Reference for DeleteRealtimeLogConfig Operation</seealso>
IAsyncResult BeginDeleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteRealtimeLogConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteRealtimeLogConfig.</param>
///
/// <returns>Returns a DeleteRealtimeLogConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig">REST API Reference for DeleteRealtimeLogConfig Operation</seealso>
DeleteRealtimeLogConfigResponse EndDeleteRealtimeLogConfig(IAsyncResult asyncResult);
#endregion
#region DeleteResponseHeadersPolicy
/// <summary>
/// Deletes a response headers policy.
///
///
/// <para>
/// You cannot delete a response headers policy if it's attached to a cache behavior.
/// First update your distributions to remove the response headers policy from all cache
/// behaviors, then delete the response headers policy.
/// </para>
///
/// <para>
/// To delete a response headers policy, you must provide the policy's identifier and
/// version. To get these values, you can use <code>ListResponseHeadersPolicies</code>
/// or <code>GetResponseHeadersPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteResponseHeadersPolicy service method.</param>
///
/// <returns>The response from the DeleteResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyInUseException">
/// Cannot delete the response headers policy because it is attached to one or more cache
/// behaviors in a CloudFront distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy">REST API Reference for DeleteResponseHeadersPolicy Operation</seealso>
DeleteResponseHeadersPolicyResponse DeleteResponseHeadersPolicy(DeleteResponseHeadersPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteResponseHeadersPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteResponseHeadersPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy">REST API Reference for DeleteResponseHeadersPolicy Operation</seealso>
IAsyncResult BeginDeleteResponseHeadersPolicy(DeleteResponseHeadersPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteResponseHeadersPolicy.</param>
///
/// <returns>Returns a DeleteResponseHeadersPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy">REST API Reference for DeleteResponseHeadersPolicy Operation</seealso>
DeleteResponseHeadersPolicyResponse EndDeleteResponseHeadersPolicy(IAsyncResult asyncResult);
#endregion
#region DeleteStreamingDistribution
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
DeleteStreamingDistributionResponse DeleteStreamingDistribution();
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteStreamingDistribution service method.</param>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
DeleteStreamingDistributionResponse DeleteStreamingDistribution(DeleteStreamingDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteStreamingDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteStreamingDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteStreamingDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
IAsyncResult BeginDeleteStreamingDistribution(DeleteStreamingDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteStreamingDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteStreamingDistribution.</param>
///
/// <returns>Returns a DeleteStreamingDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
DeleteStreamingDistributionResponse EndDeleteStreamingDistribution(IAsyncResult asyncResult);
#endregion
#region DescribeFunction
/// <summary>
/// Gets configuration information and metadata about a CloudFront function, but not the
/// function's code. To get a function's code, use <code>GetFunction</code>.
///
///
/// <para>
/// To get configuration information and metadata about a function, you must provide the
/// function's name and stage. To get these values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeFunction service method.</param>
///
/// <returns>The response from the DescribeFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction">REST API Reference for DescribeFunction Operation</seealso>
DescribeFunctionResponse DescribeFunction(DescribeFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction">REST API Reference for DescribeFunction Operation</seealso>
IAsyncResult BeginDescribeFunction(DescribeFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeFunction.</param>
///
/// <returns>Returns a DescribeFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction">REST API Reference for DescribeFunction Operation</seealso>
DescribeFunctionResponse EndDescribeFunction(IAsyncResult asyncResult);
#endregion
#region GetCachePolicy
/// <summary>
/// Gets a cache policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get a cache policy, you must provide the policy's identifier. If the cache policy
/// is attached to a distribution's cache behavior, you can get the policy's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache
/// policy is not attached to a cache behavior, you can get the identifier using <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicy service method.</param>
///
/// <returns>The response from the GetCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy">REST API Reference for GetCachePolicy Operation</seealso>
GetCachePolicyResponse GetCachePolicy(GetCachePolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetCachePolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCachePolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy">REST API Reference for GetCachePolicy Operation</seealso>
IAsyncResult BeginGetCachePolicy(GetCachePolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetCachePolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCachePolicy.</param>
///
/// <returns>Returns a GetCachePolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy">REST API Reference for GetCachePolicy Operation</seealso>
GetCachePolicyResponse EndGetCachePolicy(IAsyncResult asyncResult);
#endregion
#region GetCachePolicyConfig
/// <summary>
/// Gets a cache policy configuration.
///
///
/// <para>
/// To get a cache policy configuration, you must provide the policy's identifier. If
/// the cache policy is attached to a distribution's cache behavior, you can get the policy's
/// identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If
/// the cache policy is not attached to a cache behavior, you can get the identifier using
/// <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicyConfig service method.</param>
///
/// <returns>The response from the GetCachePolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig">REST API Reference for GetCachePolicyConfig Operation</seealso>
GetCachePolicyConfigResponse GetCachePolicyConfig(GetCachePolicyConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetCachePolicyConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicyConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCachePolicyConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig">REST API Reference for GetCachePolicyConfig Operation</seealso>
IAsyncResult BeginGetCachePolicyConfig(GetCachePolicyConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetCachePolicyConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCachePolicyConfig.</param>
///
/// <returns>Returns a GetCachePolicyConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig">REST API Reference for GetCachePolicyConfig Operation</seealso>
GetCachePolicyConfigResponse EndGetCachePolicyConfig(IAsyncResult asyncResult);
#endregion
#region GetCloudFrontOriginAccessIdentity
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity();
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity service method.</param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCloudFrontOriginAccessIdentity
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
IAsyncResult BeginGetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCloudFrontOriginAccessIdentity.</param>
///
/// <returns>Returns a GetCloudFrontOriginAccessIdentityResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
GetCloudFrontOriginAccessIdentityResponse EndGetCloudFrontOriginAccessIdentity(IAsyncResult asyncResult);
#endregion
#region GetCloudFrontOriginAccessIdentityConfig
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig();
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig service method.</param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCloudFrontOriginAccessIdentityConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
IAsyncResult BeginGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetCloudFrontOriginAccessIdentityConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCloudFrontOriginAccessIdentityConfig.</param>
///
/// <returns>Returns a GetCloudFrontOriginAccessIdentityConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
GetCloudFrontOriginAccessIdentityConfigResponse EndGetCloudFrontOriginAccessIdentityConfig(IAsyncResult asyncResult);
#endregion
#region GetContinuousDeploymentPolicy
/// <summary>
/// Gets a continuous deployment policy, including metadata (the policy's identifier and
/// the date and time when the policy was last modified).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicy service method.</param>
///
/// <returns>The response from the GetContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy">REST API Reference for GetContinuousDeploymentPolicy Operation</seealso>
GetContinuousDeploymentPolicyResponse GetContinuousDeploymentPolicy(GetContinuousDeploymentPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetContinuousDeploymentPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy">REST API Reference for GetContinuousDeploymentPolicy Operation</seealso>
IAsyncResult BeginGetContinuousDeploymentPolicy(GetContinuousDeploymentPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetContinuousDeploymentPolicy.</param>
///
/// <returns>Returns a GetContinuousDeploymentPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy">REST API Reference for GetContinuousDeploymentPolicy Operation</seealso>
GetContinuousDeploymentPolicyResponse EndGetContinuousDeploymentPolicy(IAsyncResult asyncResult);
#endregion
#region GetContinuousDeploymentPolicyConfig
/// <summary>
/// Gets configuration information about a continuous deployment policy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicyConfig service method.</param>
///
/// <returns>The response from the GetContinuousDeploymentPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig">REST API Reference for GetContinuousDeploymentPolicyConfig Operation</seealso>
GetContinuousDeploymentPolicyConfigResponse GetContinuousDeploymentPolicyConfig(GetContinuousDeploymentPolicyConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetContinuousDeploymentPolicyConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicyConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetContinuousDeploymentPolicyConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig">REST API Reference for GetContinuousDeploymentPolicyConfig Operation</seealso>
IAsyncResult BeginGetContinuousDeploymentPolicyConfig(GetContinuousDeploymentPolicyConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetContinuousDeploymentPolicyConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetContinuousDeploymentPolicyConfig.</param>
///
/// <returns>Returns a GetContinuousDeploymentPolicyConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig">REST API Reference for GetContinuousDeploymentPolicyConfig Operation</seealso>
GetContinuousDeploymentPolicyConfigResponse EndGetContinuousDeploymentPolicyConfig(IAsyncResult asyncResult);
#endregion
#region GetDistribution
/// <summary>
/// Get the information about a distribution.
/// </summary>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
GetDistributionResponse GetDistribution();
/// <summary>
/// Get the information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistribution service method.</param>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
GetDistributionResponse GetDistribution(GetDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
IAsyncResult BeginGetDistribution(GetDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDistribution.</param>
///
/// <returns>Returns a GetDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
GetDistributionResponse EndGetDistribution(IAsyncResult asyncResult);
#endregion
#region GetDistributionConfig
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
GetDistributionConfigResponse GetDistributionConfig();
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistributionConfig service method.</param>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
GetDistributionConfigResponse GetDistributionConfig(GetDistributionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetDistributionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDistributionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDistributionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
IAsyncResult BeginGetDistributionConfig(GetDistributionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetDistributionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDistributionConfig.</param>
///
/// <returns>Returns a GetDistributionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
GetDistributionConfigResponse EndGetDistributionConfig(IAsyncResult asyncResult);
#endregion
#region GetFieldLevelEncryption
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryption service method.</param>
///
/// <returns>The response from the GetFieldLevelEncryption service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption">REST API Reference for GetFieldLevelEncryption Operation</seealso>
GetFieldLevelEncryptionResponse GetFieldLevelEncryption(GetFieldLevelEncryptionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetFieldLevelEncryption operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryption operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFieldLevelEncryption
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption">REST API Reference for GetFieldLevelEncryption Operation</seealso>
IAsyncResult BeginGetFieldLevelEncryption(GetFieldLevelEncryptionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetFieldLevelEncryption operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFieldLevelEncryption.</param>
///
/// <returns>Returns a GetFieldLevelEncryptionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption">REST API Reference for GetFieldLevelEncryption Operation</seealso>
GetFieldLevelEncryptionResponse EndGetFieldLevelEncryption(IAsyncResult asyncResult);
#endregion
#region GetFieldLevelEncryptionConfig
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionConfig service method.</param>
///
/// <returns>The response from the GetFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig">REST API Reference for GetFieldLevelEncryptionConfig Operation</seealso>
GetFieldLevelEncryptionConfigResponse GetFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFieldLevelEncryptionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig">REST API Reference for GetFieldLevelEncryptionConfig Operation</seealso>
IAsyncResult BeginGetFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFieldLevelEncryptionConfig.</param>
///
/// <returns>Returns a GetFieldLevelEncryptionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig">REST API Reference for GetFieldLevelEncryptionConfig Operation</seealso>
GetFieldLevelEncryptionConfigResponse EndGetFieldLevelEncryptionConfig(IAsyncResult asyncResult);
#endregion
#region GetFieldLevelEncryptionProfile
/// <summary>
/// Get the field-level encryption profile information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfile service method.</param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile">REST API Reference for GetFieldLevelEncryptionProfile Operation</seealso>
GetFieldLevelEncryptionProfileResponse GetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfile operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFieldLevelEncryptionProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile">REST API Reference for GetFieldLevelEncryptionProfile Operation</seealso>
IAsyncResult BeginGetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFieldLevelEncryptionProfile.</param>
///
/// <returns>Returns a GetFieldLevelEncryptionProfileResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile">REST API Reference for GetFieldLevelEncryptionProfile Operation</seealso>
GetFieldLevelEncryptionProfileResponse EndGetFieldLevelEncryptionProfile(IAsyncResult asyncResult);
#endregion
#region GetFieldLevelEncryptionProfileConfig
/// <summary>
/// Get the field-level encryption profile configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfileConfig service method.</param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfileConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig">REST API Reference for GetFieldLevelEncryptionProfileConfig Operation</seealso>
GetFieldLevelEncryptionProfileConfigResponse GetFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetFieldLevelEncryptionProfileConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfileConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFieldLevelEncryptionProfileConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig">REST API Reference for GetFieldLevelEncryptionProfileConfig Operation</seealso>
IAsyncResult BeginGetFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetFieldLevelEncryptionProfileConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFieldLevelEncryptionProfileConfig.</param>
///
/// <returns>Returns a GetFieldLevelEncryptionProfileConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig">REST API Reference for GetFieldLevelEncryptionProfileConfig Operation</seealso>
GetFieldLevelEncryptionProfileConfigResponse EndGetFieldLevelEncryptionProfileConfig(IAsyncResult asyncResult);
#endregion
#region GetFunction
/// <summary>
/// Gets the code of a CloudFront function. To get configuration information and metadata
/// about a function, use <code>DescribeFunction</code>.
///
///
/// <para>
/// To get a function's code, you must provide the function's name and stage. To get these
/// values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param>
///
/// <returns>The response from the GetFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction">REST API Reference for GetFunction Operation</seealso>
GetFunctionResponse GetFunction(GetFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction">REST API Reference for GetFunction Operation</seealso>
IAsyncResult BeginGetFunction(GetFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFunction.</param>
///
/// <returns>Returns a GetFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction">REST API Reference for GetFunction Operation</seealso>
GetFunctionResponse EndGetFunction(IAsyncResult asyncResult);
#endregion
#region GetInvalidation
/// <summary>
/// Get the information about an invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetInvalidation service method.</param>
///
/// <returns>The response from the GetInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchInvalidationException">
/// The specified invalidation does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation">REST API Reference for GetInvalidation Operation</seealso>
GetInvalidationResponse GetInvalidation(GetInvalidationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetInvalidation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetInvalidation operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInvalidation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation">REST API Reference for GetInvalidation Operation</seealso>
IAsyncResult BeginGetInvalidation(GetInvalidationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetInvalidation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetInvalidation.</param>
///
/// <returns>Returns a GetInvalidationResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation">REST API Reference for GetInvalidation Operation</seealso>
GetInvalidationResponse EndGetInvalidation(IAsyncResult asyncResult);
#endregion
#region GetKeyGroup
/// <summary>
/// Gets a key group, including the date and time when the key group was last modified.
///
///
/// <para>
/// To get a key group, you must provide the key group's identifier. If the key group
/// is referenced in a distribution's cache behavior, you can get the key group's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the key group
/// is not referenced in a cache behavior, you can get the identifier using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroup service method.</param>
///
/// <returns>The response from the GetKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroup">REST API Reference for GetKeyGroup Operation</seealso>
GetKeyGroupResponse GetKeyGroup(GetKeyGroupRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetKeyGroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroup operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetKeyGroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroup">REST API Reference for GetKeyGroup Operation</seealso>
IAsyncResult BeginGetKeyGroup(GetKeyGroupRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetKeyGroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetKeyGroup.</param>
///
/// <returns>Returns a GetKeyGroupResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroup">REST API Reference for GetKeyGroup Operation</seealso>
GetKeyGroupResponse EndGetKeyGroup(IAsyncResult asyncResult);
#endregion
#region GetKeyGroupConfig
/// <summary>
/// Gets a key group configuration.
///
///
/// <para>
/// To get a key group configuration, you must provide the key group's identifier. If
/// the key group is referenced in a distribution's cache behavior, you can get the key
/// group's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the key group is not referenced in a cache behavior, you can get the identifier
/// using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroupConfig service method.</param>
///
/// <returns>The response from the GetKeyGroupConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroupConfig">REST API Reference for GetKeyGroupConfig Operation</seealso>
GetKeyGroupConfigResponse GetKeyGroupConfig(GetKeyGroupConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetKeyGroupConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroupConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetKeyGroupConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroupConfig">REST API Reference for GetKeyGroupConfig Operation</seealso>
IAsyncResult BeginGetKeyGroupConfig(GetKeyGroupConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetKeyGroupConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetKeyGroupConfig.</param>
///
/// <returns>Returns a GetKeyGroupConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroupConfig">REST API Reference for GetKeyGroupConfig Operation</seealso>
GetKeyGroupConfigResponse EndGetKeyGroupConfig(IAsyncResult asyncResult);
#endregion
#region GetMonitoringSubscription
/// <summary>
/// Gets information about whether additional CloudWatch metrics are enabled for the specified
/// CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMonitoringSubscription service method.</param>
///
/// <returns>The response from the GetMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription">REST API Reference for GetMonitoringSubscription Operation</seealso>
GetMonitoringSubscriptionResponse GetMonitoringSubscription(GetMonitoringSubscriptionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetMonitoringSubscription operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetMonitoringSubscription operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMonitoringSubscription
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription">REST API Reference for GetMonitoringSubscription Operation</seealso>
IAsyncResult BeginGetMonitoringSubscription(GetMonitoringSubscriptionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetMonitoringSubscription operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMonitoringSubscription.</param>
///
/// <returns>Returns a GetMonitoringSubscriptionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription">REST API Reference for GetMonitoringSubscription Operation</seealso>
GetMonitoringSubscriptionResponse EndGetMonitoringSubscription(IAsyncResult asyncResult);
#endregion
#region GetOriginAccessControl
/// <summary>
/// Gets a CloudFront origin access control, including its unique identifier.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControl service method.</param>
///
/// <returns>The response from the GetOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl">REST API Reference for GetOriginAccessControl Operation</seealso>
GetOriginAccessControlResponse GetOriginAccessControl(GetOriginAccessControlRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetOriginAccessControl operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControl operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetOriginAccessControl
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl">REST API Reference for GetOriginAccessControl Operation</seealso>
IAsyncResult BeginGetOriginAccessControl(GetOriginAccessControlRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetOriginAccessControl operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetOriginAccessControl.</param>
///
/// <returns>Returns a GetOriginAccessControlResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl">REST API Reference for GetOriginAccessControl Operation</seealso>
GetOriginAccessControlResponse EndGetOriginAccessControl(IAsyncResult asyncResult);
#endregion
#region GetOriginAccessControlConfig
/// <summary>
/// Gets a CloudFront origin access control configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControlConfig service method.</param>
///
/// <returns>The response from the GetOriginAccessControlConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig">REST API Reference for GetOriginAccessControlConfig Operation</seealso>
GetOriginAccessControlConfigResponse GetOriginAccessControlConfig(GetOriginAccessControlConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetOriginAccessControlConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControlConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetOriginAccessControlConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig">REST API Reference for GetOriginAccessControlConfig Operation</seealso>
IAsyncResult BeginGetOriginAccessControlConfig(GetOriginAccessControlConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetOriginAccessControlConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetOriginAccessControlConfig.</param>
///
/// <returns>Returns a GetOriginAccessControlConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig">REST API Reference for GetOriginAccessControlConfig Operation</seealso>
GetOriginAccessControlConfigResponse EndGetOriginAccessControlConfig(IAsyncResult asyncResult);
#endregion
#region GetOriginRequestPolicy
/// <summary>
/// Gets an origin request policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get an origin request policy, you must provide the policy's identifier. If the
/// origin request policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicy service method.</param>
///
/// <returns>The response from the GetOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy">REST API Reference for GetOriginRequestPolicy Operation</seealso>
GetOriginRequestPolicyResponse GetOriginRequestPolicy(GetOriginRequestPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetOriginRequestPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetOriginRequestPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy">REST API Reference for GetOriginRequestPolicy Operation</seealso>
IAsyncResult BeginGetOriginRequestPolicy(GetOriginRequestPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetOriginRequestPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetOriginRequestPolicy.</param>
///
/// <returns>Returns a GetOriginRequestPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy">REST API Reference for GetOriginRequestPolicy Operation</seealso>
GetOriginRequestPolicyResponse EndGetOriginRequestPolicy(IAsyncResult asyncResult);
#endregion
#region GetOriginRequestPolicyConfig
/// <summary>
/// Gets an origin request policy configuration.
///
///
/// <para>
/// To get an origin request policy configuration, you must provide the policy's identifier.
/// If the origin request policy is attached to a distribution's cache behavior, you can
/// get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicyConfig service method.</param>
///
/// <returns>The response from the GetOriginRequestPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig">REST API Reference for GetOriginRequestPolicyConfig Operation</seealso>
GetOriginRequestPolicyConfigResponse GetOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetOriginRequestPolicyConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicyConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetOriginRequestPolicyConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig">REST API Reference for GetOriginRequestPolicyConfig Operation</seealso>
IAsyncResult BeginGetOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetOriginRequestPolicyConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetOriginRequestPolicyConfig.</param>
///
/// <returns>Returns a GetOriginRequestPolicyConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig">REST API Reference for GetOriginRequestPolicyConfig Operation</seealso>
GetOriginRequestPolicyConfigResponse EndGetOriginRequestPolicyConfig(IAsyncResult asyncResult);
#endregion
#region GetPublicKey
/// <summary>
/// Gets a public key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKey service method.</param>
///
/// <returns>The response from the GetPublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey">REST API Reference for GetPublicKey Operation</seealso>
GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetPublicKey operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetPublicKey operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPublicKey
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey">REST API Reference for GetPublicKey Operation</seealso>
IAsyncResult BeginGetPublicKey(GetPublicKeyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetPublicKey operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPublicKey.</param>
///
/// <returns>Returns a GetPublicKeyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey">REST API Reference for GetPublicKey Operation</seealso>
GetPublicKeyResponse EndGetPublicKey(IAsyncResult asyncResult);
#endregion
#region GetPublicKeyConfig
/// <summary>
/// Gets a public key configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKeyConfig service method.</param>
///
/// <returns>The response from the GetPublicKeyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig">REST API Reference for GetPublicKeyConfig Operation</seealso>
GetPublicKeyConfigResponse GetPublicKeyConfig(GetPublicKeyConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetPublicKeyConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetPublicKeyConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPublicKeyConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig">REST API Reference for GetPublicKeyConfig Operation</seealso>
IAsyncResult BeginGetPublicKeyConfig(GetPublicKeyConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetPublicKeyConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPublicKeyConfig.</param>
///
/// <returns>Returns a GetPublicKeyConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig">REST API Reference for GetPublicKeyConfig Operation</seealso>
GetPublicKeyConfigResponse EndGetPublicKeyConfig(IAsyncResult asyncResult);
#endregion
#region GetRealtimeLogConfig
/// <summary>
/// Gets a real-time log configuration.
///
///
/// <para>
/// To get a real-time log configuration, you can provide the configuration's name or
/// its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to get.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRealtimeLogConfig service method.</param>
///
/// <returns>The response from the GetRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig">REST API Reference for GetRealtimeLogConfig Operation</seealso>
GetRealtimeLogConfigResponse GetRealtimeLogConfig(GetRealtimeLogConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetRealtimeLogConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetRealtimeLogConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRealtimeLogConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig">REST API Reference for GetRealtimeLogConfig Operation</seealso>
IAsyncResult BeginGetRealtimeLogConfig(GetRealtimeLogConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetRealtimeLogConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetRealtimeLogConfig.</param>
///
/// <returns>Returns a GetRealtimeLogConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig">REST API Reference for GetRealtimeLogConfig Operation</seealso>
GetRealtimeLogConfigResponse EndGetRealtimeLogConfig(IAsyncResult asyncResult);
#endregion
#region GetResponseHeadersPolicy
/// <summary>
/// Gets a response headers policy, including metadata (the policy's identifier and the
/// date and time when the policy was last modified).
///
///
/// <para>
/// To get a response headers policy, you must provide the policy's identifier. If the
/// response headers policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicy service method.</param>
///
/// <returns>The response from the GetResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy">REST API Reference for GetResponseHeadersPolicy Operation</seealso>
GetResponseHeadersPolicyResponse GetResponseHeadersPolicy(GetResponseHeadersPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetResponseHeadersPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy">REST API Reference for GetResponseHeadersPolicy Operation</seealso>
IAsyncResult BeginGetResponseHeadersPolicy(GetResponseHeadersPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResponseHeadersPolicy.</param>
///
/// <returns>Returns a GetResponseHeadersPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy">REST API Reference for GetResponseHeadersPolicy Operation</seealso>
GetResponseHeadersPolicyResponse EndGetResponseHeadersPolicy(IAsyncResult asyncResult);
#endregion
#region GetResponseHeadersPolicyConfig
/// <summary>
/// Gets a response headers policy configuration.
///
///
/// <para>
/// To get a response headers policy configuration, you must provide the policy's identifier.
/// If the response headers policy is attached to a distribution's cache behavior, you
/// can get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicyConfig service method.</param>
///
/// <returns>The response from the GetResponseHeadersPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig">REST API Reference for GetResponseHeadersPolicyConfig Operation</seealso>
GetResponseHeadersPolicyConfigResponse GetResponseHeadersPolicyConfig(GetResponseHeadersPolicyConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetResponseHeadersPolicyConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicyConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetResponseHeadersPolicyConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig">REST API Reference for GetResponseHeadersPolicyConfig Operation</seealso>
IAsyncResult BeginGetResponseHeadersPolicyConfig(GetResponseHeadersPolicyConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetResponseHeadersPolicyConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetResponseHeadersPolicyConfig.</param>
///
/// <returns>Returns a GetResponseHeadersPolicyConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig">REST API Reference for GetResponseHeadersPolicyConfig Operation</seealso>
GetResponseHeadersPolicyConfigResponse EndGetResponseHeadersPolicyConfig(IAsyncResult asyncResult);
#endregion
#region GetStreamingDistribution
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
GetStreamingDistributionResponse GetStreamingDistribution();
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistribution service method.</param>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
GetStreamingDistributionResponse GetStreamingDistribution(GetStreamingDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetStreamingDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetStreamingDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
IAsyncResult BeginGetStreamingDistribution(GetStreamingDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetStreamingDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetStreamingDistribution.</param>
///
/// <returns>Returns a GetStreamingDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
GetStreamingDistributionResponse EndGetStreamingDistribution(IAsyncResult asyncResult);
#endregion
#region GetStreamingDistributionConfig
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
GetStreamingDistributionConfigResponse GetStreamingDistributionConfig();
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig service method.</param>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetStreamingDistributionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetStreamingDistributionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
IAsyncResult BeginGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetStreamingDistributionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetStreamingDistributionConfig.</param>
///
/// <returns>Returns a GetStreamingDistributionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
GetStreamingDistributionConfigResponse EndGetStreamingDistributionConfig(IAsyncResult asyncResult);
#endregion
#region ListCachePolicies
/// <summary>
/// Gets a list of cache policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCachePolicies service method.</param>
///
/// <returns>The response from the ListCachePolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies">REST API Reference for ListCachePolicies Operation</seealso>
ListCachePoliciesResponse ListCachePolicies(ListCachePoliciesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListCachePolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListCachePolicies operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCachePolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies">REST API Reference for ListCachePolicies Operation</seealso>
IAsyncResult BeginListCachePolicies(ListCachePoliciesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListCachePolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCachePolicies.</param>
///
/// <returns>Returns a ListCachePoliciesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies">REST API Reference for ListCachePolicies Operation</seealso>
ListCachePoliciesResponse EndListCachePolicies(IAsyncResult asyncResult);
#endregion
#region ListCloudFrontOriginAccessIdentities
/// <summary>
/// Lists origin access identities.
/// </summary>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities();
/// <summary>
/// Lists origin access identities.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities service method.</param>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCloudFrontOriginAccessIdentities
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
IAsyncResult BeginListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListCloudFrontOriginAccessIdentities operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCloudFrontOriginAccessIdentities.</param>
///
/// <returns>Returns a ListCloudFrontOriginAccessIdentitiesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
ListCloudFrontOriginAccessIdentitiesResponse EndListCloudFrontOriginAccessIdentities(IAsyncResult asyncResult);
#endregion
#region ListConflictingAliases
/// <summary>
/// Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict
/// or overlap with the provided alias, and the associated CloudFront distributions and
/// Amazon Web Services accounts for each conflicting alias. In the returned list, the
/// distribution and account IDs are partially hidden, which allows you to identify the
/// distributions and accounts that you own, but helps to protect the information of ones
/// that you don't own.
///
///
/// <para>
/// Use this operation to find aliases that are in use in CloudFront that conflict or
/// overlap with the provided alias. For example, if you provide <code>www.example.com</code>
/// as input, the returned list can include <code>www.example.com</code> and the overlapping
/// wildcard alternate domain name (<code>*.example.com</code>), if they exist. If you
/// provide <code>*.example.com</code> as input, the returned list can include <code>*.example.com</code>
/// and any alternate domain names covered by that wildcard (for example, <code>www.example.com</code>,
/// <code>test.example.com</code>, <code>dev.example.com</code>, and so on), if they exist.
/// </para>
///
/// <para>
/// To list conflicting aliases, you provide the alias to search and the ID of a distribution
/// in your account that has an attached SSL/TLS certificate that includes the provided
/// alias. For more information, including how to set up the distribution and certificate,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConflictingAliases service method.</param>
///
/// <returns>The response from the ListConflictingAliases service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases">REST API Reference for ListConflictingAliases Operation</seealso>
ListConflictingAliasesResponse ListConflictingAliases(ListConflictingAliasesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListConflictingAliases operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConflictingAliases operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConflictingAliases
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases">REST API Reference for ListConflictingAliases Operation</seealso>
IAsyncResult BeginListConflictingAliases(ListConflictingAliasesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListConflictingAliases operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConflictingAliases.</param>
///
/// <returns>Returns a ListConflictingAliasesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases">REST API Reference for ListConflictingAliases Operation</seealso>
ListConflictingAliasesResponse EndListConflictingAliases(IAsyncResult asyncResult);
#endregion
#region ListContinuousDeploymentPolicies
/// <summary>
/// Gets a list of the continuous deployment policies in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListContinuousDeploymentPolicies service method.</param>
///
/// <returns>The response from the ListContinuousDeploymentPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies">REST API Reference for ListContinuousDeploymentPolicies Operation</seealso>
ListContinuousDeploymentPoliciesResponse ListContinuousDeploymentPolicies(ListContinuousDeploymentPoliciesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListContinuousDeploymentPolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListContinuousDeploymentPolicies operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListContinuousDeploymentPolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies">REST API Reference for ListContinuousDeploymentPolicies Operation</seealso>
IAsyncResult BeginListContinuousDeploymentPolicies(ListContinuousDeploymentPoliciesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListContinuousDeploymentPolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListContinuousDeploymentPolicies.</param>
///
/// <returns>Returns a ListContinuousDeploymentPoliciesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies">REST API Reference for ListContinuousDeploymentPolicies Operation</seealso>
ListContinuousDeploymentPoliciesResponse EndListContinuousDeploymentPolicies(IAsyncResult asyncResult);
#endregion
#region ListDistributions
/// <summary>
/// List CloudFront distributions.
/// </summary>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
ListDistributionsResponse ListDistributions();
/// <summary>
/// List CloudFront distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributions service method.</param>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
ListDistributionsResponse ListDistributions(ListDistributionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributions operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
IAsyncResult BeginListDistributions(ListDistributionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributions.</param>
///
/// <returns>Returns a ListDistributionsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
ListDistributionsResponse EndListDistributions(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByCachePolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified cache policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByCachePolicyId service method.</param>
///
/// <returns>The response from the ListDistributionsByCachePolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId">REST API Reference for ListDistributionsByCachePolicyId Operation</seealso>
ListDistributionsByCachePolicyIdResponse ListDistributionsByCachePolicyId(ListDistributionsByCachePolicyIdRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByCachePolicyId operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByCachePolicyId operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByCachePolicyId
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId">REST API Reference for ListDistributionsByCachePolicyId Operation</seealso>
IAsyncResult BeginListDistributionsByCachePolicyId(ListDistributionsByCachePolicyIdRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByCachePolicyId operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByCachePolicyId.</param>
///
/// <returns>Returns a ListDistributionsByCachePolicyIdResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId">REST API Reference for ListDistributionsByCachePolicyId Operation</seealso>
ListDistributionsByCachePolicyIdResponse EndListDistributionsByCachePolicyId(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByKeyGroup
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that
/// references the specified key group.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByKeyGroup service method.</param>
///
/// <returns>The response from the ListDistributionsByKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByKeyGroup">REST API Reference for ListDistributionsByKeyGroup Operation</seealso>
ListDistributionsByKeyGroupResponse ListDistributionsByKeyGroup(ListDistributionsByKeyGroupRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByKeyGroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByKeyGroup operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByKeyGroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByKeyGroup">REST API Reference for ListDistributionsByKeyGroup Operation</seealso>
IAsyncResult BeginListDistributionsByKeyGroup(ListDistributionsByKeyGroupRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByKeyGroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByKeyGroup.</param>
///
/// <returns>Returns a ListDistributionsByKeyGroupResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByKeyGroup">REST API Reference for ListDistributionsByKeyGroup Operation</seealso>
ListDistributionsByKeyGroupResponse EndListDistributionsByKeyGroup(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByOriginRequestPolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified origin request policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByOriginRequestPolicyId service method.</param>
///
/// <returns>The response from the ListDistributionsByOriginRequestPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId">REST API Reference for ListDistributionsByOriginRequestPolicyId Operation</seealso>
ListDistributionsByOriginRequestPolicyIdResponse ListDistributionsByOriginRequestPolicyId(ListDistributionsByOriginRequestPolicyIdRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByOriginRequestPolicyId operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByOriginRequestPolicyId operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByOriginRequestPolicyId
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId">REST API Reference for ListDistributionsByOriginRequestPolicyId Operation</seealso>
IAsyncResult BeginListDistributionsByOriginRequestPolicyId(ListDistributionsByOriginRequestPolicyIdRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByOriginRequestPolicyId operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByOriginRequestPolicyId.</param>
///
/// <returns>Returns a ListDistributionsByOriginRequestPolicyIdResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId">REST API Reference for ListDistributionsByOriginRequestPolicyId Operation</seealso>
ListDistributionsByOriginRequestPolicyIdResponse EndListDistributionsByOriginRequestPolicyId(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByRealtimeLogConfig
/// <summary>
/// Gets a list of distributions that have a cache behavior that's associated with the
/// specified real-time log configuration.
///
///
/// <para>
/// You can specify the real-time log configuration by its name or its Amazon Resource
/// Name (ARN). You must provide at least one. If you provide both, CloudFront uses the
/// name to identify the real-time log configuration to list distributions for.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByRealtimeLogConfig service method.</param>
///
/// <returns>The response from the ListDistributionsByRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig">REST API Reference for ListDistributionsByRealtimeLogConfig Operation</seealso>
ListDistributionsByRealtimeLogConfigResponse ListDistributionsByRealtimeLogConfig(ListDistributionsByRealtimeLogConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByRealtimeLogConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByRealtimeLogConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByRealtimeLogConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig">REST API Reference for ListDistributionsByRealtimeLogConfig Operation</seealso>
IAsyncResult BeginListDistributionsByRealtimeLogConfig(ListDistributionsByRealtimeLogConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByRealtimeLogConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByRealtimeLogConfig.</param>
///
/// <returns>Returns a ListDistributionsByRealtimeLogConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig">REST API Reference for ListDistributionsByRealtimeLogConfig Operation</seealso>
ListDistributionsByRealtimeLogConfigResponse EndListDistributionsByRealtimeLogConfig(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByResponseHeadersPolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified response headers policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByResponseHeadersPolicyId service method.</param>
///
/// <returns>The response from the ListDistributionsByResponseHeadersPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId">REST API Reference for ListDistributionsByResponseHeadersPolicyId Operation</seealso>
ListDistributionsByResponseHeadersPolicyIdResponse ListDistributionsByResponseHeadersPolicyId(ListDistributionsByResponseHeadersPolicyIdRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByResponseHeadersPolicyId operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByResponseHeadersPolicyId operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByResponseHeadersPolicyId
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId">REST API Reference for ListDistributionsByResponseHeadersPolicyId Operation</seealso>
IAsyncResult BeginListDistributionsByResponseHeadersPolicyId(ListDistributionsByResponseHeadersPolicyIdRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByResponseHeadersPolicyId operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByResponseHeadersPolicyId.</param>
///
/// <returns>Returns a ListDistributionsByResponseHeadersPolicyIdResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId">REST API Reference for ListDistributionsByResponseHeadersPolicyId Operation</seealso>
ListDistributionsByResponseHeadersPolicyIdResponse EndListDistributionsByResponseHeadersPolicyId(IAsyncResult asyncResult);
#endregion
#region ListDistributionsByWebACLId
/// <summary>
/// List the distributions that are associated with a specified WAF web ACL.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByWebACLId service method.</param>
///
/// <returns>The response from the ListDistributionsByWebACLId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId">REST API Reference for ListDistributionsByWebACLId Operation</seealso>
ListDistributionsByWebACLIdResponse ListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListDistributionsByWebACLId operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByWebACLId operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDistributionsByWebACLId
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId">REST API Reference for ListDistributionsByWebACLId Operation</seealso>
IAsyncResult BeginListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListDistributionsByWebACLId operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDistributionsByWebACLId.</param>
///
/// <returns>Returns a ListDistributionsByWebACLIdResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId">REST API Reference for ListDistributionsByWebACLId Operation</seealso>
ListDistributionsByWebACLIdResponse EndListDistributionsByWebACLId(IAsyncResult asyncResult);
#endregion
#region ListFieldLevelEncryptionConfigs
/// <summary>
/// List all field-level encryption configurations that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionConfigs service method.</param>
///
/// <returns>The response from the ListFieldLevelEncryptionConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs">REST API Reference for ListFieldLevelEncryptionConfigs Operation</seealso>
ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListFieldLevelEncryptionConfigs operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionConfigs operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFieldLevelEncryptionConfigs
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs">REST API Reference for ListFieldLevelEncryptionConfigs Operation</seealso>
IAsyncResult BeginListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListFieldLevelEncryptionConfigs operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFieldLevelEncryptionConfigs.</param>
///
/// <returns>Returns a ListFieldLevelEncryptionConfigsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs">REST API Reference for ListFieldLevelEncryptionConfigs Operation</seealso>
ListFieldLevelEncryptionConfigsResponse EndListFieldLevelEncryptionConfigs(IAsyncResult asyncResult);
#endregion
#region ListFieldLevelEncryptionProfiles
/// <summary>
/// Request a list of field-level encryption profiles that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionProfiles service method.</param>
///
/// <returns>The response from the ListFieldLevelEncryptionProfiles service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles">REST API Reference for ListFieldLevelEncryptionProfiles Operation</seealso>
ListFieldLevelEncryptionProfilesResponse ListFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListFieldLevelEncryptionProfiles operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionProfiles operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFieldLevelEncryptionProfiles
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles">REST API Reference for ListFieldLevelEncryptionProfiles Operation</seealso>
IAsyncResult BeginListFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListFieldLevelEncryptionProfiles operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFieldLevelEncryptionProfiles.</param>
///
/// <returns>Returns a ListFieldLevelEncryptionProfilesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles">REST API Reference for ListFieldLevelEncryptionProfiles Operation</seealso>
ListFieldLevelEncryptionProfilesResponse EndListFieldLevelEncryptionProfiles(IAsyncResult asyncResult);
#endregion
#region ListFunctions
/// <summary>
/// Gets a list of all CloudFront functions in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally apply a filter to return only the functions that are in the specified
/// stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param>
///
/// <returns>The response from the ListFunctions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions">REST API Reference for ListFunctions Operation</seealso>
ListFunctionsResponse ListFunctions(ListFunctionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListFunctions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListFunctions operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFunctions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions">REST API Reference for ListFunctions Operation</seealso>
IAsyncResult BeginListFunctions(ListFunctionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListFunctions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFunctions.</param>
///
/// <returns>Returns a ListFunctionsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions">REST API Reference for ListFunctions Operation</seealso>
ListFunctionsResponse EndListFunctions(IAsyncResult asyncResult);
#endregion
#region ListInvalidations
/// <summary>
/// Lists invalidation batches.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListInvalidations service method.</param>
///
/// <returns>The response from the ListInvalidations service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations">REST API Reference for ListInvalidations Operation</seealso>
ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListInvalidations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListInvalidations operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListInvalidations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations">REST API Reference for ListInvalidations Operation</seealso>
IAsyncResult BeginListInvalidations(ListInvalidationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListInvalidations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListInvalidations.</param>
///
/// <returns>Returns a ListInvalidationsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations">REST API Reference for ListInvalidations Operation</seealso>
ListInvalidationsResponse EndListInvalidations(IAsyncResult asyncResult);
#endregion
#region ListKeyGroups
/// <summary>
/// Gets a list of key groups.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListKeyGroups service method.</param>
///
/// <returns>The response from the ListKeyGroups service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyGroups">REST API Reference for ListKeyGroups Operation</seealso>
ListKeyGroupsResponse ListKeyGroups(ListKeyGroupsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListKeyGroups operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListKeyGroups operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListKeyGroups
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyGroups">REST API Reference for ListKeyGroups Operation</seealso>
IAsyncResult BeginListKeyGroups(ListKeyGroupsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListKeyGroups operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListKeyGroups.</param>
///
/// <returns>Returns a ListKeyGroupsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyGroups">REST API Reference for ListKeyGroups Operation</seealso>
ListKeyGroupsResponse EndListKeyGroups(IAsyncResult asyncResult);
#endregion
#region ListOriginAccessControls
/// <summary>
/// Gets the list of CloudFront origin access controls in this Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// another request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the next request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginAccessControls service method.</param>
///
/// <returns>The response from the ListOriginAccessControls service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls">REST API Reference for ListOriginAccessControls Operation</seealso>
ListOriginAccessControlsResponse ListOriginAccessControls(ListOriginAccessControlsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListOriginAccessControls operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListOriginAccessControls operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOriginAccessControls
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls">REST API Reference for ListOriginAccessControls Operation</seealso>
IAsyncResult BeginListOriginAccessControls(ListOriginAccessControlsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListOriginAccessControls operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListOriginAccessControls.</param>
///
/// <returns>Returns a ListOriginAccessControlsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls">REST API Reference for ListOriginAccessControls Operation</seealso>
ListOriginAccessControlsResponse EndListOriginAccessControls(IAsyncResult asyncResult);
#endregion
#region ListOriginRequestPolicies
/// <summary>
/// Gets a list of origin request policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginRequestPolicies service method.</param>
///
/// <returns>The response from the ListOriginRequestPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies">REST API Reference for ListOriginRequestPolicies Operation</seealso>
ListOriginRequestPoliciesResponse ListOriginRequestPolicies(ListOriginRequestPoliciesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListOriginRequestPolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListOriginRequestPolicies operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOriginRequestPolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies">REST API Reference for ListOriginRequestPolicies Operation</seealso>
IAsyncResult BeginListOriginRequestPolicies(ListOriginRequestPoliciesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListOriginRequestPolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListOriginRequestPolicies.</param>
///
/// <returns>Returns a ListOriginRequestPoliciesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies">REST API Reference for ListOriginRequestPolicies Operation</seealso>
ListOriginRequestPoliciesResponse EndListOriginRequestPolicies(IAsyncResult asyncResult);
#endregion
#region ListPublicKeys
/// <summary>
/// List all public keys that have been added to CloudFront for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPublicKeys service method.</param>
///
/// <returns>The response from the ListPublicKeys service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys">REST API Reference for ListPublicKeys Operation</seealso>
ListPublicKeysResponse ListPublicKeys(ListPublicKeysRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListPublicKeys operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListPublicKeys operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPublicKeys
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys">REST API Reference for ListPublicKeys Operation</seealso>
IAsyncResult BeginListPublicKeys(ListPublicKeysRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListPublicKeys operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPublicKeys.</param>
///
/// <returns>Returns a ListPublicKeysResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys">REST API Reference for ListPublicKeys Operation</seealso>
ListPublicKeysResponse EndListPublicKeys(IAsyncResult asyncResult);
#endregion
#region ListRealtimeLogConfigs
/// <summary>
/// Gets a list of real-time log configurations.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRealtimeLogConfigs service method.</param>
///
/// <returns>The response from the ListRealtimeLogConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs">REST API Reference for ListRealtimeLogConfigs Operation</seealso>
ListRealtimeLogConfigsResponse ListRealtimeLogConfigs(ListRealtimeLogConfigsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListRealtimeLogConfigs operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRealtimeLogConfigs operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRealtimeLogConfigs
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs">REST API Reference for ListRealtimeLogConfigs Operation</seealso>
IAsyncResult BeginListRealtimeLogConfigs(ListRealtimeLogConfigsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListRealtimeLogConfigs operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRealtimeLogConfigs.</param>
///
/// <returns>Returns a ListRealtimeLogConfigsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs">REST API Reference for ListRealtimeLogConfigs Operation</seealso>
ListRealtimeLogConfigsResponse EndListRealtimeLogConfigs(IAsyncResult asyncResult);
#endregion
#region ListResponseHeadersPolicies
/// <summary>
/// Gets a list of response headers policies.
///
///
/// <para>
/// You can optionally apply a filter to get only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListResponseHeadersPolicies service method.</param>
///
/// <returns>The response from the ListResponseHeadersPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies">REST API Reference for ListResponseHeadersPolicies Operation</seealso>
ListResponseHeadersPoliciesResponse ListResponseHeadersPolicies(ListResponseHeadersPoliciesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListResponseHeadersPolicies operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListResponseHeadersPolicies operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListResponseHeadersPolicies
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies">REST API Reference for ListResponseHeadersPolicies Operation</seealso>
IAsyncResult BeginListResponseHeadersPolicies(ListResponseHeadersPoliciesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListResponseHeadersPolicies operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResponseHeadersPolicies.</param>
///
/// <returns>Returns a ListResponseHeadersPoliciesResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies">REST API Reference for ListResponseHeadersPolicies Operation</seealso>
ListResponseHeadersPoliciesResponse EndListResponseHeadersPolicies(IAsyncResult asyncResult);
#endregion
#region ListStreamingDistributions
/// <summary>
/// List streaming distributions.
/// </summary>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
ListStreamingDistributionsResponse ListStreamingDistributions();
/// <summary>
/// List streaming distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListStreamingDistributions service method.</param>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
ListStreamingDistributionsResponse ListStreamingDistributions(ListStreamingDistributionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListStreamingDistributions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListStreamingDistributions operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListStreamingDistributions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
IAsyncResult BeginListStreamingDistributions(ListStreamingDistributionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListStreamingDistributions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListStreamingDistributions.</param>
///
/// <returns>Returns a ListStreamingDistributionsResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
ListStreamingDistributionsResponse EndListStreamingDistributions(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// List tags for a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region PublishFunction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PublishFunction service method.</param>
///
/// <returns>The response from the PublishFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction">REST API Reference for PublishFunction Operation</seealso>
PublishFunctionResponse PublishFunction(PublishFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PublishFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PublishFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPublishFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction">REST API Reference for PublishFunction Operation</seealso>
IAsyncResult BeginPublishFunction(PublishFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PublishFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPublishFunction.</param>
///
/// <returns>Returns a PublishFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction">REST API Reference for PublishFunction Operation</seealso>
PublishFunctionResponse EndPublishFunction(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// Add tags to a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource">REST API Reference for TagResource Operation</seealso>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region TestFunction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TestFunction service method.</param>
///
/// <returns>The response from the TestFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TestFunctionFailedException">
/// The CloudFront function failed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction">REST API Reference for TestFunction Operation</seealso>
TestFunctionResponse TestFunction(TestFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TestFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TestFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction">REST API Reference for TestFunction Operation</seealso>
IAsyncResult BeginTestFunction(TestFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TestFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestFunction.</param>
///
/// <returns>Returns a TestFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction">REST API Reference for TestFunction Operation</seealso>
TestFunctionResponse EndTestFunction(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// Remove tags from a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource">REST API Reference for UntagResource Operation</seealso>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
#region UpdateCachePolicy
/// <summary>
/// Updates a cache policy configuration.
///
///
/// <para>
/// When you update a cache policy configuration, all the fields are updated with the
/// values provided in the request. You cannot update some fields independent of others.
/// To update a cache policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetCachePolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the cache policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateCachePolicy</code> by providing the entire cache policy configuration,
/// including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCachePolicy service method.</param>
///
/// <returns>The response from the UpdateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy">REST API Reference for UpdateCachePolicy Operation</seealso>
UpdateCachePolicyResponse UpdateCachePolicy(UpdateCachePolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateCachePolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateCachePolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCachePolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy">REST API Reference for UpdateCachePolicy Operation</seealso>
IAsyncResult BeginUpdateCachePolicy(UpdateCachePolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateCachePolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCachePolicy.</param>
///
/// <returns>Returns a UpdateCachePolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy">REST API Reference for UpdateCachePolicy Operation</seealso>
UpdateCachePolicyResponse EndUpdateCachePolicy(IAsyncResult asyncResult);
#endregion
#region UpdateCloudFrontOriginAccessIdentity
/// <summary>
/// Update an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity service method.</param>
///
/// <returns>The response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity">REST API Reference for UpdateCloudFrontOriginAccessIdentity Operation</seealso>
UpdateCloudFrontOriginAccessIdentityResponse UpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCloudFrontOriginAccessIdentity
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity">REST API Reference for UpdateCloudFrontOriginAccessIdentity Operation</seealso>
IAsyncResult BeginUpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateCloudFrontOriginAccessIdentity operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCloudFrontOriginAccessIdentity.</param>
///
/// <returns>Returns a UpdateCloudFrontOriginAccessIdentityResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity">REST API Reference for UpdateCloudFrontOriginAccessIdentity Operation</seealso>
UpdateCloudFrontOriginAccessIdentityResponse EndUpdateCloudFrontOriginAccessIdentity(IAsyncResult asyncResult);
#endregion
#region UpdateContinuousDeploymentPolicy
/// <summary>
/// Updates a continuous deployment policy. You can update a continuous deployment policy
/// to enable or disable it, to change the percentage of traffic that it sends to the
/// staging distribution, or to change the staging distribution that it sends traffic
/// to.
///
///
/// <para>
/// When you update a continuous deployment policy configuration, all the fields are updated
/// with the values that are provided in the request. You cannot update some fields independent
/// of others. To update a continuous deployment policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetContinuousDeploymentPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the continuous deployment policy configuration that you
/// want to update.
/// </para>
/// </li> <li>
/// <para>
/// Use <code>UpdateContinuousDeploymentPolicy</code>, providing the entire continuous
/// deployment policy configuration, including the fields that you modified and those
/// that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateContinuousDeploymentPolicy service method.</param>
///
/// <returns>The response from the UpdateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy">REST API Reference for UpdateContinuousDeploymentPolicy Operation</seealso>
UpdateContinuousDeploymentPolicyResponse UpdateContinuousDeploymentPolicy(UpdateContinuousDeploymentPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateContinuousDeploymentPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateContinuousDeploymentPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy">REST API Reference for UpdateContinuousDeploymentPolicy Operation</seealso>
IAsyncResult BeginUpdateContinuousDeploymentPolicy(UpdateContinuousDeploymentPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateContinuousDeploymentPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateContinuousDeploymentPolicy.</param>
///
/// <returns>Returns a UpdateContinuousDeploymentPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy">REST API Reference for UpdateContinuousDeploymentPolicy Operation</seealso>
UpdateContinuousDeploymentPolicyResponse EndUpdateContinuousDeploymentPolicy(IAsyncResult asyncResult);
#endregion
#region UpdateDistribution
/// <summary>
/// Updates the configuration for a CloudFront distribution.
///
///
/// <para>
/// The update process includes getting the current distribution configuration, updating
/// it to make your changes, and then submitting an <code>UpdateDistribution</code> request
/// to make the updates.
/// </para>
///
/// <para>
/// <b>To update a web distribution using the CloudFront API</b>
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetDistributionConfig</code> to get the current configuration, including
/// the version identifier (<code>ETag</code>).
/// </para>
/// </li> <li>
/// <para>
/// Update the distribution configuration that was returned in the response. Note the
/// following important requirements and restrictions:
/// </para>
/// <ul> <li>
/// <para>
/// You must rename the <code>ETag</code> field to <code>IfMatch</code>, leaving the value
/// unchanged. (Set the value of <code>IfMatch</code> to the value of <code>ETag</code>,
/// then remove the <code>ETag</code> field.)
/// </para>
/// </li> <li>
/// <para>
/// You can't change the value of <code>CallerReference</code>.
/// </para>
/// </li> </ul> </li> <li>
/// <para>
/// Submit an <code>UpdateDistribution</code> request, providing the distribution configuration.
/// The new configuration replaces the existing configuration. The values that you specify
/// in an <code>UpdateDistribution</code> request are not merged into your existing configuration.
/// Make sure to include all fields: the ones that you modified and also the ones that
/// you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistribution service method.</param>
///
/// <returns>The response from the UpdateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution">REST API Reference for UpdateDistribution Operation</seealso>
UpdateDistributionResponse UpdateDistribution(UpdateDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution">REST API Reference for UpdateDistribution Operation</seealso>
IAsyncResult BeginUpdateDistribution(UpdateDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDistribution.</param>
///
/// <returns>Returns a UpdateDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution">REST API Reference for UpdateDistribution Operation</seealso>
UpdateDistributionResponse EndUpdateDistribution(IAsyncResult asyncResult);
#endregion
#region UpdateDistributionWithStagingConfig
/// <summary>
/// Copies the staging distribution's configuration to its corresponding primary distribution.
/// The primary distribution retains its <code>Aliases</code> (also known as alternate
/// domain names or CNAMEs) and <code>ContinuousDeploymentPolicyId</code> value, but otherwise
/// its configuration is overwritten to match the staging distribution.
///
///
/// <para>
/// You can use this operation in a continuous deployment workflow after you have tested
/// configuration changes on the staging distribution. After using a continuous deployment
/// policy to move a portion of your domain name's traffic to the staging distribution
/// and verifying that it works as intended, you can use this operation to copy the staging
/// distribution's configuration to the primary distribution. This action will disable
/// the continuous deployment policy and move your domain's traffic back to the primary
/// distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistributionWithStagingConfig service method.</param>
///
/// <returns>The response from the UpdateDistributionWithStagingConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistributionWithStagingConfig">REST API Reference for UpdateDistributionWithStagingConfig Operation</seealso>
UpdateDistributionWithStagingConfigResponse UpdateDistributionWithStagingConfig(UpdateDistributionWithStagingConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateDistributionWithStagingConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateDistributionWithStagingConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDistributionWithStagingConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistributionWithStagingConfig">REST API Reference for UpdateDistributionWithStagingConfig Operation</seealso>
IAsyncResult BeginUpdateDistributionWithStagingConfig(UpdateDistributionWithStagingConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateDistributionWithStagingConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateDistributionWithStagingConfig.</param>
///
/// <returns>Returns a UpdateDistributionWithStagingConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistributionWithStagingConfig">REST API Reference for UpdateDistributionWithStagingConfig Operation</seealso>
UpdateDistributionWithStagingConfigResponse EndUpdateDistributionWithStagingConfig(IAsyncResult asyncResult);
#endregion
#region UpdateFieldLevelEncryptionConfig
/// <summary>
/// Update a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionConfig service method.</param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig">REST API Reference for UpdateFieldLevelEncryptionConfig Operation</seealso>
UpdateFieldLevelEncryptionConfigResponse UpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFieldLevelEncryptionConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig">REST API Reference for UpdateFieldLevelEncryptionConfig Operation</seealso>
IAsyncResult BeginUpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateFieldLevelEncryptionConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFieldLevelEncryptionConfig.</param>
///
/// <returns>Returns a UpdateFieldLevelEncryptionConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig">REST API Reference for UpdateFieldLevelEncryptionConfig Operation</seealso>
UpdateFieldLevelEncryptionConfigResponse EndUpdateFieldLevelEncryptionConfig(IAsyncResult asyncResult);
#endregion
#region UpdateFieldLevelEncryptionProfile
/// <summary>
/// Update a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionProfile service method.</param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile">REST API Reference for UpdateFieldLevelEncryptionProfile Operation</seealso>
UpdateFieldLevelEncryptionProfileResponse UpdateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionProfile operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFieldLevelEncryptionProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile">REST API Reference for UpdateFieldLevelEncryptionProfile Operation</seealso>
IAsyncResult BeginUpdateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateFieldLevelEncryptionProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFieldLevelEncryptionProfile.</param>
///
/// <returns>Returns a UpdateFieldLevelEncryptionProfileResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile">REST API Reference for UpdateFieldLevelEncryptionProfile Operation</seealso>
UpdateFieldLevelEncryptionProfileResponse EndUpdateFieldLevelEncryptionProfile(IAsyncResult asyncResult);
#endregion
#region UpdateFunction
/// <summary>
/// Updates a CloudFront function.
///
///
/// <para>
/// You can update a function's code or the comment that describes the function. You cannot
/// update a function's name.
/// </para>
///
/// <para>
/// To update a function, you provide the function's name and version (<code>ETag</code>
/// value) along with the updated function code. To get the name and version, you can
/// use <code>ListFunctions</code> and <code>DescribeFunction</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param>
///
/// <returns>The response from the UpdateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso>
UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateFunction operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateFunction operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFunction
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso>
IAsyncResult BeginUpdateFunction(UpdateFunctionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateFunction operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFunction.</param>
///
/// <returns>Returns a UpdateFunctionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso>
UpdateFunctionResponse EndUpdateFunction(IAsyncResult asyncResult);
#endregion
#region UpdateKeyGroup
/// <summary>
/// Updates a key group.
///
///
/// <para>
/// When you update a key group, all the fields are updated with the values provided in
/// the request. You cannot update some fields independent of others. To update a key
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// Get the current key group with <code>GetKeyGroup</code> or <code>GetKeyGroupConfig</code>.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the key group that you want to update. For example, add
/// or remove public key IDs.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateKeyGroup</code> with the entire key group object, including the fields
/// that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateKeyGroup service method.</param>
///
/// <returns>The response from the UpdateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyGroup">REST API Reference for UpdateKeyGroup Operation</seealso>
UpdateKeyGroupResponse UpdateKeyGroup(UpdateKeyGroupRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateKeyGroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateKeyGroup operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateKeyGroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyGroup">REST API Reference for UpdateKeyGroup Operation</seealso>
IAsyncResult BeginUpdateKeyGroup(UpdateKeyGroupRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateKeyGroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateKeyGroup.</param>
///
/// <returns>Returns a UpdateKeyGroupResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyGroup">REST API Reference for UpdateKeyGroup Operation</seealso>
UpdateKeyGroupResponse EndUpdateKeyGroup(IAsyncResult asyncResult);
#endregion
#region UpdateOriginAccessControl
/// <summary>
/// Updates a CloudFront origin access control.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginAccessControl service method.</param>
///
/// <returns>The response from the UpdateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl">REST API Reference for UpdateOriginAccessControl Operation</seealso>
UpdateOriginAccessControlResponse UpdateOriginAccessControl(UpdateOriginAccessControlRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateOriginAccessControl operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginAccessControl operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateOriginAccessControl
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl">REST API Reference for UpdateOriginAccessControl Operation</seealso>
IAsyncResult BeginUpdateOriginAccessControl(UpdateOriginAccessControlRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateOriginAccessControl operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateOriginAccessControl.</param>
///
/// <returns>Returns a UpdateOriginAccessControlResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl">REST API Reference for UpdateOriginAccessControl Operation</seealso>
UpdateOriginAccessControlResponse EndUpdateOriginAccessControl(IAsyncResult asyncResult);
#endregion
#region UpdateOriginRequestPolicy
/// <summary>
/// Updates an origin request policy configuration.
///
///
/// <para>
/// When you update an origin request policy configuration, all the fields are updated
/// with the values provided in the request. You cannot update some fields independent
/// of others. To update an origin request policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetOriginRequestPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the origin request policy configuration that you want
/// to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateOriginRequestPolicy</code> by providing the entire origin request
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginRequestPolicy service method.</param>
///
/// <returns>The response from the UpdateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy">REST API Reference for UpdateOriginRequestPolicy Operation</seealso>
UpdateOriginRequestPolicyResponse UpdateOriginRequestPolicy(UpdateOriginRequestPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateOriginRequestPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginRequestPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateOriginRequestPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy">REST API Reference for UpdateOriginRequestPolicy Operation</seealso>
IAsyncResult BeginUpdateOriginRequestPolicy(UpdateOriginRequestPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateOriginRequestPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateOriginRequestPolicy.</param>
///
/// <returns>Returns a UpdateOriginRequestPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy">REST API Reference for UpdateOriginRequestPolicy Operation</seealso>
UpdateOriginRequestPolicyResponse EndUpdateOriginRequestPolicy(IAsyncResult asyncResult);
#endregion
#region UpdatePublicKey
/// <summary>
/// Update public key information. Note that the only value you can change is the comment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdatePublicKey service method.</param>
///
/// <returns>The response from the UpdatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CannotChangeImmutablePublicKeyFieldsException">
/// You can't change the value of a public key.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey">REST API Reference for UpdatePublicKey Operation</seealso>
UpdatePublicKeyResponse UpdatePublicKey(UpdatePublicKeyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdatePublicKey operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdatePublicKey operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePublicKey
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey">REST API Reference for UpdatePublicKey Operation</seealso>
IAsyncResult BeginUpdatePublicKey(UpdatePublicKeyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdatePublicKey operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePublicKey.</param>
///
/// <returns>Returns a UpdatePublicKeyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey">REST API Reference for UpdatePublicKey Operation</seealso>
UpdatePublicKeyResponse EndUpdatePublicKey(IAsyncResult asyncResult);
#endregion
#region UpdateRealtimeLogConfig
/// <summary>
/// Updates a real-time log configuration.
///
///
/// <para>
/// When you update a real-time log configuration, all the parameters are updated with
/// the values provided in the request. You cannot update some parameters independent
/// of others. To update a real-time log configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Call <code>GetRealtimeLogConfig</code> to get the current real-time log configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the parameters in the real-time log configuration that you want to
/// update.
/// </para>
/// </li> <li>
/// <para>
/// Call this API (<code>UpdateRealtimeLogConfig</code>) by providing the entire real-time
/// log configuration, including the parameters that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// <para>
/// You cannot update a real-time log configuration's <code>Name</code> or <code>ARN</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateRealtimeLogConfig service method.</param>
///
/// <returns>The response from the UpdateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig">REST API Reference for UpdateRealtimeLogConfig Operation</seealso>
UpdateRealtimeLogConfigResponse UpdateRealtimeLogConfig(UpdateRealtimeLogConfigRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateRealtimeLogConfig operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateRealtimeLogConfig operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRealtimeLogConfig
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig">REST API Reference for UpdateRealtimeLogConfig Operation</seealso>
IAsyncResult BeginUpdateRealtimeLogConfig(UpdateRealtimeLogConfigRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateRealtimeLogConfig operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateRealtimeLogConfig.</param>
///
/// <returns>Returns a UpdateRealtimeLogConfigResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig">REST API Reference for UpdateRealtimeLogConfig Operation</seealso>
UpdateRealtimeLogConfigResponse EndUpdateRealtimeLogConfig(IAsyncResult asyncResult);
#endregion
#region UpdateResponseHeadersPolicy
/// <summary>
/// Updates a response headers policy.
///
///
/// <para>
/// When you update a response headers policy, the entire policy is replaced. You cannot
/// update some policy fields independent of others. To update a response headers policy
/// configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetResponseHeadersPolicyConfig</code> to get the current policy's configuration.
/// </para>
/// </li> <li>
/// <para>
/// Modify the fields in the response headers policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateResponseHeadersPolicy</code>, providing the entire response headers
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateResponseHeadersPolicy service method.</param>
///
/// <returns>The response from the UpdateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy">REST API Reference for UpdateResponseHeadersPolicy Operation</seealso>
UpdateResponseHeadersPolicyResponse UpdateResponseHeadersPolicy(UpdateResponseHeadersPolicyRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateResponseHeadersPolicy operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateResponseHeadersPolicy
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy">REST API Reference for UpdateResponseHeadersPolicy Operation</seealso>
IAsyncResult BeginUpdateResponseHeadersPolicy(UpdateResponseHeadersPolicyRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateResponseHeadersPolicy operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateResponseHeadersPolicy.</param>
///
/// <returns>Returns a UpdateResponseHeadersPolicyResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy">REST API Reference for UpdateResponseHeadersPolicy Operation</seealso>
UpdateResponseHeadersPolicyResponse EndUpdateResponseHeadersPolicy(IAsyncResult asyncResult);
#endregion
#region UpdateStreamingDistribution
/// <summary>
/// Update a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateStreamingDistribution service method.</param>
///
/// <returns>The response from the UpdateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution">REST API Reference for UpdateStreamingDistribution Operation</seealso>
UpdateStreamingDistributionResponse UpdateStreamingDistribution(UpdateStreamingDistributionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateStreamingDistribution operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateStreamingDistribution operation on AmazonCloudFrontClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateStreamingDistribution
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution">REST API Reference for UpdateStreamingDistribution Operation</seealso>
IAsyncResult BeginUpdateStreamingDistribution(UpdateStreamingDistributionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateStreamingDistribution operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateStreamingDistribution.</param>
///
/// <returns>Returns a UpdateStreamingDistributionResult from CloudFront.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution">REST API Reference for UpdateStreamingDistribution Operation</seealso>
UpdateStreamingDistributionResponse EndUpdateStreamingDistribution(IAsyncResult asyncResult);
#endregion
}
} | 7,974 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.CloudFront.Model;
using Amazon.CloudFront.Model.Internal.MarshallTransformations;
using Amazon.CloudFront.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CloudFront
{
/// <summary>
/// Implementation for accessing CloudFront
///
/// Amazon CloudFront
/// <para>
/// This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers who
/// need detailed information about CloudFront API actions, data types, and errors. For
/// detailed information about CloudFront features, see the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonCloudFrontClient : AmazonServiceClient, IAmazonCloudFront
{
private static IServiceMetadata serviceMetadata = new AmazonCloudFrontMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonCloudFrontClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonCloudFrontClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFrontConfig()) { }
/// <summary>
/// Constructs AmazonCloudFrontClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonCloudFrontClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudFrontConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonCloudFrontClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonCloudFrontClient Configuration Object</param>
public AmazonCloudFrontClient(AmazonCloudFrontConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonCloudFrontClient(AWSCredentials credentials)
: this(credentials, new AmazonCloudFrontConfig())
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudFrontClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCloudFrontConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Credentials and an
/// AmazonCloudFrontClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonCloudFrontClient Configuration Object</param>
public AmazonCloudFrontClient(AWSCredentials credentials, AmazonCloudFrontConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFrontConfig())
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudFrontConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudFrontClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonCloudFrontClient Configuration Object</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudFrontConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFrontConfig())
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudFrontConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonCloudFrontClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudFrontClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonCloudFrontClient Configuration Object</param>
public AmazonCloudFrontClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudFrontConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private ICloudFrontPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public ICloudFrontPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new CloudFrontPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudFrontEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AssociateAlias
internal virtual AssociateAliasResponse AssociateAlias(AssociateAliasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateAliasResponseUnmarshaller.Instance;
return Invoke<AssociateAliasResponse>(request, options);
}
/// <summary>
/// Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront
/// distribution.
///
///
/// <para>
/// With this operation you can move an alias that's already in use on a CloudFront distribution
/// to a different distribution in one step. This prevents the downtime that could occur
/// if you first remove the alias from one distribution and then separately add the alias
/// to another distribution.
/// </para>
///
/// <para>
/// To use this operation to associate an alias with a distribution, you provide the alias
/// and the ID of the target distribution for the alias. For more information, including
/// how to set up the target distribution, prerequisites that you must complete, and other
/// restrictions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateAlias service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateAlias service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias">REST API Reference for AssociateAlias Operation</seealso>
public virtual Task<AssociateAliasResponse> AssociateAliasAsync(AssociateAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateAliasResponseUnmarshaller.Instance;
return InvokeAsync<AssociateAliasResponse>(request, options, cancellationToken);
}
#endregion
#region CopyDistribution
internal virtual CopyDistributionResponse CopyDistribution(CopyDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CopyDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopyDistributionResponseUnmarshaller.Instance;
return Invoke<CopyDistributionResponse>(request, options);
}
/// <summary>
/// Creates a staging distribution using the configuration of the provided primary distribution.
/// A staging distribution is a copy of an existing distribution (called the primary distribution)
/// that you can use in a continuous deployment workflow.
///
///
/// <para>
/// After you create a staging distribution, you can use <code>UpdateDistribution</code>
/// to modify the staging distribution's configuration. Then you can use <code>CreateContinuousDeploymentPolicy</code>
/// to incrementally move traffic to the staging distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CopyDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CopyDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution">REST API Reference for CopyDistribution Operation</seealso>
public virtual Task<CopyDistributionResponse> CopyDistributionAsync(CopyDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CopyDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopyDistributionResponseUnmarshaller.Instance;
return InvokeAsync<CopyDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateCachePolicy
internal virtual CreateCachePolicyResponse CreateCachePolicy(CreateCachePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCachePolicyResponseUnmarshaller.Instance;
return Invoke<CreateCachePolicyResponse>(request, options);
}
/// <summary>
/// Creates a cache policy.
///
///
/// <para>
/// After you create a cache policy, you can attach it to one or more cache behaviors.
/// When it's attached to a cache behavior, the cache policy determines the following:
/// </para>
/// <ul> <li>
/// <para>
/// The values that CloudFront includes in the <i>cache key</i>. These values can include
/// HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find
/// an object in its cache that it can return to the viewer.
/// </para>
/// </li> <li>
/// <para>
/// The default, minimum, and maximum time to live (TTL) values that you want objects
/// to stay in the CloudFront cache.
/// </para>
/// </li> </ul>
/// <para>
/// The headers, cookies, and query strings that are included in the cache key are also
/// included in requests that CloudFront sends to the origin. CloudFront sends a request
/// when it can't find 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>
///
/// <para>
/// For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling
/// the cache key</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCachePoliciesException">
/// You have reached the maximum number of cache policies for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy">REST API Reference for CreateCachePolicy Operation</seealso>
public virtual Task<CreateCachePolicyResponse> CreateCachePolicyAsync(CreateCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCachePolicyResponseUnmarshaller.Instance;
return InvokeAsync<CreateCachePolicyResponse>(request, options, cancellationToken);
}
#endregion
#region CreateCloudFrontOriginAccessIdentity
internal virtual CreateCloudFrontOriginAccessIdentityResponse CreateCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return Invoke<CreateCloudFrontOriginAccessIdentityResponse>(request, options);
}
/// <summary>
/// Creates a new origin access identity. If you're using Amazon S3 for your origin, you
/// can use an origin access identity to require users to access your content using a
/// CloudFront URL instead of the Amazon S3 URL. For more information about how to use
/// origin access identities, 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>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityAlreadyExistsException">
/// If the <code>CallerReference</code> is a value you already sent in a previous request
/// to create an identity but the content of the <code>CloudFrontOriginAccessIdentityConfig</code>
/// is different from the original request, CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code>
/// error.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCloudFrontOriginAccessIdentitiesException">
/// Processing your request would cause you to exceed the maximum number of origin access
/// identities allowed.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity">REST API Reference for CreateCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<CreateCloudFrontOriginAccessIdentityResponse> CreateCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return InvokeAsync<CreateCloudFrontOriginAccessIdentityResponse>(request, options, cancellationToken);
}
#endregion
#region CreateContinuousDeploymentPolicy
internal virtual CreateContinuousDeploymentPolicyResponse CreateContinuousDeploymentPolicy(CreateContinuousDeploymentPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return Invoke<CreateContinuousDeploymentPolicyResponse>(request, options);
}
/// <summary>
/// Creates a continuous deployment policy that distributes traffic for a custom domain
/// name to two different CloudFront distributions.
///
///
/// <para>
/// To use a continuous deployment policy, first use <code>CopyDistribution</code> to
/// create a staging distribution, then use <code>UpdateDistribution</code> to modify
/// the staging distribution's configuration.
/// </para>
///
/// <para>
/// After you create and update a staging distribution, you can use a continuous deployment
/// policy to incrementally move traffic to the staging distribution. This workflow enables
/// you to test changes to a distribution's configuration before moving all of your domain's
/// production traffic to the new configuration.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyAlreadyExistsException">
/// A continuous deployment policy with this configuration already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyContinuousDeploymentPoliciesException">
/// You have reached the maximum number of continuous deployment policies for this Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy">REST API Reference for CreateContinuousDeploymentPolicy Operation</seealso>
public virtual Task<CreateContinuousDeploymentPolicyResponse> CreateContinuousDeploymentPolicyAsync(CreateContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return InvokeAsync<CreateContinuousDeploymentPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region CreateDistribution
internal virtual CreateDistributionResponse CreateDistribution(CreateDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;
return Invoke<CreateDistributionResponse>(request, options);
}
/// <summary>
/// Creates a CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginAccessControlException">
/// The maximum number of distributions have been associated with the specified origin
/// access control.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution">REST API Reference for CreateDistribution Operation</seealso>
public virtual Task<CreateDistributionResponse> CreateDistributionAsync(CreateDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;
return InvokeAsync<CreateDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateDistributionWithTags
internal virtual CreateDistributionWithTagsResponse CreateDistributionWithTags(CreateDistributionWithTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionWithTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionWithTagsResponseUnmarshaller.Instance;
return Invoke<CreateDistributionWithTagsResponse>(request, options);
}
/// <summary>
/// Create a new distribution with tags.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistributionWithTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags">REST API Reference for CreateDistributionWithTags Operation</seealso>
public virtual Task<CreateDistributionWithTagsResponse> CreateDistributionWithTagsAsync(CreateDistributionWithTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDistributionWithTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDistributionWithTagsResponseUnmarshaller.Instance;
return InvokeAsync<CreateDistributionWithTagsResponse>(request, options, cancellationToken);
}
#endregion
#region CreateFieldLevelEncryptionConfig
internal virtual CreateFieldLevelEncryptionConfigResponse CreateFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return Invoke<CreateFieldLevelEncryptionConfigResponse>(request, options);
}
/// <summary>
/// Create a new field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigAlreadyExistsException">
/// The specified configuration for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionConfigsException">
/// The maximum number of configurations for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig">REST API Reference for CreateFieldLevelEncryptionConfig Operation</seealso>
public virtual Task<CreateFieldLevelEncryptionConfigResponse> CreateFieldLevelEncryptionConfigAsync(CreateFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return InvokeAsync<CreateFieldLevelEncryptionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region CreateFieldLevelEncryptionProfile
internal virtual CreateFieldLevelEncryptionProfileResponse CreateFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return Invoke<CreateFieldLevelEncryptionProfileResponse>(request, options);
}
/// <summary>
/// Create a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionProfilesException">
/// The maximum number of profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile">REST API Reference for CreateFieldLevelEncryptionProfile Operation</seealso>
public virtual Task<CreateFieldLevelEncryptionProfileResponse> CreateFieldLevelEncryptionProfileAsync(CreateFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return InvokeAsync<CreateFieldLevelEncryptionProfileResponse>(request, options, cancellationToken);
}
#endregion
#region CreateFunction
internal virtual CreateFunctionResponse CreateFunction(CreateFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance;
return Invoke<CreateFunctionResponse>(request, options);
}
/// <summary>
/// Creates a CloudFront function.
///
///
/// <para>
/// To create a function, you provide the function code and some configuration information
/// about the function. The response contains an Amazon Resource Name (ARN) that uniquely
/// identifies the function.
/// </para>
///
/// <para>
/// When you create a function, it's in the <code>DEVELOPMENT</code> stage. In this stage,
/// you can test the function with <code>TestFunction</code>, and update it with <code>UpdateFunction</code>.
/// </para>
///
/// <para>
/// When you're ready to use your function with a CloudFront distribution, use <code>PublishFunction</code>
/// to copy the function from the <code>DEVELOPMENT</code> stage to <code>LIVE</code>.
/// When it's live, you can attach the function to a distribution's cache behavior, using
/// the function's ARN.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionAlreadyExistsException">
/// A function with the same name already exists in this Amazon Web Services account.
/// To create a function, you must provide a unique name. To update an existing function,
/// use <code>UpdateFunction</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionsException">
/// You have reached the maximum number of CloudFront functions for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction">REST API Reference for CreateFunction Operation</seealso>
public virtual Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance;
return InvokeAsync<CreateFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateInvalidation
internal virtual CreateInvalidationResponse CreateInvalidation(CreateInvalidationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInvalidationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInvalidationResponseUnmarshaller.Instance;
return Invoke<CreateInvalidationResponse>(request, options);
}
/// <summary>
/// Create a new invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateInvalidation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.BatchTooLargeException">
/// Invalidation batch specified is too large.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyInvalidationsInProgressException">
/// You have exceeded the maximum number of allowable InProgress invalidation batch requests,
/// or invalidation objects.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation">REST API Reference for CreateInvalidation Operation</seealso>
public virtual Task<CreateInvalidationResponse> CreateInvalidationAsync(CreateInvalidationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInvalidationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInvalidationResponseUnmarshaller.Instance;
return InvokeAsync<CreateInvalidationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateKeyGroup
internal virtual CreateKeyGroupResponse CreateKeyGroup(CreateKeyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKeyGroupResponseUnmarshaller.Instance;
return Invoke<CreateKeyGroupResponse>(request, options);
}
/// <summary>
/// Creates a key group that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront
/// signed URLs and signed cookies</a>.
///
///
/// <para>
/// To create a key group, you must specify at least one public key for the key group.
/// After you create a key group, you can reference it from one or more cache behaviors.
/// When you reference a key group in a cache behavior, CloudFront requires signed URLs
/// or signed cookies for all requests that match the cache behavior. The URLs or cookies
/// must be signed with a private key whose corresponding public key is in the key group.
/// The signed URL or cookie contains information about which public key CloudFront should
/// use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving
/// private content</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsException">
/// You have reached the maximum number of key groups for this Amazon Web Services account.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyGroup">REST API Reference for CreateKeyGroup Operation</seealso>
public virtual Task<CreateKeyGroupResponse> CreateKeyGroupAsync(CreateKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKeyGroupResponseUnmarshaller.Instance;
return InvokeAsync<CreateKeyGroupResponse>(request, options, cancellationToken);
}
#endregion
#region CreateMonitoringSubscription
internal virtual CreateMonitoringSubscriptionResponse CreateMonitoringSubscription(CreateMonitoringSubscriptionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMonitoringSubscriptionResponseUnmarshaller.Instance;
return Invoke<CreateMonitoringSubscriptionResponse>(request, options);
}
/// <summary>
/// Enables additional CloudWatch metrics for the specified CloudFront distribution. The
/// additional metrics incur an additional cost.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional">Viewing
/// additional CloudFront distribution metrics</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MonitoringSubscriptionAlreadyExistsException">
/// A monitoring subscription already exists for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription">REST API Reference for CreateMonitoringSubscription Operation</seealso>
public virtual Task<CreateMonitoringSubscriptionResponse> CreateMonitoringSubscriptionAsync(CreateMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMonitoringSubscriptionResponseUnmarshaller.Instance;
return InvokeAsync<CreateMonitoringSubscriptionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateOriginAccessControl
internal virtual CreateOriginAccessControlResponse CreateOriginAccessControl(CreateOriginAccessControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginAccessControlResponseUnmarshaller.Instance;
return Invoke<CreateOriginAccessControlResponse>(request, options);
}
/// <summary>
/// Creates a new origin access control in CloudFront. After you create an origin access
/// control, you can add it to an origin in a CloudFront distribution so that CloudFront
/// sends authenticated (signed) requests to the origin.
///
///
/// <para>
/// This makes it possible to block public access to the origin, allowing viewers (users)
/// to access the origin's content only through CloudFront.
/// </para>
///
/// <para>
/// For more information about using a CloudFront origin access control, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html">Restricting
/// access to an Amazon Web Services origin</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginAccessControlsException">
/// The number of origin access controls in your Amazon Web Services account exceeds the
/// maximum allowed.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl">REST API Reference for CreateOriginAccessControl Operation</seealso>
public virtual Task<CreateOriginAccessControlResponse> CreateOriginAccessControlAsync(CreateOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginAccessControlResponseUnmarshaller.Instance;
return InvokeAsync<CreateOriginAccessControlResponse>(request, options, cancellationToken);
}
#endregion
#region CreateOriginRequestPolicy
internal virtual CreateOriginRequestPolicyResponse CreateOriginRequestPolicy(CreateOriginRequestPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginRequestPolicyResponseUnmarshaller.Instance;
return Invoke<CreateOriginRequestPolicyResponse>(request, options);
}
/// <summary>
/// Creates an origin request policy.
///
///
/// <para>
/// After you create an origin request policy, you can attach it to one or more cache
/// behaviors. 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 a valid 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>
///
/// <para>
/// For more information about origin request policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html">Controlling
/// origin requests</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginRequestPoliciesException">
/// You have reached the maximum number of origin request policies for this Amazon Web
/// Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy">REST API Reference for CreateOriginRequestPolicy Operation</seealso>
public virtual Task<CreateOriginRequestPolicyResponse> CreateOriginRequestPolicyAsync(CreateOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginRequestPolicyResponseUnmarshaller.Instance;
return InvokeAsync<CreateOriginRequestPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region CreatePublicKey
internal virtual CreatePublicKeyResponse CreatePublicKey(CreatePublicKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePublicKeyResponseUnmarshaller.Instance;
return Invoke<CreatePublicKeyResponse>(request, options);
}
/// <summary>
/// Uploads a public key to CloudFront 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>
/// <param name="request">Container for the necessary parameters to execute the CreatePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyAlreadyExistsException">
/// The specified public key already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysException">
/// The maximum number of public keys for field-level encryption have been created. To
/// create a new public key, delete one of the existing keys.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey">REST API Reference for CreatePublicKey Operation</seealso>
public virtual Task<CreatePublicKeyResponse> CreatePublicKeyAsync(CreatePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePublicKeyResponseUnmarshaller.Instance;
return InvokeAsync<CreatePublicKeyResponse>(request, options, cancellationToken);
}
#endregion
#region CreateRealtimeLogConfig
internal virtual CreateRealtimeLogConfigResponse CreateRealtimeLogConfig(CreateRealtimeLogConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRealtimeLogConfigResponseUnmarshaller.Instance;
return Invoke<CreateRealtimeLogConfigResponse>(request, options);
}
/// <summary>
/// Creates a real-time log configuration.
///
///
/// <para>
/// After you create a real-time log configuration, you can attach it to one or more cache
/// behaviors to send real-time log data to the specified Amazon Kinesis data stream.
/// </para>
///
/// <para>
/// For more information about real-time log configurations, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time
/// logs</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRealtimeLogConfigsException">
/// You have reached the maximum number of real-time log configurations for this Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig">REST API Reference for CreateRealtimeLogConfig Operation</seealso>
public virtual Task<CreateRealtimeLogConfigResponse> CreateRealtimeLogConfigAsync(CreateRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateRealtimeLogConfigResponseUnmarshaller.Instance;
return InvokeAsync<CreateRealtimeLogConfigResponse>(request, options, cancellationToken);
}
#endregion
#region CreateResponseHeadersPolicy
internal virtual CreateResponseHeadersPolicyResponse CreateResponseHeadersPolicy(CreateResponseHeadersPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResponseHeadersPolicyResponseUnmarshaller.Instance;
return Invoke<CreateResponseHeadersPolicyResponse>(request, options);
}
/// <summary>
/// Creates a response headers policy.
///
///
/// <para>
/// A response headers policy contains information about a set of HTTP headers. To create
/// a response headers policy, you provide some metadata about the policy and a set of
/// configurations that specify the 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>
/// <param name="request">Container for the necessary parameters to execute the CreateResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyResponseHeadersPoliciesException">
/// You have reached the maximum number of response headers policies for this Amazon Web
/// Services account.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy">REST API Reference for CreateResponseHeadersPolicy Operation</seealso>
public virtual Task<CreateResponseHeadersPolicyResponse> CreateResponseHeadersPolicyAsync(CreateResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResponseHeadersPolicyResponseUnmarshaller.Instance;
return InvokeAsync<CreateResponseHeadersPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region CreateStreamingDistribution
internal virtual CreateStreamingDistributionResponse CreateStreamingDistribution(CreateStreamingDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStreamingDistributionResponseUnmarshaller.Instance;
return Invoke<CreateStreamingDistributionResponse>(request, options);
}
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution">REST API Reference for CreateStreamingDistribution Operation</seealso>
public virtual Task<CreateStreamingDistributionResponse> CreateStreamingDistributionAsync(CreateStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStreamingDistributionResponseUnmarshaller.Instance;
return InvokeAsync<CreateStreamingDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region CreateStreamingDistributionWithTags
internal virtual CreateStreamingDistributionWithTagsResponse CreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStreamingDistributionWithTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance;
return Invoke<CreateStreamingDistributionWithTagsResponse>(request, options);
}
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateStreamingDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags">REST API Reference for CreateStreamingDistributionWithTags Operation</seealso>
public virtual Task<CreateStreamingDistributionWithTagsResponse> CreateStreamingDistributionWithTagsAsync(CreateStreamingDistributionWithTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStreamingDistributionWithTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStreamingDistributionWithTagsResponseUnmarshaller.Instance;
return InvokeAsync<CreateStreamingDistributionWithTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteCachePolicy
internal virtual DeleteCachePolicyResponse DeleteCachePolicy(DeleteCachePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCachePolicyResponseUnmarshaller.Instance;
return Invoke<DeleteCachePolicyResponse>(request, options);
}
/// <summary>
/// Deletes a cache policy.
///
///
/// <para>
/// You cannot delete a cache policy if it's attached to a cache behavior. First update
/// your distributions to remove the cache policy from all cache behaviors, then delete
/// the cache policy.
/// </para>
///
/// <para>
/// To delete a cache policy, you must provide the policy's identifier and version. To
/// get these values, you can use <code>ListCachePolicies</code> or <code>GetCachePolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyInUseException">
/// Cannot delete the cache policy because it is attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy">REST API Reference for DeleteCachePolicy Operation</seealso>
public virtual Task<DeleteCachePolicyResponse> DeleteCachePolicyAsync(DeleteCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCachePolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteCachePolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteCloudFrontOriginAccessIdentity
internal virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity()
{
return DeleteCloudFrontOriginAccessIdentity(new DeleteCloudFrontOriginAccessIdentityRequest());
}
internal virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return Invoke<DeleteCloudFrontOriginAccessIdentityResponse>(request, options);
}
/// <summary>
/// Delete an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<DeleteCloudFrontOriginAccessIdentityResponse> DeleteCloudFrontOriginAccessIdentityAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DeleteCloudFrontOriginAccessIdentityAsync(new DeleteCloudFrontOriginAccessIdentityRequest(), cancellationToken);
}
/// <summary>
/// Delete an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<DeleteCloudFrontOriginAccessIdentityResponse> DeleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return InvokeAsync<DeleteCloudFrontOriginAccessIdentityResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteContinuousDeploymentPolicy
internal virtual DeleteContinuousDeploymentPolicyResponse DeleteContinuousDeploymentPolicy(DeleteContinuousDeploymentPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteContinuousDeploymentPolicyResponse>(request, options);
}
/// <summary>
/// Deletes a continuous deployment policy.
///
///
/// <para>
/// You cannot delete a continuous deployment policy that's attached to a primary distribution.
/// First update your distribution to remove the continuous deployment policy, then you
/// can delete the policy.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy">REST API Reference for DeleteContinuousDeploymentPolicy Operation</seealso>
public virtual Task<DeleteContinuousDeploymentPolicyResponse> DeleteContinuousDeploymentPolicyAsync(DeleteContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteContinuousDeploymentPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteDistribution
internal virtual DeleteDistributionResponse DeleteDistribution()
{
return DeleteDistribution(new DeleteDistributionRequest());
}
internal virtual DeleteDistributionResponse DeleteDistribution(DeleteDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDistributionResponseUnmarshaller.Instance;
return Invoke<DeleteDistributionResponse>(request, options);
}
/// <summary>
/// Delete a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
public virtual Task<DeleteDistributionResponse> DeleteDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DeleteDistributionAsync(new DeleteDistributionRequest(), cancellationToken);
}
/// <summary>
/// Delete a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
public virtual Task<DeleteDistributionResponse> DeleteDistributionAsync(DeleteDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDistributionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteFieldLevelEncryptionConfig
internal virtual DeleteFieldLevelEncryptionConfigResponse DeleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return Invoke<DeleteFieldLevelEncryptionConfigResponse>(request, options);
}
/// <summary>
/// Remove a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigInUseException">
/// The specified configuration for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig">REST API Reference for DeleteFieldLevelEncryptionConfig Operation</seealso>
public virtual Task<DeleteFieldLevelEncryptionConfigResponse> DeleteFieldLevelEncryptionConfigAsync(DeleteFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return InvokeAsync<DeleteFieldLevelEncryptionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteFieldLevelEncryptionProfile
internal virtual DeleteFieldLevelEncryptionProfileResponse DeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return Invoke<DeleteFieldLevelEncryptionProfileResponse>(request, options);
}
/// <summary>
/// Remove a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileInUseException">
/// The specified profile for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile">REST API Reference for DeleteFieldLevelEncryptionProfile Operation</seealso>
public virtual Task<DeleteFieldLevelEncryptionProfileResponse> DeleteFieldLevelEncryptionProfileAsync(DeleteFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return InvokeAsync<DeleteFieldLevelEncryptionProfileResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteFunction
internal virtual DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance;
return Invoke<DeleteFunctionResponse>(request, options);
}
/// <summary>
/// Deletes a CloudFront function.
///
///
/// <para>
/// You cannot delete a function if it's associated with a cache behavior. First, update
/// your distributions to remove the function association from all cache behaviors, then
/// delete the function.
/// </para>
///
/// <para>
/// To delete 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionInUseException">
/// Cannot delete the function because it's attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso>
public virtual Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteKeyGroup
internal virtual DeleteKeyGroupResponse DeleteKeyGroup(DeleteKeyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeyGroupResponseUnmarshaller.Instance;
return Invoke<DeleteKeyGroupResponse>(request, options);
}
/// <summary>
/// Deletes a key group.
///
///
/// <para>
/// You cannot delete a key group that is referenced in a cache behavior. First update
/// your distributions to remove the key group from all cache behaviors, then delete the
/// key group.
/// </para>
///
/// <para>
/// To delete a key group, you must provide the key group's identifier and version. To
/// get these values, use <code>ListKeyGroups</code> followed by <code>GetKeyGroup</code>
/// or <code>GetKeyGroupConfig</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResourceInUseException">
/// Cannot delete this resource because it is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyGroup">REST API Reference for DeleteKeyGroup Operation</seealso>
public virtual Task<DeleteKeyGroupResponse> DeleteKeyGroupAsync(DeleteKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKeyGroupResponseUnmarshaller.Instance;
return InvokeAsync<DeleteKeyGroupResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteMonitoringSubscription
internal virtual DeleteMonitoringSubscriptionResponse DeleteMonitoringSubscription(DeleteMonitoringSubscriptionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMonitoringSubscriptionResponseUnmarshaller.Instance;
return Invoke<DeleteMonitoringSubscriptionResponse>(request, options);
}
/// <summary>
/// Disables additional CloudWatch metrics for the specified CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription">REST API Reference for DeleteMonitoringSubscription Operation</seealso>
public virtual Task<DeleteMonitoringSubscriptionResponse> DeleteMonitoringSubscriptionAsync(DeleteMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMonitoringSubscriptionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteMonitoringSubscriptionResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteOriginAccessControl
internal virtual DeleteOriginAccessControlResponse DeleteOriginAccessControl(DeleteOriginAccessControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginAccessControlResponseUnmarshaller.Instance;
return Invoke<DeleteOriginAccessControlResponse>(request, options);
}
/// <summary>
/// Deletes a CloudFront origin access control.
///
///
/// <para>
/// You cannot delete an origin access control if it's in use. First, update all distributions
/// to remove the origin access control from all origins, then delete the origin access
/// control.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlInUseException">
/// Cannot delete the origin access control because it's in use by one or more distributions.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl">REST API Reference for DeleteOriginAccessControl Operation</seealso>
public virtual Task<DeleteOriginAccessControlResponse> DeleteOriginAccessControlAsync(DeleteOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginAccessControlResponseUnmarshaller.Instance;
return InvokeAsync<DeleteOriginAccessControlResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteOriginRequestPolicy
internal virtual DeleteOriginRequestPolicyResponse DeleteOriginRequestPolicy(DeleteOriginRequestPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginRequestPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteOriginRequestPolicyResponse>(request, options);
}
/// <summary>
/// Deletes an origin request policy.
///
///
/// <para>
/// You cannot delete an origin request policy if it's attached to any cache behaviors.
/// First update your distributions to remove the origin request policy from all cache
/// behaviors, then delete the origin request policy.
/// </para>
///
/// <para>
/// To delete an origin request policy, you must provide the policy's identifier and version.
/// To get the identifier, you can use <code>ListOriginRequestPolicies</code> or <code>GetOriginRequestPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyInUseException">
/// Cannot delete the origin request policy because it is attached to one or more cache
/// behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy">REST API Reference for DeleteOriginRequestPolicy Operation</seealso>
public virtual Task<DeleteOriginRequestPolicyResponse> DeleteOriginRequestPolicyAsync(DeleteOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginRequestPolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteOriginRequestPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeletePublicKey
internal virtual DeletePublicKeyResponse DeletePublicKey(DeletePublicKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePublicKeyResponseUnmarshaller.Instance;
return Invoke<DeletePublicKeyResponse>(request, options);
}
/// <summary>
/// Remove a public key you previously added to CloudFront.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyInUseException">
/// The specified public key is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey">REST API Reference for DeletePublicKey Operation</seealso>
public virtual Task<DeletePublicKeyResponse> DeletePublicKeyAsync(DeletePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePublicKeyResponseUnmarshaller.Instance;
return InvokeAsync<DeletePublicKeyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteRealtimeLogConfig
internal virtual DeleteRealtimeLogConfigResponse DeleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRealtimeLogConfigResponseUnmarshaller.Instance;
return Invoke<DeleteRealtimeLogConfigResponse>(request, options);
}
/// <summary>
/// Deletes a real-time log configuration.
///
///
/// <para>
/// You cannot delete a real-time log configuration if it's attached to a cache behavior.
/// First update your distributions to remove the real-time log configuration from all
/// cache behaviors, then delete the real-time log configuration.
/// </para>
///
/// <para>
/// To delete a real-time log configuration, you can provide the configuration's name
/// or its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to delete.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigInUseException">
/// Cannot delete the real-time log configuration because it is attached to one or more
/// cache behaviors.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig">REST API Reference for DeleteRealtimeLogConfig Operation</seealso>
public virtual Task<DeleteRealtimeLogConfigResponse> DeleteRealtimeLogConfigAsync(DeleteRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteRealtimeLogConfigResponseUnmarshaller.Instance;
return InvokeAsync<DeleteRealtimeLogConfigResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteResponseHeadersPolicy
internal virtual DeleteResponseHeadersPolicyResponse DeleteResponseHeadersPolicy(DeleteResponseHeadersPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResponseHeadersPolicyResponseUnmarshaller.Instance;
return Invoke<DeleteResponseHeadersPolicyResponse>(request, options);
}
/// <summary>
/// Deletes a response headers policy.
///
///
/// <para>
/// You cannot delete a response headers policy if it's attached to a cache behavior.
/// First update your distributions to remove the response headers policy from all cache
/// behaviors, then delete the response headers policy.
/// </para>
///
/// <para>
/// To delete a response headers policy, you must provide the policy's identifier and
/// version. To get these values, you can use <code>ListResponseHeadersPolicies</code>
/// or <code>GetResponseHeadersPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyInUseException">
/// Cannot delete the response headers policy because it is attached to one or more cache
/// behaviors in a CloudFront distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy">REST API Reference for DeleteResponseHeadersPolicy Operation</seealso>
public virtual Task<DeleteResponseHeadersPolicyResponse> DeleteResponseHeadersPolicyAsync(DeleteResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResponseHeadersPolicyResponseUnmarshaller.Instance;
return InvokeAsync<DeleteResponseHeadersPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteStreamingDistribution
internal virtual DeleteStreamingDistributionResponse DeleteStreamingDistribution()
{
return DeleteStreamingDistribution(new DeleteStreamingDistributionRequest());
}
internal virtual DeleteStreamingDistributionResponse DeleteStreamingDistribution(DeleteStreamingDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStreamingDistributionResponseUnmarshaller.Instance;
return Invoke<DeleteStreamingDistributionResponse>(request, options);
}
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
public virtual Task<DeleteStreamingDistributionResponse> DeleteStreamingDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DeleteStreamingDistributionAsync(new DeleteStreamingDistributionRequest(), cancellationToken);
}
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
public virtual Task<DeleteStreamingDistributionResponse> DeleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStreamingDistributionResponseUnmarshaller.Instance;
return InvokeAsync<DeleteStreamingDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeFunction
internal virtual DescribeFunctionResponse DescribeFunction(DescribeFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFunctionResponseUnmarshaller.Instance;
return Invoke<DescribeFunctionResponse>(request, options);
}
/// <summary>
/// Gets configuration information and metadata about a CloudFront function, but not the
/// function's code. To get a function's code, use <code>GetFunction</code>.
///
///
/// <para>
/// To get configuration information and metadata about a function, you must provide the
/// function's name and stage. To get these values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction">REST API Reference for DescribeFunction Operation</seealso>
public virtual Task<DescribeFunctionResponse> DescribeFunctionAsync(DescribeFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFunctionResponseUnmarshaller.Instance;
return InvokeAsync<DescribeFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region GetCachePolicy
internal virtual GetCachePolicyResponse GetCachePolicy(GetCachePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCachePolicyResponseUnmarshaller.Instance;
return Invoke<GetCachePolicyResponse>(request, options);
}
/// <summary>
/// Gets a cache policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get a cache policy, you must provide the policy's identifier. If the cache policy
/// is attached to a distribution's cache behavior, you can get the policy's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache
/// policy is not attached to a cache behavior, you can get the identifier using <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy">REST API Reference for GetCachePolicy Operation</seealso>
public virtual Task<GetCachePolicyResponse> GetCachePolicyAsync(GetCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCachePolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetCachePolicyResponse>(request, options, cancellationToken);
}
#endregion
#region GetCachePolicyConfig
internal virtual GetCachePolicyConfigResponse GetCachePolicyConfig(GetCachePolicyConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCachePolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCachePolicyConfigResponseUnmarshaller.Instance;
return Invoke<GetCachePolicyConfigResponse>(request, options);
}
/// <summary>
/// Gets a cache policy configuration.
///
///
/// <para>
/// To get a cache policy configuration, you must provide the policy's identifier. If
/// the cache policy is attached to a distribution's cache behavior, you can get the policy's
/// identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If
/// the cache policy is not attached to a cache behavior, you can get the identifier using
/// <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCachePolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig">REST API Reference for GetCachePolicyConfig Operation</seealso>
public virtual Task<GetCachePolicyConfigResponse> GetCachePolicyConfigAsync(GetCachePolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCachePolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCachePolicyConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetCachePolicyConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetCloudFrontOriginAccessIdentity
internal virtual GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity()
{
return GetCloudFrontOriginAccessIdentity(new GetCloudFrontOriginAccessIdentityRequest());
}
internal virtual GetCloudFrontOriginAccessIdentityResponse GetCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return Invoke<GetCloudFrontOriginAccessIdentityResponse>(request, options);
}
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<GetCloudFrontOriginAccessIdentityResponse> GetCloudFrontOriginAccessIdentityAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetCloudFrontOriginAccessIdentityAsync(new GetCloudFrontOriginAccessIdentityRequest(), cancellationToken);
}
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<GetCloudFrontOriginAccessIdentityResponse> GetCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return InvokeAsync<GetCloudFrontOriginAccessIdentityResponse>(request, options, cancellationToken);
}
#endregion
#region GetCloudFrontOriginAccessIdentityConfig
internal virtual GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig()
{
return GetCloudFrontOriginAccessIdentityConfig(new GetCloudFrontOriginAccessIdentityConfigRequest());
}
internal virtual GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFrontOriginAccessIdentityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance;
return Invoke<GetCloudFrontOriginAccessIdentityConfigResponse>(request, options);
}
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
public virtual Task<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetCloudFrontOriginAccessIdentityConfigAsync(new GetCloudFrontOriginAccessIdentityConfigRequest(), cancellationToken);
}
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
public virtual Task<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCloudFrontOriginAccessIdentityConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetCloudFrontOriginAccessIdentityConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetContinuousDeploymentPolicy
internal virtual GetContinuousDeploymentPolicyResponse GetContinuousDeploymentPolicy(GetContinuousDeploymentPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return Invoke<GetContinuousDeploymentPolicyResponse>(request, options);
}
/// <summary>
/// Gets a continuous deployment policy, including metadata (the policy's identifier and
/// the date and time when the policy was last modified).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy">REST API Reference for GetContinuousDeploymentPolicy Operation</seealso>
public virtual Task<GetContinuousDeploymentPolicyResponse> GetContinuousDeploymentPolicyAsync(GetContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetContinuousDeploymentPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region GetContinuousDeploymentPolicyConfig
internal virtual GetContinuousDeploymentPolicyConfigResponse GetContinuousDeploymentPolicyConfig(GetContinuousDeploymentPolicyConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContinuousDeploymentPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContinuousDeploymentPolicyConfigResponseUnmarshaller.Instance;
return Invoke<GetContinuousDeploymentPolicyConfigResponse>(request, options);
}
/// <summary>
/// Gets configuration information about a continuous deployment policy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContinuousDeploymentPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig">REST API Reference for GetContinuousDeploymentPolicyConfig Operation</seealso>
public virtual Task<GetContinuousDeploymentPolicyConfigResponse> GetContinuousDeploymentPolicyConfigAsync(GetContinuousDeploymentPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContinuousDeploymentPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContinuousDeploymentPolicyConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetContinuousDeploymentPolicyConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetDistribution
internal virtual GetDistributionResponse GetDistribution()
{
return GetDistribution(new GetDistributionRequest());
}
internal virtual GetDistributionResponse GetDistribution(GetDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDistributionResponseUnmarshaller.Instance;
return Invoke<GetDistributionResponse>(request, options);
}
/// <summary>
/// Get the information about a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
public virtual Task<GetDistributionResponse> GetDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetDistributionAsync(new GetDistributionRequest(), cancellationToken);
}
/// <summary>
/// Get the information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
public virtual Task<GetDistributionResponse> GetDistributionAsync(GetDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDistributionResponseUnmarshaller.Instance;
return InvokeAsync<GetDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region GetDistributionConfig
internal virtual GetDistributionConfigResponse GetDistributionConfig()
{
return GetDistributionConfig(new GetDistributionConfigRequest());
}
internal virtual GetDistributionConfigResponse GetDistributionConfig(GetDistributionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDistributionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDistributionConfigResponseUnmarshaller.Instance;
return Invoke<GetDistributionConfigResponse>(request, options);
}
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
public virtual Task<GetDistributionConfigResponse> GetDistributionConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetDistributionConfigAsync(new GetDistributionConfigRequest(), cancellationToken);
}
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistributionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
public virtual Task<GetDistributionConfigResponse> GetDistributionConfigAsync(GetDistributionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDistributionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDistributionConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetDistributionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetFieldLevelEncryption
internal virtual GetFieldLevelEncryptionResponse GetFieldLevelEncryption(GetFieldLevelEncryptionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionResponseUnmarshaller.Instance;
return Invoke<GetFieldLevelEncryptionResponse>(request, options);
}
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryption service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryption service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption">REST API Reference for GetFieldLevelEncryption Operation</seealso>
public virtual Task<GetFieldLevelEncryptionResponse> GetFieldLevelEncryptionAsync(GetFieldLevelEncryptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionResponseUnmarshaller.Instance;
return InvokeAsync<GetFieldLevelEncryptionResponse>(request, options, cancellationToken);
}
#endregion
#region GetFieldLevelEncryptionConfig
internal virtual GetFieldLevelEncryptionConfigResponse GetFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return Invoke<GetFieldLevelEncryptionConfigResponse>(request, options);
}
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig">REST API Reference for GetFieldLevelEncryptionConfig Operation</seealso>
public virtual Task<GetFieldLevelEncryptionConfigResponse> GetFieldLevelEncryptionConfigAsync(GetFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetFieldLevelEncryptionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetFieldLevelEncryptionProfile
internal virtual GetFieldLevelEncryptionProfileResponse GetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return Invoke<GetFieldLevelEncryptionProfileResponse>(request, options);
}
/// <summary>
/// Get the field-level encryption profile information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile">REST API Reference for GetFieldLevelEncryptionProfile Operation</seealso>
public virtual Task<GetFieldLevelEncryptionProfileResponse> GetFieldLevelEncryptionProfileAsync(GetFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return InvokeAsync<GetFieldLevelEncryptionProfileResponse>(request, options, cancellationToken);
}
#endregion
#region GetFieldLevelEncryptionProfileConfig
internal virtual GetFieldLevelEncryptionProfileConfigResponse GetFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionProfileConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileConfigResponseUnmarshaller.Instance;
return Invoke<GetFieldLevelEncryptionProfileConfigResponse>(request, options);
}
/// <summary>
/// Get the field-level encryption profile configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfileConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfileConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig">REST API Reference for GetFieldLevelEncryptionProfileConfig Operation</seealso>
public virtual Task<GetFieldLevelEncryptionProfileConfigResponse> GetFieldLevelEncryptionProfileConfigAsync(GetFieldLevelEncryptionProfileConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFieldLevelEncryptionProfileConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetFieldLevelEncryptionProfileConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetFunction
internal virtual GetFunctionResponse GetFunction(GetFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance;
return Invoke<GetFunctionResponse>(request, options);
}
/// <summary>
/// Gets the code of a CloudFront function. To get configuration information and metadata
/// about a function, use <code>DescribeFunction</code>.
///
///
/// <para>
/// To get a function's code, you must provide the function's name and stage. To get these
/// values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction">REST API Reference for GetFunction Operation</seealso>
public virtual Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance;
return InvokeAsync<GetFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region GetInvalidation
internal virtual GetInvalidationResponse GetInvalidation(GetInvalidationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvalidationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvalidationResponseUnmarshaller.Instance;
return Invoke<GetInvalidationResponse>(request, options);
}
/// <summary>
/// Get the information about an invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetInvalidation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchInvalidationException">
/// The specified invalidation does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation">REST API Reference for GetInvalidation Operation</seealso>
public virtual Task<GetInvalidationResponse> GetInvalidationAsync(GetInvalidationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvalidationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvalidationResponseUnmarshaller.Instance;
return InvokeAsync<GetInvalidationResponse>(request, options, cancellationToken);
}
#endregion
#region GetKeyGroup
internal virtual GetKeyGroupResponse GetKeyGroup(GetKeyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKeyGroupResponseUnmarshaller.Instance;
return Invoke<GetKeyGroupResponse>(request, options);
}
/// <summary>
/// Gets a key group, including the date and time when the key group was last modified.
///
///
/// <para>
/// To get a key group, you must provide the key group's identifier. If the key group
/// is referenced in a distribution's cache behavior, you can get the key group's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the key group
/// is not referenced in a cache behavior, you can get the identifier using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroup">REST API Reference for GetKeyGroup Operation</seealso>
public virtual Task<GetKeyGroupResponse> GetKeyGroupAsync(GetKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKeyGroupResponseUnmarshaller.Instance;
return InvokeAsync<GetKeyGroupResponse>(request, options, cancellationToken);
}
#endregion
#region GetKeyGroupConfig
internal virtual GetKeyGroupConfigResponse GetKeyGroupConfig(GetKeyGroupConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKeyGroupConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKeyGroupConfigResponseUnmarshaller.Instance;
return Invoke<GetKeyGroupConfigResponse>(request, options);
}
/// <summary>
/// Gets a key group configuration.
///
///
/// <para>
/// To get a key group configuration, you must provide the key group's identifier. If
/// the key group is referenced in a distribution's cache behavior, you can get the key
/// group's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the key group is not referenced in a cache behavior, you can get the identifier
/// using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroupConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetKeyGroupConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroupConfig">REST API Reference for GetKeyGroupConfig Operation</seealso>
public virtual Task<GetKeyGroupConfigResponse> GetKeyGroupConfigAsync(GetKeyGroupConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKeyGroupConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKeyGroupConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetKeyGroupConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetMonitoringSubscription
internal virtual GetMonitoringSubscriptionResponse GetMonitoringSubscription(GetMonitoringSubscriptionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMonitoringSubscriptionResponseUnmarshaller.Instance;
return Invoke<GetMonitoringSubscriptionResponse>(request, options);
}
/// <summary>
/// Gets information about whether additional CloudWatch metrics are enabled for the specified
/// CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription">REST API Reference for GetMonitoringSubscription Operation</seealso>
public virtual Task<GetMonitoringSubscriptionResponse> GetMonitoringSubscriptionAsync(GetMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMonitoringSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMonitoringSubscriptionResponseUnmarshaller.Instance;
return InvokeAsync<GetMonitoringSubscriptionResponse>(request, options, cancellationToken);
}
#endregion
#region GetOriginAccessControl
internal virtual GetOriginAccessControlResponse GetOriginAccessControl(GetOriginAccessControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginAccessControlResponseUnmarshaller.Instance;
return Invoke<GetOriginAccessControlResponse>(request, options);
}
/// <summary>
/// Gets a CloudFront origin access control, including its unique identifier.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl">REST API Reference for GetOriginAccessControl Operation</seealso>
public virtual Task<GetOriginAccessControlResponse> GetOriginAccessControlAsync(GetOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginAccessControlResponseUnmarshaller.Instance;
return InvokeAsync<GetOriginAccessControlResponse>(request, options, cancellationToken);
}
#endregion
#region GetOriginAccessControlConfig
internal virtual GetOriginAccessControlConfigResponse GetOriginAccessControlConfig(GetOriginAccessControlConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginAccessControlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginAccessControlConfigResponseUnmarshaller.Instance;
return Invoke<GetOriginAccessControlConfigResponse>(request, options);
}
/// <summary>
/// Gets a CloudFront origin access control configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControlConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginAccessControlConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig">REST API Reference for GetOriginAccessControlConfig Operation</seealso>
public virtual Task<GetOriginAccessControlConfigResponse> GetOriginAccessControlConfigAsync(GetOriginAccessControlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginAccessControlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginAccessControlConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetOriginAccessControlConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetOriginRequestPolicy
internal virtual GetOriginRequestPolicyResponse GetOriginRequestPolicy(GetOriginRequestPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginRequestPolicyResponseUnmarshaller.Instance;
return Invoke<GetOriginRequestPolicyResponse>(request, options);
}
/// <summary>
/// Gets an origin request policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get an origin request policy, you must provide the policy's identifier. If the
/// origin request policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy">REST API Reference for GetOriginRequestPolicy Operation</seealso>
public virtual Task<GetOriginRequestPolicyResponse> GetOriginRequestPolicyAsync(GetOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginRequestPolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetOriginRequestPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region GetOriginRequestPolicyConfig
internal virtual GetOriginRequestPolicyConfigResponse GetOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginRequestPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginRequestPolicyConfigResponseUnmarshaller.Instance;
return Invoke<GetOriginRequestPolicyConfigResponse>(request, options);
}
/// <summary>
/// Gets an origin request policy configuration.
///
///
/// <para>
/// To get an origin request policy configuration, you must provide the policy's identifier.
/// If the origin request policy is attached to a distribution's cache behavior, you can
/// get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginRequestPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig">REST API Reference for GetOriginRequestPolicyConfig Operation</seealso>
public virtual Task<GetOriginRequestPolicyConfigResponse> GetOriginRequestPolicyConfigAsync(GetOriginRequestPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOriginRequestPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOriginRequestPolicyConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetOriginRequestPolicyConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetPublicKey
internal virtual GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPublicKeyResponseUnmarshaller.Instance;
return Invoke<GetPublicKeyResponse>(request, options);
}
/// <summary>
/// Gets a public key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetPublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey">REST API Reference for GetPublicKey Operation</seealso>
public virtual Task<GetPublicKeyResponse> GetPublicKeyAsync(GetPublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPublicKeyResponseUnmarshaller.Instance;
return InvokeAsync<GetPublicKeyResponse>(request, options, cancellationToken);
}
#endregion
#region GetPublicKeyConfig
internal virtual GetPublicKeyConfigResponse GetPublicKeyConfig(GetPublicKeyConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPublicKeyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPublicKeyConfigResponseUnmarshaller.Instance;
return Invoke<GetPublicKeyConfigResponse>(request, options);
}
/// <summary>
/// Gets a public key configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKeyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetPublicKeyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig">REST API Reference for GetPublicKeyConfig Operation</seealso>
public virtual Task<GetPublicKeyConfigResponse> GetPublicKeyConfigAsync(GetPublicKeyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPublicKeyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPublicKeyConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetPublicKeyConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetRealtimeLogConfig
internal virtual GetRealtimeLogConfigResponse GetRealtimeLogConfig(GetRealtimeLogConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRealtimeLogConfigResponseUnmarshaller.Instance;
return Invoke<GetRealtimeLogConfigResponse>(request, options);
}
/// <summary>
/// Gets a real-time log configuration.
///
///
/// <para>
/// To get a real-time log configuration, you can provide the configuration's name or
/// its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to get.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig">REST API Reference for GetRealtimeLogConfig Operation</seealso>
public virtual Task<GetRealtimeLogConfigResponse> GetRealtimeLogConfigAsync(GetRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRealtimeLogConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetRealtimeLogConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetResponseHeadersPolicy
internal virtual GetResponseHeadersPolicyResponse GetResponseHeadersPolicy(GetResponseHeadersPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResponseHeadersPolicyResponseUnmarshaller.Instance;
return Invoke<GetResponseHeadersPolicyResponse>(request, options);
}
/// <summary>
/// Gets a response headers policy, including metadata (the policy's identifier and the
/// date and time when the policy was last modified).
///
///
/// <para>
/// To get a response headers policy, you must provide the policy's identifier. If the
/// response headers policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy">REST API Reference for GetResponseHeadersPolicy Operation</seealso>
public virtual Task<GetResponseHeadersPolicyResponse> GetResponseHeadersPolicyAsync(GetResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResponseHeadersPolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetResponseHeadersPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region GetResponseHeadersPolicyConfig
internal virtual GetResponseHeadersPolicyConfigResponse GetResponseHeadersPolicyConfig(GetResponseHeadersPolicyConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResponseHeadersPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResponseHeadersPolicyConfigResponseUnmarshaller.Instance;
return Invoke<GetResponseHeadersPolicyConfigResponse>(request, options);
}
/// <summary>
/// Gets a response headers policy configuration.
///
///
/// <para>
/// To get a response headers policy configuration, you must provide the policy's identifier.
/// If the response headers policy is attached to a distribution's cache behavior, you
/// can get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetResponseHeadersPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig">REST API Reference for GetResponseHeadersPolicyConfig Operation</seealso>
public virtual Task<GetResponseHeadersPolicyConfigResponse> GetResponseHeadersPolicyConfigAsync(GetResponseHeadersPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResponseHeadersPolicyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResponseHeadersPolicyConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetResponseHeadersPolicyConfigResponse>(request, options, cancellationToken);
}
#endregion
#region GetStreamingDistribution
internal virtual GetStreamingDistributionResponse GetStreamingDistribution()
{
return GetStreamingDistribution(new GetStreamingDistributionRequest());
}
internal virtual GetStreamingDistributionResponse GetStreamingDistribution(GetStreamingDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStreamingDistributionResponseUnmarshaller.Instance;
return Invoke<GetStreamingDistributionResponse>(request, options);
}
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
public virtual Task<GetStreamingDistributionResponse> GetStreamingDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetStreamingDistributionAsync(new GetStreamingDistributionRequest(), cancellationToken);
}
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
public virtual Task<GetStreamingDistributionResponse> GetStreamingDistributionAsync(GetStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStreamingDistributionResponseUnmarshaller.Instance;
return InvokeAsync<GetStreamingDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region GetStreamingDistributionConfig
internal virtual GetStreamingDistributionConfigResponse GetStreamingDistributionConfig()
{
return GetStreamingDistributionConfig(new GetStreamingDistributionConfigRequest());
}
internal virtual GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStreamingDistributionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance;
return Invoke<GetStreamingDistributionConfigResponse>(request, options);
}
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
public virtual Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return GetStreamingDistributionConfigAsync(new GetStreamingDistributionConfigRequest(), cancellationToken);
}
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
public virtual Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStreamingDistributionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance;
return InvokeAsync<GetStreamingDistributionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region ListCachePolicies
internal virtual ListCachePoliciesResponse ListCachePolicies(ListCachePoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCachePoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCachePoliciesResponseUnmarshaller.Instance;
return Invoke<ListCachePoliciesResponse>(request, options);
}
/// <summary>
/// Gets a list of cache policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCachePolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCachePolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies">REST API Reference for ListCachePolicies Operation</seealso>
public virtual Task<ListCachePoliciesResponse> ListCachePoliciesAsync(ListCachePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCachePoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCachePoliciesResponseUnmarshaller.Instance;
return InvokeAsync<ListCachePoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region ListCloudFrontOriginAccessIdentities
internal virtual ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities()
{
return ListCloudFrontOriginAccessIdentities(new ListCloudFrontOriginAccessIdentitiesRequest());
}
internal virtual ListCloudFrontOriginAccessIdentitiesResponse ListCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCloudFrontOriginAccessIdentitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance;
return Invoke<ListCloudFrontOriginAccessIdentitiesResponse>(request, options);
}
/// <summary>
/// Lists origin access identities.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
public virtual Task<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return ListCloudFrontOriginAccessIdentitiesAsync(new ListCloudFrontOriginAccessIdentitiesRequest(), cancellationToken);
}
/// <summary>
/// Lists origin access identities.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
public virtual Task<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCloudFrontOriginAccessIdentitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCloudFrontOriginAccessIdentitiesResponseUnmarshaller.Instance;
return InvokeAsync<ListCloudFrontOriginAccessIdentitiesResponse>(request, options, cancellationToken);
}
#endregion
#region ListConflictingAliases
internal virtual ListConflictingAliasesResponse ListConflictingAliases(ListConflictingAliasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConflictingAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConflictingAliasesResponseUnmarshaller.Instance;
return Invoke<ListConflictingAliasesResponse>(request, options);
}
/// <summary>
/// Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict
/// or overlap with the provided alias, and the associated CloudFront distributions and
/// Amazon Web Services accounts for each conflicting alias. In the returned list, the
/// distribution and account IDs are partially hidden, which allows you to identify the
/// distributions and accounts that you own, but helps to protect the information of ones
/// that you don't own.
///
///
/// <para>
/// Use this operation to find aliases that are in use in CloudFront that conflict or
/// overlap with the provided alias. For example, if you provide <code>www.example.com</code>
/// as input, the returned list can include <code>www.example.com</code> and the overlapping
/// wildcard alternate domain name (<code>*.example.com</code>), if they exist. If you
/// provide <code>*.example.com</code> as input, the returned list can include <code>*.example.com</code>
/// and any alternate domain names covered by that wildcard (for example, <code>www.example.com</code>,
/// <code>test.example.com</code>, <code>dev.example.com</code>, and so on), if they exist.
/// </para>
///
/// <para>
/// To list conflicting aliases, you provide the alias to search and the ID of a distribution
/// in your account that has an attached SSL/TLS certificate that includes the provided
/// alias. For more information, including how to set up the distribution and certificate,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConflictingAliases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConflictingAliases service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases">REST API Reference for ListConflictingAliases Operation</seealso>
public virtual Task<ListConflictingAliasesResponse> ListConflictingAliasesAsync(ListConflictingAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConflictingAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConflictingAliasesResponseUnmarshaller.Instance;
return InvokeAsync<ListConflictingAliasesResponse>(request, options, cancellationToken);
}
#endregion
#region ListContinuousDeploymentPolicies
internal virtual ListContinuousDeploymentPoliciesResponse ListContinuousDeploymentPolicies(ListContinuousDeploymentPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListContinuousDeploymentPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListContinuousDeploymentPoliciesResponseUnmarshaller.Instance;
return Invoke<ListContinuousDeploymentPoliciesResponse>(request, options);
}
/// <summary>
/// Gets a list of the continuous deployment policies in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListContinuousDeploymentPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListContinuousDeploymentPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies">REST API Reference for ListContinuousDeploymentPolicies Operation</seealso>
public virtual Task<ListContinuousDeploymentPoliciesResponse> ListContinuousDeploymentPoliciesAsync(ListContinuousDeploymentPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListContinuousDeploymentPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListContinuousDeploymentPoliciesResponseUnmarshaller.Instance;
return InvokeAsync<ListContinuousDeploymentPoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributions
internal virtual ListDistributionsResponse ListDistributions()
{
return ListDistributions(new ListDistributionsRequest());
}
internal virtual ListDistributionsResponse ListDistributions(ListDistributionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsResponseUnmarshaller.Instance;
return Invoke<ListDistributionsResponse>(request, options);
}
/// <summary>
/// List CloudFront distributions.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
public virtual Task<ListDistributionsResponse> ListDistributionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return ListDistributionsAsync(new ListDistributionsRequest(), cancellationToken);
}
/// <summary>
/// List CloudFront distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
public virtual Task<ListDistributionsResponse> ListDistributionsAsync(ListDistributionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByCachePolicyId
internal virtual ListDistributionsByCachePolicyIdResponse ListDistributionsByCachePolicyId(ListDistributionsByCachePolicyIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByCachePolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByCachePolicyIdResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByCachePolicyIdResponse>(request, options);
}
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified cache policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByCachePolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByCachePolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId">REST API Reference for ListDistributionsByCachePolicyId Operation</seealso>
public virtual Task<ListDistributionsByCachePolicyIdResponse> ListDistributionsByCachePolicyIdAsync(ListDistributionsByCachePolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByCachePolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByCachePolicyIdResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByCachePolicyIdResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByKeyGroup
internal virtual ListDistributionsByKeyGroupResponse ListDistributionsByKeyGroup(ListDistributionsByKeyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByKeyGroupResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByKeyGroupResponse>(request, options);
}
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that
/// references the specified key group.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByKeyGroup">REST API Reference for ListDistributionsByKeyGroup Operation</seealso>
public virtual Task<ListDistributionsByKeyGroupResponse> ListDistributionsByKeyGroupAsync(ListDistributionsByKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByKeyGroupResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByKeyGroupResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByOriginRequestPolicyId
internal virtual ListDistributionsByOriginRequestPolicyIdResponse ListDistributionsByOriginRequestPolicyId(ListDistributionsByOriginRequestPolicyIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByOriginRequestPolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByOriginRequestPolicyIdResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByOriginRequestPolicyIdResponse>(request, options);
}
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified origin request policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByOriginRequestPolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByOriginRequestPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId">REST API Reference for ListDistributionsByOriginRequestPolicyId Operation</seealso>
public virtual Task<ListDistributionsByOriginRequestPolicyIdResponse> ListDistributionsByOriginRequestPolicyIdAsync(ListDistributionsByOriginRequestPolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByOriginRequestPolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByOriginRequestPolicyIdResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByOriginRequestPolicyIdResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByRealtimeLogConfig
internal virtual ListDistributionsByRealtimeLogConfigResponse ListDistributionsByRealtimeLogConfig(ListDistributionsByRealtimeLogConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByRealtimeLogConfigResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByRealtimeLogConfigResponse>(request, options);
}
/// <summary>
/// Gets a list of distributions that have a cache behavior that's associated with the
/// specified real-time log configuration.
///
///
/// <para>
/// You can specify the real-time log configuration by its name or its Amazon Resource
/// Name (ARN). You must provide at least one. If you provide both, CloudFront uses the
/// name to identify the real-time log configuration to list distributions for.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig">REST API Reference for ListDistributionsByRealtimeLogConfig Operation</seealso>
public virtual Task<ListDistributionsByRealtimeLogConfigResponse> ListDistributionsByRealtimeLogConfigAsync(ListDistributionsByRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByRealtimeLogConfigResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByRealtimeLogConfigResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByResponseHeadersPolicyId
internal virtual ListDistributionsByResponseHeadersPolicyIdResponse ListDistributionsByResponseHeadersPolicyId(ListDistributionsByResponseHeadersPolicyIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByResponseHeadersPolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByResponseHeadersPolicyIdResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByResponseHeadersPolicyIdResponse>(request, options);
}
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified response headers policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByResponseHeadersPolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByResponseHeadersPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId">REST API Reference for ListDistributionsByResponseHeadersPolicyId Operation</seealso>
public virtual Task<ListDistributionsByResponseHeadersPolicyIdResponse> ListDistributionsByResponseHeadersPolicyIdAsync(ListDistributionsByResponseHeadersPolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByResponseHeadersPolicyIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByResponseHeadersPolicyIdResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByResponseHeadersPolicyIdResponse>(request, options, cancellationToken);
}
#endregion
#region ListDistributionsByWebACLId
internal virtual ListDistributionsByWebACLIdResponse ListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByWebACLIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByWebACLIdResponseUnmarshaller.Instance;
return Invoke<ListDistributionsByWebACLIdResponse>(request, options);
}
/// <summary>
/// List the distributions that are associated with a specified WAF web ACL.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByWebACLId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByWebACLId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId">REST API Reference for ListDistributionsByWebACLId Operation</seealso>
public virtual Task<ListDistributionsByWebACLIdResponse> ListDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDistributionsByWebACLIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDistributionsByWebACLIdResponseUnmarshaller.Instance;
return InvokeAsync<ListDistributionsByWebACLIdResponse>(request, options, cancellationToken);
}
#endregion
#region ListFieldLevelEncryptionConfigs
internal virtual ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFieldLevelEncryptionConfigsResponseUnmarshaller.Instance;
return Invoke<ListFieldLevelEncryptionConfigsResponse>(request, options);
}
/// <summary>
/// List all field-level encryption configurations that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionConfigs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFieldLevelEncryptionConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs">REST API Reference for ListFieldLevelEncryptionConfigs Operation</seealso>
public virtual Task<ListFieldLevelEncryptionConfigsResponse> ListFieldLevelEncryptionConfigsAsync(ListFieldLevelEncryptionConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFieldLevelEncryptionConfigsResponseUnmarshaller.Instance;
return InvokeAsync<ListFieldLevelEncryptionConfigsResponse>(request, options, cancellationToken);
}
#endregion
#region ListFieldLevelEncryptionProfiles
internal virtual ListFieldLevelEncryptionProfilesResponse ListFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFieldLevelEncryptionProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFieldLevelEncryptionProfilesResponseUnmarshaller.Instance;
return Invoke<ListFieldLevelEncryptionProfilesResponse>(request, options);
}
/// <summary>
/// Request a list of field-level encryption profiles that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionProfiles service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFieldLevelEncryptionProfiles service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles">REST API Reference for ListFieldLevelEncryptionProfiles Operation</seealso>
public virtual Task<ListFieldLevelEncryptionProfilesResponse> ListFieldLevelEncryptionProfilesAsync(ListFieldLevelEncryptionProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFieldLevelEncryptionProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFieldLevelEncryptionProfilesResponseUnmarshaller.Instance;
return InvokeAsync<ListFieldLevelEncryptionProfilesResponse>(request, options, cancellationToken);
}
#endregion
#region ListFunctions
internal virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance;
return Invoke<ListFunctionsResponse>(request, options);
}
/// <summary>
/// Gets a list of all CloudFront functions in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally apply a filter to return only the functions that are in the specified
/// stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFunctions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions">REST API Reference for ListFunctions Operation</seealso>
public virtual Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance;
return InvokeAsync<ListFunctionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListInvalidations
internal virtual ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvalidationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvalidationsResponseUnmarshaller.Instance;
return Invoke<ListInvalidationsResponse>(request, options);
}
/// <summary>
/// Lists invalidation batches.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListInvalidations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListInvalidations service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations">REST API Reference for ListInvalidations Operation</seealso>
public virtual Task<ListInvalidationsResponse> ListInvalidationsAsync(ListInvalidationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvalidationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvalidationsResponseUnmarshaller.Instance;
return InvokeAsync<ListInvalidationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListKeyGroups
internal virtual ListKeyGroupsResponse ListKeyGroups(ListKeyGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListKeyGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListKeyGroupsResponseUnmarshaller.Instance;
return Invoke<ListKeyGroupsResponse>(request, options);
}
/// <summary>
/// Gets a list of key groups.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListKeyGroups service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListKeyGroups service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyGroups">REST API Reference for ListKeyGroups Operation</seealso>
public virtual Task<ListKeyGroupsResponse> ListKeyGroupsAsync(ListKeyGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListKeyGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListKeyGroupsResponseUnmarshaller.Instance;
return InvokeAsync<ListKeyGroupsResponse>(request, options, cancellationToken);
}
#endregion
#region ListOriginAccessControls
internal virtual ListOriginAccessControlsResponse ListOriginAccessControls(ListOriginAccessControlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginAccessControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginAccessControlsResponseUnmarshaller.Instance;
return Invoke<ListOriginAccessControlsResponse>(request, options);
}
/// <summary>
/// Gets the list of CloudFront origin access controls in this Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// another request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the next request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginAccessControls service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListOriginAccessControls service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls">REST API Reference for ListOriginAccessControls Operation</seealso>
public virtual Task<ListOriginAccessControlsResponse> ListOriginAccessControlsAsync(ListOriginAccessControlsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginAccessControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginAccessControlsResponseUnmarshaller.Instance;
return InvokeAsync<ListOriginAccessControlsResponse>(request, options, cancellationToken);
}
#endregion
#region ListOriginRequestPolicies
internal virtual ListOriginRequestPoliciesResponse ListOriginRequestPolicies(ListOriginRequestPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginRequestPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginRequestPoliciesResponseUnmarshaller.Instance;
return Invoke<ListOriginRequestPoliciesResponse>(request, options);
}
/// <summary>
/// Gets a list of origin request policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginRequestPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListOriginRequestPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies">REST API Reference for ListOriginRequestPolicies Operation</seealso>
public virtual Task<ListOriginRequestPoliciesResponse> ListOriginRequestPoliciesAsync(ListOriginRequestPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginRequestPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginRequestPoliciesResponseUnmarshaller.Instance;
return InvokeAsync<ListOriginRequestPoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region ListPublicKeys
internal virtual ListPublicKeysResponse ListPublicKeys(ListPublicKeysRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPublicKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPublicKeysResponseUnmarshaller.Instance;
return Invoke<ListPublicKeysResponse>(request, options);
}
/// <summary>
/// List all public keys that have been added to CloudFront for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPublicKeys service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPublicKeys service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys">REST API Reference for ListPublicKeys Operation</seealso>
public virtual Task<ListPublicKeysResponse> ListPublicKeysAsync(ListPublicKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPublicKeysRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPublicKeysResponseUnmarshaller.Instance;
return InvokeAsync<ListPublicKeysResponse>(request, options, cancellationToken);
}
#endregion
#region ListRealtimeLogConfigs
internal virtual ListRealtimeLogConfigsResponse ListRealtimeLogConfigs(ListRealtimeLogConfigsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRealtimeLogConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRealtimeLogConfigsResponseUnmarshaller.Instance;
return Invoke<ListRealtimeLogConfigsResponse>(request, options);
}
/// <summary>
/// Gets a list of real-time log configurations.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRealtimeLogConfigs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRealtimeLogConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs">REST API Reference for ListRealtimeLogConfigs Operation</seealso>
public virtual Task<ListRealtimeLogConfigsResponse> ListRealtimeLogConfigsAsync(ListRealtimeLogConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRealtimeLogConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRealtimeLogConfigsResponseUnmarshaller.Instance;
return InvokeAsync<ListRealtimeLogConfigsResponse>(request, options, cancellationToken);
}
#endregion
#region ListResponseHeadersPolicies
internal virtual ListResponseHeadersPoliciesResponse ListResponseHeadersPolicies(ListResponseHeadersPoliciesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResponseHeadersPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResponseHeadersPoliciesResponseUnmarshaller.Instance;
return Invoke<ListResponseHeadersPoliciesResponse>(request, options);
}
/// <summary>
/// Gets a list of response headers policies.
///
///
/// <para>
/// You can optionally apply a filter to get only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListResponseHeadersPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListResponseHeadersPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies">REST API Reference for ListResponseHeadersPolicies Operation</seealso>
public virtual Task<ListResponseHeadersPoliciesResponse> ListResponseHeadersPoliciesAsync(ListResponseHeadersPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListResponseHeadersPoliciesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListResponseHeadersPoliciesResponseUnmarshaller.Instance;
return InvokeAsync<ListResponseHeadersPoliciesResponse>(request, options, cancellationToken);
}
#endregion
#region ListStreamingDistributions
internal virtual ListStreamingDistributionsResponse ListStreamingDistributions()
{
return ListStreamingDistributions(new ListStreamingDistributionsRequest());
}
internal virtual ListStreamingDistributionsResponse ListStreamingDistributions(ListStreamingDistributionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStreamingDistributionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStreamingDistributionsResponseUnmarshaller.Instance;
return Invoke<ListStreamingDistributionsResponse>(request, options);
}
/// <summary>
/// List streaming distributions.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
public virtual Task<ListStreamingDistributionsResponse> ListStreamingDistributionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return ListStreamingDistributionsAsync(new ListStreamingDistributionsRequest(), cancellationToken);
}
/// <summary>
/// List streaming distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListStreamingDistributions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
public virtual Task<ListStreamingDistributionsResponse> ListStreamingDistributionsAsync(ListStreamingDistributionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStreamingDistributionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStreamingDistributionsResponseUnmarshaller.Instance;
return InvokeAsync<ListStreamingDistributionsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// List tags for a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region PublishFunction
internal virtual PublishFunctionResponse PublishFunction(PublishFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishFunctionResponseUnmarshaller.Instance;
return Invoke<PublishFunctionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PublishFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PublishFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction">REST API Reference for PublishFunction Operation</seealso>
public virtual Task<PublishFunctionResponse> PublishFunctionAsync(PublishFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishFunctionResponseUnmarshaller.Instance;
return InvokeAsync<PublishFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Add tags to a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region TestFunction
internal virtual TestFunctionResponse TestFunction(TestFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TestFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestFunctionResponseUnmarshaller.Instance;
return Invoke<TestFunctionResponse>(request, options);
}
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TestFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TestFunctionFailedException">
/// The CloudFront function failed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction">REST API Reference for TestFunction Operation</seealso>
public virtual Task<TestFunctionResponse> TestFunctionAsync(TestFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TestFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = TestFunctionResponseUnmarshaller.Instance;
return InvokeAsync<TestFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Remove tags from a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateCachePolicy
internal virtual UpdateCachePolicyResponse UpdateCachePolicy(UpdateCachePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCachePolicyResponseUnmarshaller.Instance;
return Invoke<UpdateCachePolicyResponse>(request, options);
}
/// <summary>
/// Updates a cache policy configuration.
///
///
/// <para>
/// When you update a cache policy configuration, all the fields are updated with the
/// values provided in the request. You cannot update some fields independent of others.
/// To update a cache policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetCachePolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the cache policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateCachePolicy</code> by providing the entire cache policy configuration,
/// including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy">REST API Reference for UpdateCachePolicy Operation</seealso>
public virtual Task<UpdateCachePolicyResponse> UpdateCachePolicyAsync(UpdateCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCachePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCachePolicyResponseUnmarshaller.Instance;
return InvokeAsync<UpdateCachePolicyResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateCloudFrontOriginAccessIdentity
internal virtual UpdateCloudFrontOriginAccessIdentityResponse UpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return Invoke<UpdateCloudFrontOriginAccessIdentityResponse>(request, options);
}
/// <summary>
/// Update an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity">REST API Reference for UpdateCloudFrontOriginAccessIdentity Operation</seealso>
public virtual Task<UpdateCloudFrontOriginAccessIdentityResponse> UpdateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;
return InvokeAsync<UpdateCloudFrontOriginAccessIdentityResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateContinuousDeploymentPolicy
internal virtual UpdateContinuousDeploymentPolicyResponse UpdateContinuousDeploymentPolicy(UpdateContinuousDeploymentPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return Invoke<UpdateContinuousDeploymentPolicyResponse>(request, options);
}
/// <summary>
/// Updates a continuous deployment policy. You can update a continuous deployment policy
/// to enable or disable it, to change the percentage of traffic that it sends to the
/// staging distribution, or to change the staging distribution that it sends traffic
/// to.
///
///
/// <para>
/// When you update a continuous deployment policy configuration, all the fields are updated
/// with the values that are provided in the request. You cannot update some fields independent
/// of others. To update a continuous deployment policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetContinuousDeploymentPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the continuous deployment policy configuration that you
/// want to update.
/// </para>
/// </li> <li>
/// <para>
/// Use <code>UpdateContinuousDeploymentPolicy</code>, providing the entire continuous
/// deployment policy configuration, including the fields that you modified and those
/// that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy">REST API Reference for UpdateContinuousDeploymentPolicy Operation</seealso>
public virtual Task<UpdateContinuousDeploymentPolicyResponse> UpdateContinuousDeploymentPolicyAsync(UpdateContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateContinuousDeploymentPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateContinuousDeploymentPolicyResponseUnmarshaller.Instance;
return InvokeAsync<UpdateContinuousDeploymentPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateDistribution
internal virtual UpdateDistributionResponse UpdateDistribution(UpdateDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDistributionResponseUnmarshaller.Instance;
return Invoke<UpdateDistributionResponse>(request, options);
}
/// <summary>
/// Updates the configuration for a CloudFront distribution.
///
///
/// <para>
/// The update process includes getting the current distribution configuration, updating
/// it to make your changes, and then submitting an <code>UpdateDistribution</code> request
/// to make the updates.
/// </para>
///
/// <para>
/// <b>To update a web distribution using the CloudFront API</b>
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetDistributionConfig</code> to get the current configuration, including
/// the version identifier (<code>ETag</code>).
/// </para>
/// </li> <li>
/// <para>
/// Update the distribution configuration that was returned in the response. Note the
/// following important requirements and restrictions:
/// </para>
/// <ul> <li>
/// <para>
/// You must rename the <code>ETag</code> field to <code>IfMatch</code>, leaving the value
/// unchanged. (Set the value of <code>IfMatch</code> to the value of <code>ETag</code>,
/// then remove the <code>ETag</code> field.)
/// </para>
/// </li> <li>
/// <para>
/// You can't change the value of <code>CallerReference</code>.
/// </para>
/// </li> </ul> </li> <li>
/// <para>
/// Submit an <code>UpdateDistribution</code> request, providing the distribution configuration.
/// The new configuration replaces the existing configuration. The values that you specify
/// in an <code>UpdateDistribution</code> request are not merged into your existing configuration.
/// Make sure to include all fields: the ones that you modified and also the ones that
/// you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution">REST API Reference for UpdateDistribution Operation</seealso>
public virtual Task<UpdateDistributionResponse> UpdateDistributionAsync(UpdateDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDistributionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateDistributionResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateDistributionWithStagingConfig
internal virtual UpdateDistributionWithStagingConfigResponse UpdateDistributionWithStagingConfig(UpdateDistributionWithStagingConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDistributionWithStagingConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDistributionWithStagingConfigResponseUnmarshaller.Instance;
return Invoke<UpdateDistributionWithStagingConfigResponse>(request, options);
}
/// <summary>
/// Copies the staging distribution's configuration to its corresponding primary distribution.
/// The primary distribution retains its <code>Aliases</code> (also known as alternate
/// domain names or CNAMEs) and <code>ContinuousDeploymentPolicyId</code> value, but otherwise
/// its configuration is overwritten to match the staging distribution.
///
///
/// <para>
/// You can use this operation in a continuous deployment workflow after you have tested
/// configuration changes on the staging distribution. After using a continuous deployment
/// policy to move a portion of your domain name's traffic to the staging distribution
/// and verifying that it works as intended, you can use this operation to copy the staging
/// distribution's configuration to the primary distribution. This action will disable
/// the continuous deployment policy and move your domain's traffic back to the primary
/// distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistributionWithStagingConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateDistributionWithStagingConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistributionWithStagingConfig">REST API Reference for UpdateDistributionWithStagingConfig Operation</seealso>
public virtual Task<UpdateDistributionWithStagingConfigResponse> UpdateDistributionWithStagingConfigAsync(UpdateDistributionWithStagingConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDistributionWithStagingConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDistributionWithStagingConfigResponseUnmarshaller.Instance;
return InvokeAsync<UpdateDistributionWithStagingConfigResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateFieldLevelEncryptionConfig
internal virtual UpdateFieldLevelEncryptionConfigResponse UpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return Invoke<UpdateFieldLevelEncryptionConfigResponse>(request, options);
}
/// <summary>
/// Update a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig">REST API Reference for UpdateFieldLevelEncryptionConfig Operation</seealso>
public virtual Task<UpdateFieldLevelEncryptionConfigResponse> UpdateFieldLevelEncryptionConfigAsync(UpdateFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFieldLevelEncryptionConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFieldLevelEncryptionConfigResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateFieldLevelEncryptionProfile
internal virtual UpdateFieldLevelEncryptionProfileResponse UpdateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return Invoke<UpdateFieldLevelEncryptionProfileResponse>(request, options);
}
/// <summary>
/// Update a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile">REST API Reference for UpdateFieldLevelEncryptionProfile Operation</seealso>
public virtual Task<UpdateFieldLevelEncryptionProfileResponse> UpdateFieldLevelEncryptionProfileAsync(UpdateFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFieldLevelEncryptionProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFieldLevelEncryptionProfileResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFieldLevelEncryptionProfileResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateFunction
internal virtual UpdateFunctionResponse UpdateFunction(UpdateFunctionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance;
return Invoke<UpdateFunctionResponse>(request, options);
}
/// <summary>
/// Updates a CloudFront function.
///
///
/// <para>
/// You can update a function's code or the comment that describes the function. You cannot
/// update a function's name.
/// </para>
///
/// <para>
/// To update a function, you provide the function's name and version (<code>ETag</code>
/// value) along with the updated function code. To get the name and version, you can
/// use <code>ListFunctions</code> and <code>DescribeFunction</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso>
public virtual Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFunctionResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateKeyGroup
internal virtual UpdateKeyGroupResponse UpdateKeyGroup(UpdateKeyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateKeyGroupResponseUnmarshaller.Instance;
return Invoke<UpdateKeyGroupResponse>(request, options);
}
/// <summary>
/// Updates a key group.
///
///
/// <para>
/// When you update a key group, all the fields are updated with the values provided in
/// the request. You cannot update some fields independent of others. To update a key
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// Get the current key group with <code>GetKeyGroup</code> or <code>GetKeyGroupConfig</code>.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the key group that you want to update. For example, add
/// or remove public key IDs.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateKeyGroup</code> with the entire key group object, including the fields
/// that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyGroup">REST API Reference for UpdateKeyGroup Operation</seealso>
public virtual Task<UpdateKeyGroupResponse> UpdateKeyGroupAsync(UpdateKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateKeyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateKeyGroupResponseUnmarshaller.Instance;
return InvokeAsync<UpdateKeyGroupResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateOriginAccessControl
internal virtual UpdateOriginAccessControlResponse UpdateOriginAccessControl(UpdateOriginAccessControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginAccessControlResponseUnmarshaller.Instance;
return Invoke<UpdateOriginAccessControlResponse>(request, options);
}
/// <summary>
/// Updates a CloudFront origin access control.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl">REST API Reference for UpdateOriginAccessControl Operation</seealso>
public virtual Task<UpdateOriginAccessControlResponse> UpdateOriginAccessControlAsync(UpdateOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginAccessControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginAccessControlResponseUnmarshaller.Instance;
return InvokeAsync<UpdateOriginAccessControlResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateOriginRequestPolicy
internal virtual UpdateOriginRequestPolicyResponse UpdateOriginRequestPolicy(UpdateOriginRequestPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginRequestPolicyResponseUnmarshaller.Instance;
return Invoke<UpdateOriginRequestPolicyResponse>(request, options);
}
/// <summary>
/// Updates an origin request policy configuration.
///
///
/// <para>
/// When you update an origin request policy configuration, all the fields are updated
/// with the values provided in the request. You cannot update some fields independent
/// of others. To update an origin request policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetOriginRequestPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the origin request policy configuration that you want
/// to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateOriginRequestPolicy</code> by providing the entire origin request
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy">REST API Reference for UpdateOriginRequestPolicy Operation</seealso>
public virtual Task<UpdateOriginRequestPolicyResponse> UpdateOriginRequestPolicyAsync(UpdateOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginRequestPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginRequestPolicyResponseUnmarshaller.Instance;
return InvokeAsync<UpdateOriginRequestPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region UpdatePublicKey
internal virtual UpdatePublicKeyResponse UpdatePublicKey(UpdatePublicKeyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePublicKeyResponseUnmarshaller.Instance;
return Invoke<UpdatePublicKeyResponse>(request, options);
}
/// <summary>
/// Update public key information. Note that the only value you can change is the comment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdatePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CannotChangeImmutablePublicKeyFieldsException">
/// You can't change the value of a public key.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey">REST API Reference for UpdatePublicKey Operation</seealso>
public virtual Task<UpdatePublicKeyResponse> UpdatePublicKeyAsync(UpdatePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePublicKeyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePublicKeyResponseUnmarshaller.Instance;
return InvokeAsync<UpdatePublicKeyResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateRealtimeLogConfig
internal virtual UpdateRealtimeLogConfigResponse UpdateRealtimeLogConfig(UpdateRealtimeLogConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateRealtimeLogConfigResponseUnmarshaller.Instance;
return Invoke<UpdateRealtimeLogConfigResponse>(request, options);
}
/// <summary>
/// Updates a real-time log configuration.
///
///
/// <para>
/// When you update a real-time log configuration, all the parameters are updated with
/// the values provided in the request. You cannot update some parameters independent
/// of others. To update a real-time log configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Call <code>GetRealtimeLogConfig</code> to get the current real-time log configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the parameters in the real-time log configuration that you want to
/// update.
/// </para>
/// </li> <li>
/// <para>
/// Call this API (<code>UpdateRealtimeLogConfig</code>) by providing the entire real-time
/// log configuration, including the parameters that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// <para>
/// You cannot update a real-time log configuration's <code>Name</code> or <code>ARN</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig">REST API Reference for UpdateRealtimeLogConfig Operation</seealso>
public virtual Task<UpdateRealtimeLogConfigResponse> UpdateRealtimeLogConfigAsync(UpdateRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateRealtimeLogConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateRealtimeLogConfigResponseUnmarshaller.Instance;
return InvokeAsync<UpdateRealtimeLogConfigResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateResponseHeadersPolicy
internal virtual UpdateResponseHeadersPolicyResponse UpdateResponseHeadersPolicy(UpdateResponseHeadersPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateResponseHeadersPolicyResponseUnmarshaller.Instance;
return Invoke<UpdateResponseHeadersPolicyResponse>(request, options);
}
/// <summary>
/// Updates a response headers policy.
///
///
/// <para>
/// When you update a response headers policy, the entire policy is replaced. You cannot
/// update some policy fields independent of others. To update a response headers policy
/// configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetResponseHeadersPolicyConfig</code> to get the current policy's configuration.
/// </para>
/// </li> <li>
/// <para>
/// Modify the fields in the response headers policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateResponseHeadersPolicy</code>, providing the entire response headers
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy">REST API Reference for UpdateResponseHeadersPolicy Operation</seealso>
public virtual Task<UpdateResponseHeadersPolicyResponse> UpdateResponseHeadersPolicyAsync(UpdateResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateResponseHeadersPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateResponseHeadersPolicyResponseUnmarshaller.Instance;
return InvokeAsync<UpdateResponseHeadersPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateStreamingDistribution
internal virtual UpdateStreamingDistributionResponse UpdateStreamingDistribution(UpdateStreamingDistributionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStreamingDistributionResponseUnmarshaller.Instance;
return Invoke<UpdateStreamingDistributionResponse>(request, options);
}
/// <summary>
/// Update a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution">REST API Reference for UpdateStreamingDistribution Operation</seealso>
public virtual Task<UpdateStreamingDistributionResponse> UpdateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStreamingDistributionRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStreamingDistributionResponseUnmarshaller.Instance;
return InvokeAsync<UpdateStreamingDistributionResponse>(request, options, cancellationToken);
}
#endregion
}
} | 7,693 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.CloudFront.Model;
namespace Amazon.CloudFront
{
/// <summary>
/// Interface for accessing CloudFront
///
/// Amazon CloudFront
/// <para>
/// This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers who
/// need detailed information about CloudFront API actions, data types, and errors. For
/// detailed information about CloudFront features, see the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonCloudFront : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
ICloudFrontPaginatorFactory Paginators { get; }
#endif
#region AssociateAlias
/// <summary>
/// Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront
/// distribution.
///
///
/// <para>
/// With this operation you can move an alias that's already in use on a CloudFront distribution
/// to a different distribution in one step. This prevents the downtime that could occur
/// if you first remove the alias from one distribution and then separately add the alias
/// to another distribution.
/// </para>
///
/// <para>
/// To use this operation to associate an alias with a distribution, you provide the alias
/// and the ID of the target distribution for the alias. For more information, including
/// how to set up the target distribution, prerequisites that you must complete, and other
/// restrictions, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateAlias service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateAlias service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias">REST API Reference for AssociateAlias Operation</seealso>
Task<AssociateAliasResponse> AssociateAliasAsync(AssociateAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CopyDistribution
/// <summary>
/// Creates a staging distribution using the configuration of the provided primary distribution.
/// A staging distribution is a copy of an existing distribution (called the primary distribution)
/// that you can use in a continuous deployment workflow.
///
///
/// <para>
/// After you create a staging distribution, you can use <code>UpdateDistribution</code>
/// to modify the staging distribution's configuration. Then you can use <code>CreateContinuousDeploymentPolicy</code>
/// to incrementally move traffic to the staging distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CopyDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CopyDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution">REST API Reference for CopyDistribution Operation</seealso>
Task<CopyDistributionResponse> CopyDistributionAsync(CopyDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateCachePolicy
/// <summary>
/// Creates a cache policy.
///
///
/// <para>
/// After you create a cache policy, you can attach it to one or more cache behaviors.
/// When it's attached to a cache behavior, the cache policy determines the following:
/// </para>
/// <ul> <li>
/// <para>
/// The values that CloudFront includes in the <i>cache key</i>. These values can include
/// HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find
/// an object in its cache that it can return to the viewer.
/// </para>
/// </li> <li>
/// <para>
/// The default, minimum, and maximum time to live (TTL) values that you want objects
/// to stay in the CloudFront cache.
/// </para>
/// </li> </ul>
/// <para>
/// The headers, cookies, and query strings that are included in the cache key are also
/// included in requests that CloudFront sends to the origin. CloudFront sends a request
/// when it can't find 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>
///
/// <para>
/// For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling
/// the cache key</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCachePoliciesException">
/// You have reached the maximum number of cache policies for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy">REST API Reference for CreateCachePolicy Operation</seealso>
Task<CreateCachePolicyResponse> CreateCachePolicyAsync(CreateCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateCloudFrontOriginAccessIdentity
/// <summary>
/// Creates a new origin access identity. If you're using Amazon S3 for your origin, you
/// can use an origin access identity to require users to access your content using a
/// CloudFront URL instead of the Amazon S3 URL. For more information about how to use
/// origin access identities, 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>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityAlreadyExistsException">
/// If the <code>CallerReference</code> is a value you already sent in a previous request
/// to create an identity but the content of the <code>CloudFrontOriginAccessIdentityConfig</code>
/// is different from the original request, CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code>
/// error.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCloudFrontOriginAccessIdentitiesException">
/// Processing your request would cause you to exceed the maximum number of origin access
/// identities allowed.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity">REST API Reference for CreateCloudFrontOriginAccessIdentity Operation</seealso>
Task<CreateCloudFrontOriginAccessIdentityResponse> CreateCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateContinuousDeploymentPolicy
/// <summary>
/// Creates a continuous deployment policy that distributes traffic for a custom domain
/// name to two different CloudFront distributions.
///
///
/// <para>
/// To use a continuous deployment policy, first use <code>CopyDistribution</code> to
/// create a staging distribution, then use <code>UpdateDistribution</code> to modify
/// the staging distribution's configuration.
/// </para>
///
/// <para>
/// After you create and update a staging distribution, you can use a continuous deployment
/// policy to incrementally move traffic to the staging distribution. This workflow enables
/// you to test changes to a distribution's configuration before moving all of your domain's
/// production traffic to the new configuration.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyAlreadyExistsException">
/// A continuous deployment policy with this configuration already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyContinuousDeploymentPoliciesException">
/// You have reached the maximum number of continuous deployment policies for this Amazon
/// Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy">REST API Reference for CreateContinuousDeploymentPolicy Operation</seealso>
Task<CreateContinuousDeploymentPolicyResponse> CreateContinuousDeploymentPolicyAsync(CreateContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateDistribution
/// <summary>
/// Creates a CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginAccessControlException">
/// The maximum number of distributions have been associated with the specified origin
/// access control.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution">REST API Reference for CreateDistribution Operation</seealso>
Task<CreateDistributionResponse> CreateDistributionAsync(CreateDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateDistributionWithTags
/// <summary>
/// Create a new distribution with tags.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateDistributionWithTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionAlreadyExistsException">
/// The caller reference you attempted to create the distribution with is associated with
/// another distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidProtocolSettingsException">
/// You cannot specify SSLv3 as the minimum protocol version if you only want to support
/// only clients that support Server Name Indication (SNI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsException">
/// Processing your request would cause you to exceed the maximum number of distributions
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags">REST API Reference for CreateDistributionWithTags Operation</seealso>
Task<CreateDistributionWithTagsResponse> CreateDistributionWithTagsAsync(CreateDistributionWithTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateFieldLevelEncryptionConfig
/// <summary>
/// Create a new field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigAlreadyExistsException">
/// The specified configuration for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionConfigsException">
/// The maximum number of configurations for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig">REST API Reference for CreateFieldLevelEncryptionConfig Operation</seealso>
Task<CreateFieldLevelEncryptionConfigResponse> CreateFieldLevelEncryptionConfigAsync(CreateFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateFieldLevelEncryptionProfile
/// <summary>
/// Create a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionProfilesException">
/// The maximum number of profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile">REST API Reference for CreateFieldLevelEncryptionProfile Operation</seealso>
Task<CreateFieldLevelEncryptionProfileResponse> CreateFieldLevelEncryptionProfileAsync(CreateFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateFunction
/// <summary>
/// Creates a CloudFront function.
///
///
/// <para>
/// To create a function, you provide the function code and some configuration information
/// about the function. The response contains an Amazon Resource Name (ARN) that uniquely
/// identifies the function.
/// </para>
///
/// <para>
/// When you create a function, it's in the <code>DEVELOPMENT</code> stage. In this stage,
/// you can test the function with <code>TestFunction</code>, and update it with <code>UpdateFunction</code>.
/// </para>
///
/// <para>
/// When you're ready to use your function with a CloudFront distribution, use <code>PublishFunction</code>
/// to copy the function from the <code>DEVELOPMENT</code> stage to <code>LIVE</code>.
/// When it's live, you can attach the function to a distribution's cache behavior, using
/// the function's ARN.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionAlreadyExistsException">
/// A function with the same name already exists in this Amazon Web Services account.
/// To create a function, you must provide a unique name. To update an existing function,
/// use <code>UpdateFunction</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionsException">
/// You have reached the maximum number of CloudFront functions for this Amazon Web Services
/// account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction">REST API Reference for CreateFunction Operation</seealso>
Task<CreateFunctionResponse> CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateInvalidation
/// <summary>
/// Create a new invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateInvalidation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.BatchTooLargeException">
/// Invalidation batch specified is too large.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyInvalidationsInProgressException">
/// You have exceeded the maximum number of allowable InProgress invalidation batch requests,
/// or invalidation objects.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation">REST API Reference for CreateInvalidation Operation</seealso>
Task<CreateInvalidationResponse> CreateInvalidationAsync(CreateInvalidationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateKeyGroup
/// <summary>
/// Creates a key group that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">CloudFront
/// signed URLs and signed cookies</a>.
///
///
/// <para>
/// To create a key group, you must specify at least one public key for the key group.
/// After you create a key group, you can reference it from one or more cache behaviors.
/// When you reference a key group in a cache behavior, CloudFront requires signed URLs
/// or signed cookies for all requests that match the cache behavior. The URLs or cookies
/// must be signed with a private key whose corresponding public key is in the key group.
/// The signed URL or cookie contains information about which public key CloudFront should
/// use to verify the signature. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving
/// private content</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsException">
/// You have reached the maximum number of key groups for this Amazon Web Services account.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyGroup">REST API Reference for CreateKeyGroup Operation</seealso>
Task<CreateKeyGroupResponse> CreateKeyGroupAsync(CreateKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateMonitoringSubscription
/// <summary>
/// Enables additional CloudWatch metrics for the specified CloudFront distribution. The
/// additional metrics incur an additional cost.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional">Viewing
/// additional CloudFront distribution metrics</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MonitoringSubscriptionAlreadyExistsException">
/// A monitoring subscription already exists for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateMonitoringSubscription">REST API Reference for CreateMonitoringSubscription Operation</seealso>
Task<CreateMonitoringSubscriptionResponse> CreateMonitoringSubscriptionAsync(CreateMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateOriginAccessControl
/// <summary>
/// Creates a new origin access control in CloudFront. After you create an origin access
/// control, you can add it to an origin in a CloudFront distribution so that CloudFront
/// sends authenticated (signed) requests to the origin.
///
///
/// <para>
/// This makes it possible to block public access to the origin, allowing viewers (users)
/// to access the origin's content only through CloudFront.
/// </para>
///
/// <para>
/// For more information about using a CloudFront origin access control, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html">Restricting
/// access to an Amazon Web Services origin</a> in the <i>Amazon CloudFront Developer
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginAccessControlsException">
/// The number of origin access controls in your Amazon Web Services account exceeds the
/// maximum allowed.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl">REST API Reference for CreateOriginAccessControl Operation</seealso>
Task<CreateOriginAccessControlResponse> CreateOriginAccessControlAsync(CreateOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateOriginRequestPolicy
/// <summary>
/// Creates an origin request policy.
///
///
/// <para>
/// After you create an origin request policy, you can attach it to one or more cache
/// behaviors. 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 a valid 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>
///
/// <para>
/// For more information about origin request policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html">Controlling
/// origin requests</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginRequestPoliciesException">
/// You have reached the maximum number of origin request policies for this Amazon Web
/// Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy">REST API Reference for CreateOriginRequestPolicy Operation</seealso>
Task<CreateOriginRequestPolicyResponse> CreateOriginRequestPolicyAsync(CreateOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreatePublicKey
/// <summary>
/// Uploads a public key to CloudFront 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>
/// <param name="request">Container for the necessary parameters to execute the CreatePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyAlreadyExistsException">
/// The specified public key already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysException">
/// The maximum number of public keys for field-level encryption have been created. To
/// create a new public key, delete one of the existing keys.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey">REST API Reference for CreatePublicKey Operation</seealso>
Task<CreatePublicKeyResponse> CreatePublicKeyAsync(CreatePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateRealtimeLogConfig
/// <summary>
/// Creates a real-time log configuration.
///
///
/// <para>
/// After you create a real-time log configuration, you can attach it to one or more cache
/// behaviors to send real-time log data to the specified Amazon Kinesis data stream.
/// </para>
///
/// <para>
/// For more information about real-time log configurations, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time
/// logs</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRealtimeLogConfigsException">
/// You have reached the maximum number of real-time log configurations for this Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateRealtimeLogConfig">REST API Reference for CreateRealtimeLogConfig Operation</seealso>
Task<CreateRealtimeLogConfigResponse> CreateRealtimeLogConfigAsync(CreateRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateResponseHeadersPolicy
/// <summary>
/// Creates a response headers policy.
///
///
/// <para>
/// A response headers policy contains information about a set of HTTP headers. To create
/// a response headers policy, you provide some metadata about the policy and a set of
/// configurations that specify the 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>
/// <param name="request">Container for the necessary parameters to execute the CreateResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyResponseHeadersPoliciesException">
/// You have reached the maximum number of response headers policies for this Amazon Web
/// Services account.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy">REST API Reference for CreateResponseHeadersPolicy Operation</seealso>
Task<CreateResponseHeadersPolicyResponse> CreateResponseHeadersPolicyAsync(CreateResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateStreamingDistribution
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution">REST API Reference for CreateStreamingDistribution Operation</seealso>
Task<CreateStreamingDistributionResponse> CreateStreamingDistributionAsync(CreateStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateStreamingDistributionWithTags
/// <summary>
/// This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol
/// (RTMP) distributions on December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read
/// the announcement</a> on the Amazon CloudFront discussion forum.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateStreamingDistributionWithTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateStreamingDistributionWithTags service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginException">
/// The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionAlreadyExistsException">
/// The caller reference you attempted to create the streaming distribution with is associated
/// with another distribution
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionsException">
/// Processing your request would cause you to exceed the maximum number of streaming
/// distributions allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags">REST API Reference for CreateStreamingDistributionWithTags Operation</seealso>
Task<CreateStreamingDistributionWithTagsResponse> CreateStreamingDistributionWithTagsAsync(CreateStreamingDistributionWithTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteCachePolicy
/// <summary>
/// Deletes a cache policy.
///
///
/// <para>
/// You cannot delete a cache policy if it's attached to a cache behavior. First update
/// your distributions to remove the cache policy from all cache behaviors, then delete
/// the cache policy.
/// </para>
///
/// <para>
/// To delete a cache policy, you must provide the policy's identifier and version. To
/// get these values, you can use <code>ListCachePolicies</code> or <code>GetCachePolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyInUseException">
/// Cannot delete the cache policy because it is attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy">REST API Reference for DeleteCachePolicy Operation</seealso>
Task<DeleteCachePolicyResponse> DeleteCachePolicyAsync(DeleteCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteCloudFrontOriginAccessIdentity
/// <summary>
/// Delete an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
Task<DeleteCloudFrontOriginAccessIdentityResponse> DeleteCloudFrontOriginAccessIdentityAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CloudFrontOriginAccessIdentityInUseException">
/// The Origin Access Identity specified is already in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity">REST API Reference for DeleteCloudFrontOriginAccessIdentity Operation</seealso>
Task<DeleteCloudFrontOriginAccessIdentityResponse> DeleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteContinuousDeploymentPolicy
/// <summary>
/// Deletes a continuous deployment policy.
///
///
/// <para>
/// You cannot delete a continuous deployment policy that's attached to a primary distribution.
/// First update your distribution to remove the continuous deployment policy, then you
/// can delete the policy.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy">REST API Reference for DeleteContinuousDeploymentPolicy Operation</seealso>
Task<DeleteContinuousDeploymentPolicyResponse> DeleteContinuousDeploymentPolicyAsync(DeleteContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteDistribution
/// <summary>
/// Delete a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
Task<DeleteDistributionResponse> DeleteDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.DistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution">REST API Reference for DeleteDistribution Operation</seealso>
Task<DeleteDistributionResponse> DeleteDistributionAsync(DeleteDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteFieldLevelEncryptionConfig
/// <summary>
/// Remove a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionConfigInUseException">
/// The specified configuration for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig">REST API Reference for DeleteFieldLevelEncryptionConfig Operation</seealso>
Task<DeleteFieldLevelEncryptionConfigResponse> DeleteFieldLevelEncryptionConfigAsync(DeleteFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteFieldLevelEncryptionProfile
/// <summary>
/// Remove a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileInUseException">
/// The specified profile for field-level encryption is in use.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile">REST API Reference for DeleteFieldLevelEncryptionProfile Operation</seealso>
Task<DeleteFieldLevelEncryptionProfileResponse> DeleteFieldLevelEncryptionProfileAsync(DeleteFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteFunction
/// <summary>
/// Deletes a CloudFront function.
///
///
/// <para>
/// You cannot delete a function if it's associated with a cache behavior. First, update
/// your distributions to remove the function association from all cache behaviors, then
/// delete the function.
/// </para>
///
/// <para>
/// To delete 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>
/// <param name="request">Container for the necessary parameters to execute the DeleteFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionInUseException">
/// Cannot delete the function because it's attached to one or more cache behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction">REST API Reference for DeleteFunction Operation</seealso>
Task<DeleteFunctionResponse> DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteKeyGroup
/// <summary>
/// Deletes a key group.
///
///
/// <para>
/// You cannot delete a key group that is referenced in a cache behavior. First update
/// your distributions to remove the key group from all cache behaviors, then delete the
/// key group.
/// </para>
///
/// <para>
/// To delete a key group, you must provide the key group's identifier and version. To
/// get these values, use <code>ListKeyGroups</code> followed by <code>GetKeyGroup</code>
/// or <code>GetKeyGroupConfig</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResourceInUseException">
/// Cannot delete this resource because it is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyGroup">REST API Reference for DeleteKeyGroup Operation</seealso>
Task<DeleteKeyGroupResponse> DeleteKeyGroupAsync(DeleteKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteMonitoringSubscription
/// <summary>
/// Disables additional CloudWatch metrics for the specified CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteMonitoringSubscription">REST API Reference for DeleteMonitoringSubscription Operation</seealso>
Task<DeleteMonitoringSubscriptionResponse> DeleteMonitoringSubscriptionAsync(DeleteMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteOriginAccessControl
/// <summary>
/// Deletes a CloudFront origin access control.
///
///
/// <para>
/// You cannot delete an origin access control if it's in use. First, update all distributions
/// to remove the origin access control from all origins, then delete the origin access
/// control.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlInUseException">
/// Cannot delete the origin access control because it's in use by one or more distributions.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl">REST API Reference for DeleteOriginAccessControl Operation</seealso>
Task<DeleteOriginAccessControlResponse> DeleteOriginAccessControlAsync(DeleteOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteOriginRequestPolicy
/// <summary>
/// Deletes an origin request policy.
///
///
/// <para>
/// You cannot delete an origin request policy if it's attached to any cache behaviors.
/// First update your distributions to remove the origin request policy from all cache
/// behaviors, then delete the origin request policy.
/// </para>
///
/// <para>
/// To delete an origin request policy, you must provide the policy's identifier and version.
/// To get the identifier, you can use <code>ListOriginRequestPolicies</code> or <code>GetOriginRequestPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyInUseException">
/// Cannot delete the origin request policy because it is attached to one or more cache
/// behaviors.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy">REST API Reference for DeleteOriginRequestPolicy Operation</seealso>
Task<DeleteOriginRequestPolicyResponse> DeleteOriginRequestPolicyAsync(DeleteOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeletePublicKey
/// <summary>
/// Remove a public key you previously added to CloudFront.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeletePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeletePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PublicKeyInUseException">
/// The specified public key is in use.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey">REST API Reference for DeletePublicKey Operation</seealso>
Task<DeletePublicKeyResponse> DeletePublicKeyAsync(DeletePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteRealtimeLogConfig
/// <summary>
/// Deletes a real-time log configuration.
///
///
/// <para>
/// You cannot delete a real-time log configuration if it's attached to a cache behavior.
/// First update your distributions to remove the real-time log configuration from all
/// cache behaviors, then delete the real-time log configuration.
/// </para>
///
/// <para>
/// To delete a real-time log configuration, you can provide the configuration's name
/// or its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to delete.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigInUseException">
/// Cannot delete the real-time log configuration because it is attached to one or more
/// cache behaviors.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteRealtimeLogConfig">REST API Reference for DeleteRealtimeLogConfig Operation</seealso>
Task<DeleteRealtimeLogConfigResponse> DeleteRealtimeLogConfigAsync(DeleteRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteResponseHeadersPolicy
/// <summary>
/// Deletes a response headers policy.
///
///
/// <para>
/// You cannot delete a response headers policy if it's attached to a cache behavior.
/// First update your distributions to remove the response headers policy from all cache
/// behaviors, then delete the response headers policy.
/// </para>
///
/// <para>
/// To delete a response headers policy, you must provide the policy's identifier and
/// version. To get these values, you can use <code>ListResponseHeadersPolicies</code>
/// or <code>GetResponseHeadersPolicy</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalDeleteException">
/// You cannot delete a managed policy.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyInUseException">
/// Cannot delete the response headers policy because it is attached to one or more cache
/// behaviors in a CloudFront distribution.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy">REST API Reference for DeleteResponseHeadersPolicy Operation</seealso>
Task<DeleteResponseHeadersPolicyResponse> DeleteResponseHeadersPolicyAsync(DeleteResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteStreamingDistribution
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
Task<DeleteStreamingDistributionResponse> DeleteStreamingDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete a streaming distribution. To delete an RTMP distribution using the CloudFront
/// API, perform the following steps.
///
///
/// <para>
/// <b>To delete an RTMP distribution using the CloudFront API</b>:
/// </para>
/// <ol> <li>
/// <para>
/// Disable the RTMP distribution.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to get the current
/// configuration and the <code>Etag</code> header for the distribution.
/// </para>
/// </li> <li>
/// <para>
/// Update the XML document that was returned in the response to your <code>GET Streaming
/// Distribution Config</code> request to change the value of <code>Enabled</code> to
/// <code>false</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>PUT Streaming Distribution Config</code> request to update the configuration
/// for your distribution. In the request body, include the XML document that you updated
/// in Step 3. Then set the value of the HTTP <code>If-Match</code> header to the value
/// of the <code>ETag</code> header that CloudFront returned when you submitted the <code>GET
/// Streaming Distribution Config</code> request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to the <code>PUT Streaming Distribution Config</code> request
/// to confirm that the distribution was successfully disabled.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>GET Streaming Distribution Config</code> request to confirm that your
/// changes have propagated. When propagation is complete, the value of <code>Status</code>
/// is <code>Deployed</code>.
/// </para>
/// </li> <li>
/// <para>
/// Submit a <code>DELETE Streaming Distribution</code> request. Set the value of the
/// HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that
/// CloudFront returned when you submitted the <code>GET Streaming Distribution Config</code>
/// request in Step 2.
/// </para>
/// </li> <li>
/// <para>
/// Review the response to your <code>DELETE Streaming Distribution</code> request to
/// confirm that the distribution was successfully deleted.
/// </para>
/// </li> </ol>
/// <para>
/// For information about deleting a distribution using the CloudFront console, see <a
/// href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html">Deleting
/// a Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StreamingDistributionNotDisabledException">
/// The specified CloudFront distribution is not disabled. You must disable the distribution
/// before you can delete it.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution">REST API Reference for DeleteStreamingDistribution Operation</seealso>
Task<DeleteStreamingDistributionResponse> DeleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeFunction
/// <summary>
/// Gets configuration information and metadata about a CloudFront function, but not the
/// function's code. To get a function's code, use <code>GetFunction</code>.
///
///
/// <para>
/// To get configuration information and metadata about a function, you must provide the
/// function's name and stage. To get these values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction">REST API Reference for DescribeFunction Operation</seealso>
Task<DescribeFunctionResponse> DescribeFunctionAsync(DescribeFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCachePolicy
/// <summary>
/// Gets a cache policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get a cache policy, you must provide the policy's identifier. If the cache policy
/// is attached to a distribution's cache behavior, you can get the policy's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache
/// policy is not attached to a cache behavior, you can get the identifier using <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy">REST API Reference for GetCachePolicy Operation</seealso>
Task<GetCachePolicyResponse> GetCachePolicyAsync(GetCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCachePolicyConfig
/// <summary>
/// Gets a cache policy configuration.
///
///
/// <para>
/// To get a cache policy configuration, you must provide the policy's identifier. If
/// the cache policy is attached to a distribution's cache behavior, you can get the policy's
/// identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If
/// the cache policy is not attached to a cache behavior, you can get the identifier using
/// <code>ListCachePolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCachePolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCachePolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig">REST API Reference for GetCachePolicyConfig Operation</seealso>
Task<GetCachePolicyConfigResponse> GetCachePolicyConfigAsync(GetCachePolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCloudFrontOriginAccessIdentity
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
Task<GetCloudFrontOriginAccessIdentityResponse> GetCloudFrontOriginAccessIdentityAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity">REST API Reference for GetCloudFrontOriginAccessIdentity Operation</seealso>
Task<GetCloudFrontOriginAccessIdentityResponse> GetCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCloudFrontOriginAccessIdentityConfig
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
Task<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the configuration information about an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig">REST API Reference for GetCloudFrontOriginAccessIdentityConfig Operation</seealso>
Task<GetCloudFrontOriginAccessIdentityConfigResponse> GetCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetContinuousDeploymentPolicy
/// <summary>
/// Gets a continuous deployment policy, including metadata (the policy's identifier and
/// the date and time when the policy was last modified).
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy">REST API Reference for GetContinuousDeploymentPolicy Operation</seealso>
Task<GetContinuousDeploymentPolicyResponse> GetContinuousDeploymentPolicyAsync(GetContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetContinuousDeploymentPolicyConfig
/// <summary>
/// Gets configuration information about a continuous deployment policy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContinuousDeploymentPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContinuousDeploymentPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig">REST API Reference for GetContinuousDeploymentPolicyConfig Operation</seealso>
Task<GetContinuousDeploymentPolicyConfigResponse> GetContinuousDeploymentPolicyConfigAsync(GetContinuousDeploymentPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDistribution
/// <summary>
/// Get the information about a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
Task<GetDistributionResponse> GetDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution">REST API Reference for GetDistribution Operation</seealso>
Task<GetDistributionResponse> GetDistributionAsync(GetDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDistributionConfig
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
Task<GetDistributionConfigResponse> GetDistributionConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the configuration information about a distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDistributionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig">REST API Reference for GetDistributionConfig Operation</seealso>
Task<GetDistributionConfigResponse> GetDistributionConfigAsync(GetDistributionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetFieldLevelEncryption
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryption service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryption service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption">REST API Reference for GetFieldLevelEncryption Operation</seealso>
Task<GetFieldLevelEncryptionResponse> GetFieldLevelEncryptionAsync(GetFieldLevelEncryptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetFieldLevelEncryptionConfig
/// <summary>
/// Get the field-level encryption configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig">REST API Reference for GetFieldLevelEncryptionConfig Operation</seealso>
Task<GetFieldLevelEncryptionConfigResponse> GetFieldLevelEncryptionConfigAsync(GetFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetFieldLevelEncryptionProfile
/// <summary>
/// Get the field-level encryption profile information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile">REST API Reference for GetFieldLevelEncryptionProfile Operation</seealso>
Task<GetFieldLevelEncryptionProfileResponse> GetFieldLevelEncryptionProfileAsync(GetFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetFieldLevelEncryptionProfileConfig
/// <summary>
/// Get the field-level encryption profile configuration information.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFieldLevelEncryptionProfileConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFieldLevelEncryptionProfileConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig">REST API Reference for GetFieldLevelEncryptionProfileConfig Operation</seealso>
Task<GetFieldLevelEncryptionProfileConfigResponse> GetFieldLevelEncryptionProfileConfigAsync(GetFieldLevelEncryptionProfileConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetFunction
/// <summary>
/// Gets the code of a CloudFront function. To get configuration information and metadata
/// about a function, use <code>DescribeFunction</code>.
///
///
/// <para>
/// To get a function's code, you must provide the function's name and stage. To get these
/// values, you can use <code>ListFunctions</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction">REST API Reference for GetFunction Operation</seealso>
Task<GetFunctionResponse> GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetInvalidation
/// <summary>
/// Get the information about an invalidation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetInvalidation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetInvalidation service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchInvalidationException">
/// The specified invalidation does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation">REST API Reference for GetInvalidation Operation</seealso>
Task<GetInvalidationResponse> GetInvalidationAsync(GetInvalidationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetKeyGroup
/// <summary>
/// Gets a key group, including the date and time when the key group was last modified.
///
///
/// <para>
/// To get a key group, you must provide the key group's identifier. If the key group
/// is referenced in a distribution's cache behavior, you can get the key group's identifier
/// using <code>ListDistributions</code> or <code>GetDistribution</code>. If the key group
/// is not referenced in a cache behavior, you can get the identifier using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroup">REST API Reference for GetKeyGroup Operation</seealso>
Task<GetKeyGroupResponse> GetKeyGroupAsync(GetKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetKeyGroupConfig
/// <summary>
/// Gets a key group configuration.
///
///
/// <para>
/// To get a key group configuration, you must provide the key group's identifier. If
/// the key group is referenced in a distribution's cache behavior, you can get the key
/// group's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the key group is not referenced in a cache behavior, you can get the identifier
/// using <code>ListKeyGroups</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetKeyGroupConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetKeyGroupConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetKeyGroupConfig">REST API Reference for GetKeyGroupConfig Operation</seealso>
Task<GetKeyGroupConfigResponse> GetKeyGroupConfigAsync(GetKeyGroupConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetMonitoringSubscription
/// <summary>
/// Gets information about whether additional CloudWatch metrics are enabled for the specified
/// CloudFront distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMonitoringSubscription service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMonitoringSubscription service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchMonitoringSubscriptionException">
/// A monitoring subscription does not exist for the specified distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetMonitoringSubscription">REST API Reference for GetMonitoringSubscription Operation</seealso>
Task<GetMonitoringSubscriptionResponse> GetMonitoringSubscriptionAsync(GetMonitoringSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetOriginAccessControl
/// <summary>
/// Gets a CloudFront origin access control, including its unique identifier.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl">REST API Reference for GetOriginAccessControl Operation</seealso>
Task<GetOriginAccessControlResponse> GetOriginAccessControlAsync(GetOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetOriginAccessControlConfig
/// <summary>
/// Gets a CloudFront origin access control configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginAccessControlConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginAccessControlConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig">REST API Reference for GetOriginAccessControlConfig Operation</seealso>
Task<GetOriginAccessControlConfigResponse> GetOriginAccessControlConfigAsync(GetOriginAccessControlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetOriginRequestPolicy
/// <summary>
/// Gets an origin request policy, including the following metadata:
///
/// <ul> <li>
/// <para>
/// The policy's identifier.
/// </para>
/// </li> <li>
/// <para>
/// The date and time when the policy was last modified.
/// </para>
/// </li> </ul>
/// <para>
/// To get an origin request policy, you must provide the policy's identifier. If the
/// origin request policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy">REST API Reference for GetOriginRequestPolicy Operation</seealso>
Task<GetOriginRequestPolicyResponse> GetOriginRequestPolicyAsync(GetOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetOriginRequestPolicyConfig
/// <summary>
/// Gets an origin request policy configuration.
///
///
/// <para>
/// To get an origin request policy configuration, you must provide the policy's identifier.
/// If the origin request policy is attached to a distribution's cache behavior, you can
/// get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the origin request policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListOriginRequestPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetOriginRequestPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetOriginRequestPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig">REST API Reference for GetOriginRequestPolicyConfig Operation</seealso>
Task<GetOriginRequestPolicyConfigResponse> GetOriginRequestPolicyConfigAsync(GetOriginRequestPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetPublicKey
/// <summary>
/// Gets a public key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetPublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey">REST API Reference for GetPublicKey Operation</seealso>
Task<GetPublicKeyResponse> GetPublicKeyAsync(GetPublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetPublicKeyConfig
/// <summary>
/// Gets a public key configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetPublicKeyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetPublicKeyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig">REST API Reference for GetPublicKeyConfig Operation</seealso>
Task<GetPublicKeyConfigResponse> GetPublicKeyConfigAsync(GetPublicKeyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetRealtimeLogConfig
/// <summary>
/// Gets a real-time log configuration.
///
///
/// <para>
/// To get a real-time log configuration, you can provide the configuration's name or
/// its Amazon Resource Name (ARN). You must provide at least one. If you provide both,
/// CloudFront uses the name to identify the real-time log configuration to get.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetRealtimeLogConfig">REST API Reference for GetRealtimeLogConfig Operation</seealso>
Task<GetRealtimeLogConfigResponse> GetRealtimeLogConfigAsync(GetRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetResponseHeadersPolicy
/// <summary>
/// Gets a response headers policy, including metadata (the policy's identifier and the
/// date and time when the policy was last modified).
///
///
/// <para>
/// To get a response headers policy, you must provide the policy's identifier. If the
/// response headers policy is attached to a distribution's cache behavior, you can get
/// the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy">REST API Reference for GetResponseHeadersPolicy Operation</seealso>
Task<GetResponseHeadersPolicyResponse> GetResponseHeadersPolicyAsync(GetResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetResponseHeadersPolicyConfig
/// <summary>
/// Gets a response headers policy configuration.
///
///
/// <para>
/// To get a response headers policy configuration, you must provide the policy's identifier.
/// If the response headers policy is attached to a distribution's cache behavior, you
/// can get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>.
/// If the response headers policy is not attached to a cache behavior, you can get the
/// identifier using <code>ListResponseHeadersPolicies</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetResponseHeadersPolicyConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetResponseHeadersPolicyConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig">REST API Reference for GetResponseHeadersPolicyConfig Operation</seealso>
Task<GetResponseHeadersPolicyConfigResponse> GetResponseHeadersPolicyConfigAsync(GetResponseHeadersPolicyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetStreamingDistribution
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
Task<GetStreamingDistributionResponse> GetStreamingDistributionAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets information about a specified RTMP distribution, including the distribution configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution">REST API Reference for GetStreamingDistribution Operation</seealso>
Task<GetStreamingDistributionResponse> GetStreamingDistributionAsync(GetStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetStreamingDistributionConfig
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the configuration information about a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig">REST API Reference for GetStreamingDistributionConfig Operation</seealso>
Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListCachePolicies
/// <summary>
/// Gets a list of cache policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCachePolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCachePolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies">REST API Reference for ListCachePolicies Operation</seealso>
Task<ListCachePoliciesResponse> ListCachePoliciesAsync(ListCachePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListCloudFrontOriginAccessIdentities
/// <summary>
/// Lists origin access identities.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
Task<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists origin access identities.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCloudFrontOriginAccessIdentities service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities">REST API Reference for ListCloudFrontOriginAccessIdentities Operation</seealso>
Task<ListCloudFrontOriginAccessIdentitiesResponse> ListCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConflictingAliases
/// <summary>
/// Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict
/// or overlap with the provided alias, and the associated CloudFront distributions and
/// Amazon Web Services accounts for each conflicting alias. In the returned list, the
/// distribution and account IDs are partially hidden, which allows you to identify the
/// distributions and accounts that you own, but helps to protect the information of ones
/// that you don't own.
///
///
/// <para>
/// Use this operation to find aliases that are in use in CloudFront that conflict or
/// overlap with the provided alias. For example, if you provide <code>www.example.com</code>
/// as input, the returned list can include <code>www.example.com</code> and the overlapping
/// wildcard alternate domain name (<code>*.example.com</code>), if they exist. If you
/// provide <code>*.example.com</code> as input, the returned list can include <code>*.example.com</code>
/// and any alternate domain names covered by that wildcard (for example, <code>www.example.com</code>,
/// <code>test.example.com</code>, <code>dev.example.com</code>, and so on), if they exist.
/// </para>
///
/// <para>
/// To list conflicting aliases, you provide the alias to search and the ID of a distribution
/// in your account that has an attached SSL/TLS certificate that includes the provided
/// alias. For more information, including how to set up the distribution and certificate,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move">Moving
/// an alternate domain name to a different distribution</a> in the <i>Amazon CloudFront
/// Developer Guide</i>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConflictingAliases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConflictingAliases service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases">REST API Reference for ListConflictingAliases Operation</seealso>
Task<ListConflictingAliasesResponse> ListConflictingAliasesAsync(ListConflictingAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListContinuousDeploymentPolicies
/// <summary>
/// Gets a list of the continuous deployment policies in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListContinuousDeploymentPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListContinuousDeploymentPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies">REST API Reference for ListContinuousDeploymentPolicies Operation</seealso>
Task<ListContinuousDeploymentPoliciesResponse> ListContinuousDeploymentPoliciesAsync(ListContinuousDeploymentPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributions
/// <summary>
/// List CloudFront distributions.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
Task<ListDistributionsResponse> ListDistributionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List CloudFront distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions">REST API Reference for ListDistributions Operation</seealso>
Task<ListDistributionsResponse> ListDistributionsAsync(ListDistributionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByCachePolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified cache policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByCachePolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByCachePolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId">REST API Reference for ListDistributionsByCachePolicyId Operation</seealso>
Task<ListDistributionsByCachePolicyIdResponse> ListDistributionsByCachePolicyIdAsync(ListDistributionsByCachePolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByKeyGroup
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that
/// references the specified key group.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByKeyGroup">REST API Reference for ListDistributionsByKeyGroup Operation</seealso>
Task<ListDistributionsByKeyGroupResponse> ListDistributionsByKeyGroupAsync(ListDistributionsByKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByOriginRequestPolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified origin request policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByOriginRequestPolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByOriginRequestPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId">REST API Reference for ListDistributionsByOriginRequestPolicyId Operation</seealso>
Task<ListDistributionsByOriginRequestPolicyIdResponse> ListDistributionsByOriginRequestPolicyIdAsync(ListDistributionsByOriginRequestPolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByRealtimeLogConfig
/// <summary>
/// Gets a list of distributions that have a cache behavior that's associated with the
/// specified real-time log configuration.
///
///
/// <para>
/// You can specify the real-time log configuration by its name or its Amazon Resource
/// Name (ARN). You must provide at least one. If you provide both, CloudFront uses the
/// name to identify the real-time log configuration to list distributions for.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByRealtimeLogConfig">REST API Reference for ListDistributionsByRealtimeLogConfig Operation</seealso>
Task<ListDistributionsByRealtimeLogConfigResponse> ListDistributionsByRealtimeLogConfigAsync(ListDistributionsByRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByResponseHeadersPolicyId
/// <summary>
/// Gets a list of distribution IDs for distributions that have a cache behavior that's
/// associated with the specified response headers policy.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByResponseHeadersPolicyId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByResponseHeadersPolicyId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId">REST API Reference for ListDistributionsByResponseHeadersPolicyId Operation</seealso>
Task<ListDistributionsByResponseHeadersPolicyIdResponse> ListDistributionsByResponseHeadersPolicyIdAsync(ListDistributionsByResponseHeadersPolicyIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListDistributionsByWebACLId
/// <summary>
/// List the distributions that are associated with a specified WAF web ACL.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListDistributionsByWebACLId service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListDistributionsByWebACLId service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId">REST API Reference for ListDistributionsByWebACLId Operation</seealso>
Task<ListDistributionsByWebACLIdResponse> ListDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListFieldLevelEncryptionConfigs
/// <summary>
/// List all field-level encryption configurations that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionConfigs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFieldLevelEncryptionConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs">REST API Reference for ListFieldLevelEncryptionConfigs Operation</seealso>
Task<ListFieldLevelEncryptionConfigsResponse> ListFieldLevelEncryptionConfigsAsync(ListFieldLevelEncryptionConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListFieldLevelEncryptionProfiles
/// <summary>
/// Request a list of field-level encryption profiles that have been created in CloudFront
/// for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFieldLevelEncryptionProfiles service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFieldLevelEncryptionProfiles service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles">REST API Reference for ListFieldLevelEncryptionProfiles Operation</seealso>
Task<ListFieldLevelEncryptionProfilesResponse> ListFieldLevelEncryptionProfilesAsync(ListFieldLevelEncryptionProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListFunctions
/// <summary>
/// Gets a list of all CloudFront functions in your Amazon Web Services account.
///
///
/// <para>
/// You can optionally apply a filter to return only the functions that are in the specified
/// stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListFunctions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListFunctions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions">REST API Reference for ListFunctions Operation</seealso>
Task<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListInvalidations
/// <summary>
/// Lists invalidation batches.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListInvalidations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListInvalidations service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations">REST API Reference for ListInvalidations Operation</seealso>
Task<ListInvalidationsResponse> ListInvalidationsAsync(ListInvalidationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListKeyGroups
/// <summary>
/// Gets a list of key groups.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListKeyGroups service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListKeyGroups service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyGroups">REST API Reference for ListKeyGroups Operation</seealso>
Task<ListKeyGroupsResponse> ListKeyGroupsAsync(ListKeyGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListOriginAccessControls
/// <summary>
/// Gets the list of CloudFront origin access controls in this Amazon Web Services account.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// another request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the next request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginAccessControls service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListOriginAccessControls service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls">REST API Reference for ListOriginAccessControls Operation</seealso>
Task<ListOriginAccessControlsResponse> ListOriginAccessControlsAsync(ListOriginAccessControlsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListOriginRequestPolicies
/// <summary>
/// Gets a list of origin request policies.
///
///
/// <para>
/// You can optionally apply a filter to return only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListOriginRequestPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListOriginRequestPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies">REST API Reference for ListOriginRequestPolicies Operation</seealso>
Task<ListOriginRequestPoliciesResponse> ListOriginRequestPoliciesAsync(ListOriginRequestPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListPublicKeys
/// <summary>
/// List all public keys that have been added to CloudFront for this account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListPublicKeys service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListPublicKeys service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys">REST API Reference for ListPublicKeys Operation</seealso>
Task<ListPublicKeysResponse> ListPublicKeysAsync(ListPublicKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRealtimeLogConfigs
/// <summary>
/// Gets a list of real-time log configurations.
///
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRealtimeLogConfigs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRealtimeLogConfigs service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListRealtimeLogConfigs">REST API Reference for ListRealtimeLogConfigs Operation</seealso>
Task<ListRealtimeLogConfigsResponse> ListRealtimeLogConfigsAsync(ListRealtimeLogConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListResponseHeadersPolicies
/// <summary>
/// Gets a list of response headers policies.
///
///
/// <para>
/// You can optionally apply a filter to get only the managed policies created by Amazon
/// Web Services, or only the custom policies created in your Amazon Web Services account.
/// </para>
///
/// <para>
/// You can optionally specify the maximum number of items to receive in the response.
/// If the total number of items in the list exceeds the maximum that you specify, or
/// the default maximum, the response is paginated. To get the next page of items, send
/// a subsequent request that specifies the <code>NextMarker</code> value from the current
/// response as the <code>Marker</code> value in the subsequent request.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListResponseHeadersPolicies service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListResponseHeadersPolicies service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies">REST API Reference for ListResponseHeadersPolicies Operation</seealso>
Task<ListResponseHeadersPoliciesResponse> ListResponseHeadersPoliciesAsync(ListResponseHeadersPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListStreamingDistributions
/// <summary>
/// List streaming distributions.
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
Task<ListStreamingDistributionsResponse> ListStreamingDistributionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List streaming distributions.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListStreamingDistributions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListStreamingDistributions service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions">REST API Reference for ListStreamingDistributions Operation</seealso>
Task<ListStreamingDistributionsResponse> ListStreamingDistributionsAsync(ListStreamingDistributionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// List tags for a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PublishFunction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the PublishFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PublishFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction">REST API Reference for PublishFunction Operation</seealso>
Task<PublishFunctionResponse> PublishFunctionAsync(PublishFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Add tags to a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TestFunction
/// <summary>
/// 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>
/// <param name="request">Container for the necessary parameters to execute the TestFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TestFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TestFunctionFailedException">
/// The CloudFront function failed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction">REST API Reference for TestFunction Operation</seealso>
Task<TestFunctionResponse> TestFunctionAsync(TestFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Remove tags from a CloudFront resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTaggingException">
/// The tagging specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateCachePolicy
/// <summary>
/// Updates a cache policy configuration.
///
///
/// <para>
/// When you update a cache policy configuration, all the fields are updated with the
/// values provided in the request. You cannot update some fields independent of others.
/// To update a cache policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetCachePolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the cache policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateCachePolicy</code> by providing the entire cache policy configuration,
/// including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCachePolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateCachePolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CachePolicyAlreadyExistsException">
/// A cache policy with this name already exists. You must provide a unique name. To modify
/// an existing cache policy, use <code>UpdateCachePolicy</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInCachePolicyException">
/// The number of cookies in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInCachePolicyException">
/// The number of headers in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInCachePolicyException">
/// The number of query strings in the cache policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy">REST API Reference for UpdateCachePolicy Operation</seealso>
Task<UpdateCachePolicyResponse> UpdateCachePolicyAsync(UpdateCachePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateCloudFrontOriginAccessIdentity
/// <summary>
/// Update an origin access identity.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCloudFrontOriginAccessIdentityException">
/// The specified origin access identity does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity">REST API Reference for UpdateCloudFrontOriginAccessIdentity Operation</seealso>
Task<UpdateCloudFrontOriginAccessIdentityResponse> UpdateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateContinuousDeploymentPolicy
/// <summary>
/// Updates a continuous deployment policy. You can update a continuous deployment policy
/// to enable or disable it, to change the percentage of traffic that it sends to the
/// staging distribution, or to change the staging distribution that it sends traffic
/// to.
///
///
/// <para>
/// When you update a continuous deployment policy configuration, all the fields are updated
/// with the values that are provided in the request. You cannot update some fields independent
/// of others. To update a continuous deployment policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetContinuousDeploymentPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the continuous deployment policy configuration that you
/// want to update.
/// </para>
/// </li> <li>
/// <para>
/// Use <code>UpdateContinuousDeploymentPolicy</code>, providing the entire continuous
/// deployment policy configuration, including the fields that you modified and those
/// that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateContinuousDeploymentPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateContinuousDeploymentPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy">REST API Reference for UpdateContinuousDeploymentPolicy Operation</seealso>
Task<UpdateContinuousDeploymentPolicyResponse> UpdateContinuousDeploymentPolicyAsync(UpdateContinuousDeploymentPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateDistribution
/// <summary>
/// Updates the configuration for a CloudFront distribution.
///
///
/// <para>
/// The update process includes getting the current distribution configuration, updating
/// it to make your changes, and then submitting an <code>UpdateDistribution</code> request
/// to make the updates.
/// </para>
///
/// <para>
/// <b>To update a web distribution using the CloudFront API</b>
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetDistributionConfig</code> to get the current configuration, including
/// the version identifier (<code>ETag</code>).
/// </para>
/// </li> <li>
/// <para>
/// Update the distribution configuration that was returned in the response. Note the
/// following important requirements and restrictions:
/// </para>
/// <ul> <li>
/// <para>
/// You must rename the <code>ETag</code> field to <code>IfMatch</code>, leaving the value
/// unchanged. (Set the value of <code>IfMatch</code> to the value of <code>ETag</code>,
/// then remove the <code>ETag</code> field.)
/// </para>
/// </li> <li>
/// <para>
/// You can't change the value of <code>CallerReference</code>.
/// </para>
/// </li> </ul> </li> <li>
/// <para>
/// Submit an <code>UpdateDistribution</code> request, providing the distribution configuration.
/// The new configuration replaces the existing configuration. The values that you specify
/// in an <code>UpdateDistribution</code> request are not merged into your existing configuration.
/// Make sure to include all fields: the ones that you modified and also the ones that
/// you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ContinuousDeploymentPolicyInUseException">
/// You cannot delete a continuous deployment policy that is associated with a primary
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalOriginAccessConfigurationException">
/// An origin cannot contain both an origin access control (OAC) and an origin access
/// identity (OAI).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDomainNameForOriginAccessControlException">
/// An origin access control is associated with an origin whose domain name is not supported.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchContinuousDeploymentPolicyException">
/// The continuous deployment policy doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.StagingDistributionInUseException">
/// A continuous deployment policy for this staging distribution already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution">REST API Reference for UpdateDistribution Operation</seealso>
Task<UpdateDistributionResponse> UpdateDistributionAsync(UpdateDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateDistributionWithStagingConfig
/// <summary>
/// Copies the staging distribution's configuration to its corresponding primary distribution.
/// The primary distribution retains its <code>Aliases</code> (also known as alternate
/// domain names or CNAMEs) and <code>ContinuousDeploymentPolicyId</code> value, but otherwise
/// its configuration is overwritten to match the staging distribution.
///
///
/// <para>
/// You can use this operation in a continuous deployment workflow after you have tested
/// configuration changes on the staging distribution. After using a continuous deployment
/// policy to move a portion of your domain name's traffic to the staging distribution
/// and verifying that it works as intended, you can use this operation to copy the staging
/// distribution's configuration to the primary distribution. This action will disable
/// the continuous deployment policy and move your domain's traffic back to the primary
/// distribution.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateDistributionWithStagingConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateDistributionWithStagingConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException">
/// The specified configuration for field-level encryption can't be associated with the
/// specified cache behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidDefaultRootObjectException">
/// The default root object file name is too big or contains an invalid character.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidErrorCodeException">
/// An invalid error code was specified.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidForwardCookiesException">
/// Your request contains forward cookies option which doesn't match with the expectation
/// for the <code>whitelisted</code> list of cookie names. Either list of cookie names
/// has been specified when not allowed or list of cookie names is missing when expected.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidFunctionAssociationException">
/// A CloudFront function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidGeoRestrictionParameterException">
/// The specified geo restriction parameter is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidHeadersForS3OriginException">
/// The headers specified are not valid for an Amazon S3 origin.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLambdaFunctionAssociationException">
/// The specified Lambda@Edge function association is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidLocationCodeException">
/// The location code specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidMinimumProtocolVersionException">
/// The minimum protocol version specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginKeepaliveTimeoutException">
/// The keep alive timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginReadTimeoutException">
/// The read timeout specified for the origin is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidQueryStringParametersException">
/// The query string parameters specified are not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRelativePathException">
/// The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidRequiredProtocolException">
/// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol
/// in your request, or omit the <code>RequiredProtocols</code> element from your distribution
/// configuration.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidResponseCodeException">
/// A response code is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidTTLOrderException">
/// The TTL order specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidViewerCertificateException">
/// A viewer certificate specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidWebACLIdException">
/// A web ACL ID specified is not valid. To specify a web ACL created using the latest
/// version of WAF, use the ACL ARN, for example <code>arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// To specify a web ACL created using WAF Classic, use the ACL ID, for example <code>473e64fd-f30b-4765-81a0-62ad96dd167a</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchCachePolicyException">
/// The cache policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchDistributionException">
/// The specified distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginException">
/// No origin exists with the specified <code>Origin Id</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.RealtimeLogConfigOwnerMismatchException">
/// The specified real-time log configuration belongs to a different Amazon Web Services
/// account.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCacheBehaviorsException">
/// You cannot create more cache behaviors for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCertificatesException">
/// You cannot create anymore custom SSL/TLS certificates.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookieNamesInWhiteListException">
/// Your request contains more cookie names in the whitelist than are allowed per cache
/// behavior.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToCachePolicyException">
/// The maximum number of distributions have been associated with the specified cache
/// policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException">
/// The maximum number of distributions have been associated with the specified configuration
/// for field-level encryption.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToKeyGroupException">
/// The number of distributions that reference this key group is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToOriginRequestPolicyException">
/// The maximum number of distributions have been associated with the specified origin
/// request policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsAssociatedToResponseHeadersPolicyException">
/// The maximum number of distributions have been associated with the specified response
/// headers policy.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithFunctionAssociationsException">
/// You have reached the maximum number of distributions that are associated with a CloudFront
/// function. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithLambdaAssociationsException">
/// Processing your request would cause the maximum number of distributions with Lambda@Edge
/// function associations per owner to be exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyDistributionsWithSingleFunctionARNException">
/// The maximum number of distributions have been associated with the specified Lambda@Edge
/// function.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFunctionAssociationsException">
/// You have reached the maximum number of CloudFront function associations for this distribution.
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInForwardedValuesException">
/// Your request contains too many headers in forwarded values.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyKeyGroupsAssociatedToDistributionException">
/// The number of key groups referenced by this distribution is more than the maximum
/// allowed. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyLambdaFunctionAssociationsException">
/// Your request contains more Lambda@Edge function associations than are allowed per
/// distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginCustomHeadersException">
/// Your request contains too many origin custom headers.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginGroupsPerDistributionException">
/// Processing your request would cause you to exceed the maximum number of origin groups
/// allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyOriginsException">
/// You cannot create more origins for the distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringParametersException">
/// Your request contains too many query string parameters.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedKeyGroupDoesNotExistException">
/// The specified key group does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistributionWithStagingConfig">REST API Reference for UpdateDistributionWithStagingConfig Operation</seealso>
Task<UpdateDistributionWithStagingConfigResponse> UpdateDistributionWithStagingConfigAsync(UpdateDistributionWithStagingConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateFieldLevelEncryptionConfig
/// <summary>
/// Update a field-level encryption configuration.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionConfigException">
/// The specified configuration for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.QueryArgProfileEmptyException">
/// No profile specified for the field-level encryption query argument.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionContentTypeProfilesException">
/// The maximum number of content type profiles for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionQueryArgProfilesException">
/// The maximum number of query arg profiles for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig">REST API Reference for UpdateFieldLevelEncryptionConfig Operation</seealso>
Task<UpdateFieldLevelEncryptionConfigResponse> UpdateFieldLevelEncryptionConfigAsync(UpdateFieldLevelEncryptionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateFieldLevelEncryptionProfile
/// <summary>
/// Update a field-level encryption profile.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFieldLevelEncryptionProfile service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFieldLevelEncryptionProfile service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileAlreadyExistsException">
/// The specified profile for field-level encryption already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.FieldLevelEncryptionProfileSizeExceededException">
/// The maximum size of a profile for field-level encryption was exceeded.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFieldLevelEncryptionProfileException">
/// The specified profile for field-level encryption doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionEncryptionEntitiesException">
/// The maximum number of encryption entities for field-level encryption have been created.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyFieldLevelEncryptionFieldPatternsException">
/// The maximum number of field patterns for field-level encryption have been created.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile">REST API Reference for UpdateFieldLevelEncryptionProfile Operation</seealso>
Task<UpdateFieldLevelEncryptionProfileResponse> UpdateFieldLevelEncryptionProfileAsync(UpdateFieldLevelEncryptionProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateFunction
/// <summary>
/// Updates a CloudFront function.
///
///
/// <para>
/// You can update a function's code or the comment that describes the function. You cannot
/// update a function's name.
/// </para>
///
/// <para>
/// To update a function, you provide the function's name and version (<code>ETag</code>
/// value) along with the updated function code. To get the name and version, you can
/// use <code>ListFunctions</code> and <code>DescribeFunction</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFunction service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateFunction service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.FunctionSizeLimitExceededException">
/// The function is too large. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchFunctionExistsException">
/// The function does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.UnsupportedOperationException">
/// This operation is not supported in this region.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction">REST API Reference for UpdateFunction Operation</seealso>
Task<UpdateFunctionResponse> UpdateFunctionAsync(UpdateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateKeyGroup
/// <summary>
/// Updates a key group.
///
///
/// <para>
/// When you update a key group, all the fields are updated with the values provided in
/// the request. You cannot update some fields independent of others. To update a key
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// Get the current key group with <code>GetKeyGroup</code> or <code>GetKeyGroupConfig</code>.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the key group that you want to update. For example, add
/// or remove public key IDs.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateKeyGroup</code> with the entire key group object, including the fields
/// that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateKeyGroup service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateKeyGroup service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.KeyGroupAlreadyExistsException">
/// A key group with this name already exists. You must provide a unique name. To modify
/// an existing key group, use <code>UpdateKeyGroup</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResourceException">
/// A resource that was specified is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyPublicKeysInKeyGroupException">
/// The number of public keys in this key group is more than the maximum allowed. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyGroup">REST API Reference for UpdateKeyGroup Operation</seealso>
Task<UpdateKeyGroupResponse> UpdateKeyGroupAsync(UpdateKeyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateOriginAccessControl
/// <summary>
/// Updates a CloudFront origin access control.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginAccessControl service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateOriginAccessControl service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginAccessControlException">
/// The origin access control does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginAccessControlAlreadyExistsException">
/// An origin access control with the specified parameters already exists.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl">REST API Reference for UpdateOriginAccessControl Operation</seealso>
Task<UpdateOriginAccessControlResponse> UpdateOriginAccessControlAsync(UpdateOriginAccessControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateOriginRequestPolicy
/// <summary>
/// Updates an origin request policy configuration.
///
///
/// <para>
/// When you update an origin request policy configuration, all the fields are updated
/// with the values provided in the request. You cannot update some fields independent
/// of others. To update an origin request policy configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetOriginRequestPolicyConfig</code> to get the current configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the fields in the origin request policy configuration that you want
/// to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateOriginRequestPolicy</code> by providing the entire origin request
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateOriginRequestPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateOriginRequestPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchOriginRequestPolicyException">
/// The origin request policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.OriginRequestPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCookiesInOriginRequestPolicyException">
/// The number of cookies in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyHeadersInOriginRequestPolicyException">
/// The number of headers in the origin request policy exceeds the maximum. For more information,
/// see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyQueryStringsInOriginRequestPolicyException">
/// The number of query strings in the origin request policy exceeds the maximum. For
/// more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy">REST API Reference for UpdateOriginRequestPolicy Operation</seealso>
Task<UpdateOriginRequestPolicyResponse> UpdateOriginRequestPolicyAsync(UpdateOriginRequestPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdatePublicKey
/// <summary>
/// Update public key information. Note that the only value you can change is the comment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdatePublicKey service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdatePublicKey service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CannotChangeImmutablePublicKeyFieldsException">
/// You can't change the value of a public key.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchPublicKeyException">
/// The specified public key doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey">REST API Reference for UpdatePublicKey Operation</seealso>
Task<UpdatePublicKeyResponse> UpdatePublicKeyAsync(UpdatePublicKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateRealtimeLogConfig
/// <summary>
/// Updates a real-time log configuration.
///
///
/// <para>
/// When you update a real-time log configuration, all the parameters are updated with
/// the values provided in the request. You cannot update some parameters independent
/// of others. To update a real-time log configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Call <code>GetRealtimeLogConfig</code> to get the current real-time log configuration.
/// </para>
/// </li> <li>
/// <para>
/// Locally modify the parameters in the real-time log configuration that you want to
/// update.
/// </para>
/// </li> <li>
/// <para>
/// Call this API (<code>UpdateRealtimeLogConfig</code>) by providing the entire real-time
/// log configuration, including the parameters that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// <para>
/// You cannot update a real-time log configuration's <code>Name</code> or <code>ARN</code>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateRealtimeLogConfig service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateRealtimeLogConfig service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchRealtimeLogConfigException">
/// The real-time log configuration does not exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateRealtimeLogConfig">REST API Reference for UpdateRealtimeLogConfig Operation</seealso>
Task<UpdateRealtimeLogConfigResponse> UpdateRealtimeLogConfigAsync(UpdateRealtimeLogConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateResponseHeadersPolicy
/// <summary>
/// Updates a response headers policy.
///
///
/// <para>
/// When you update a response headers policy, the entire policy is replaced. You cannot
/// update some policy fields independent of others. To update a response headers policy
/// configuration:
/// </para>
/// <ol> <li>
/// <para>
/// Use <code>GetResponseHeadersPolicyConfig</code> to get the current policy's configuration.
/// </para>
/// </li> <li>
/// <para>
/// Modify the fields in the response headers policy configuration that you want to update.
/// </para>
/// </li> <li>
/// <para>
/// Call <code>UpdateResponseHeadersPolicy</code>, providing the entire response headers
/// policy configuration, including the fields that you modified and those that you didn't.
/// </para>
/// </li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateResponseHeadersPolicy service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateResponseHeadersPolicy service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchResponseHeadersPolicyException">
/// The response headers policy does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.ResponseHeadersPolicyAlreadyExistsException">
/// 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>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooLongCSPInResponseHeadersPolicyException">
/// The length of the <code>Content-Security-Policy</code> header value in the response
/// headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyCustomHeadersInResponseHeadersPolicyException">
/// The number of custom headers in the response headers policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyRemoveHeadersInResponseHeadersPolicyException">
/// The number of headers in <code>RemoveHeadersConfig</code> in the response headers
/// policy exceeds the maximum.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a>
/// (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.
/// </para>
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy">REST API Reference for UpdateResponseHeadersPolicy Operation</seealso>
Task<UpdateResponseHeadersPolicyResponse> UpdateResponseHeadersPolicyAsync(UpdateResponseHeadersPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateStreamingDistribution
/// <summary>
/// Update a streaming distribution.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateStreamingDistribution service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateStreamingDistribution service method, as returned by CloudFront.</returns>
/// <exception cref="Amazon.CloudFront.Model.AccessDeniedException">
/// Access denied.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.CNAMEAlreadyExistsException">
/// The CNAME specified is already defined for CloudFront.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.IllegalUpdateException">
/// The update contains modifications that are not allowed.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InconsistentQuantitiesException">
/// The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidArgumentException">
/// An argument is invalid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidIfMatchVersionException">
/// The <code>If-Match</code> version is missing or not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessControlException">
/// The origin access control is not valid.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.InvalidOriginAccessIdentityException">
/// The origin access identity is not valid or doesn't exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.MissingBodyException">
/// This operation requires a body. Ensure that the body is present and the <code>Content-Type</code>
/// header is set.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException">
/// The specified streaming distribution does not exist.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.PreconditionFailedException">
/// The precondition in one or more of the request fields evaluated to <code>false</code>.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyStreamingDistributionCNAMEsException">
/// Your request contains more CNAMEs than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TooManyTrustedSignersException">
/// Your request contains more trusted signers than are allowed per distribution.
/// </exception>
/// <exception cref="Amazon.CloudFront.Model.TrustedSignerDoesNotExistException">
/// One or more of your trusted signers don't exist.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution">REST API Reference for UpdateStreamingDistribution Operation</seealso>
Task<UpdateStreamingDistributionResponse> UpdateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 5,688 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.CloudFront")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudFront. Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services products to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudFront. Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services products to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudFront. Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services products to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudFront. Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services products to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.4.0")]
[assembly: AssemblyFileVersion("3.7.105.69")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
using System.Diagnostics.CodeAnalysis;
// Suppressions for various *url* params being strings.
[module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudHSM.Model.DescribeHsmResponse.#ServerCertUri")]
| 20 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.CloudHSM.Internal;
namespace Amazon.CloudHSM
{
/// <summary>
/// Configuration for accessing Amazon CloudHSM service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonCloudHSMConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonCloudHSMConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudHSMDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "cloudhsm";
this.EndpointProvider = new AmazonCloudHSMEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "cloudhsm";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2014-05-30";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.CloudHSM
{
/// <summary>
/// Configuration for accessing Amazon CloudHSM service
/// </summary>
public static class AmazonCloudHSMDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// CloudHSM
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.CloudHSM.Endpoints
{
/// <summary>
/// Contains parameters used for resolving CloudHSM endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal CloudHSMEndpointProvider and CloudHSMEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class CloudHSMEndpointParameters : EndpointParameters
{
/// <summary>
/// CloudHSMEndpointParameters constructor
/// </summary>
public CloudHSMEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.CloudHSM
{
///<summary>
/// Common exception for the CloudHSM service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonCloudHSMException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonCloudHSMException
/// </summary>
/// <param name="message"></param>
public AmazonCloudHSMException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonCloudHSMException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonCloudHSMException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonCloudHSMException
/// </summary>
/// <param name="innerException"></param>
public AmazonCloudHSMException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonCloudHSMException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonCloudHSMException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonCloudHSMException
/// </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 AmazonCloudHSMException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonCloudHSMException 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 AmazonCloudHSMException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.CloudHSM
{
/// <summary>
/// Constants used for properties of type ClientVersion.
/// </summary>
public class ClientVersion : ConstantClass
{
/// <summary>
/// Constant v5_1 for ClientVersion
/// </summary>
public static readonly ClientVersion v5_1 = new ClientVersion("5.1");
/// <summary>
/// Constant v5_3 for ClientVersion
/// </summary>
public static readonly ClientVersion v5_3 = new ClientVersion("5.3");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ClientVersion(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ClientVersion FindValue(string value)
{
return FindValue<ClientVersion>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ClientVersion(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CloudHsmObjectState.
/// </summary>
public class CloudHsmObjectState : ConstantClass
{
/// <summary>
/// Constant DEGRADED for CloudHsmObjectState
/// </summary>
public static readonly CloudHsmObjectState DEGRADED = new CloudHsmObjectState("DEGRADED");
/// <summary>
/// Constant READY for CloudHsmObjectState
/// </summary>
public static readonly CloudHsmObjectState READY = new CloudHsmObjectState("READY");
/// <summary>
/// Constant UPDATING for CloudHsmObjectState
/// </summary>
public static readonly CloudHsmObjectState UPDATING = new CloudHsmObjectState("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CloudHsmObjectState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CloudHsmObjectState FindValue(string value)
{
return FindValue<CloudHsmObjectState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CloudHsmObjectState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type HsmStatus.
/// </summary>
public class HsmStatus : ConstantClass
{
/// <summary>
/// Constant DEGRADED for HsmStatus
/// </summary>
public static readonly HsmStatus DEGRADED = new HsmStatus("DEGRADED");
/// <summary>
/// Constant PENDING for HsmStatus
/// </summary>
public static readonly HsmStatus PENDING = new HsmStatus("PENDING");
/// <summary>
/// Constant RUNNING for HsmStatus
/// </summary>
public static readonly HsmStatus RUNNING = new HsmStatus("RUNNING");
/// <summary>
/// Constant SUSPENDED for HsmStatus
/// </summary>
public static readonly HsmStatus SUSPENDED = new HsmStatus("SUSPENDED");
/// <summary>
/// Constant TERMINATED for HsmStatus
/// </summary>
public static readonly HsmStatus TERMINATED = new HsmStatus("TERMINATED");
/// <summary>
/// Constant TERMINATING for HsmStatus
/// </summary>
public static readonly HsmStatus TERMINATING = new HsmStatus("TERMINATING");
/// <summary>
/// Constant UPDATING for HsmStatus
/// </summary>
public static readonly HsmStatus UPDATING = new HsmStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public HsmStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static HsmStatus FindValue(string value)
{
return FindValue<HsmStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator HsmStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SubscriptionType.
/// </summary>
public class SubscriptionType : ConstantClass
{
/// <summary>
/// Constant PRODUCTION for SubscriptionType
/// </summary>
public static readonly SubscriptionType PRODUCTION = new SubscriptionType("PRODUCTION");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public SubscriptionType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static SubscriptionType FindValue(string value)
{
return FindValue<SubscriptionType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator SubscriptionType(string value)
{
return FindValue(value);
}
}
} | 246 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.CloudHSM.Internal
{
/// <summary>
/// Amazon CloudHSM endpoint provider.
/// Resolves endpoint for given set of CloudHSMEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonCloudHSMEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for CloudHSMEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null)
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
return new Endpoint(Interpolate(@"https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.CloudHSM.Endpoints;
#pragma warning disable 1591
namespace Amazon.CloudHSM.Internal
{
/// <summary>
/// Amazon CloudHSM endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudHSM service requests.
/// Collects values for CloudHSMEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudHSMEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonCloudHSMEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonCloudHSMConfig)requestContext.ClientConfig;
var result = new CloudHSMEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Internal
{
/// <summary>
/// Service metadata for Amazon CloudHSM service
/// </summary>
public partial class AmazonCloudHSMMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "CloudHSM";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 55 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the AddTagsToResource operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
/// </para>
///
/// <para>
/// Each tag consists of a key and a value. Tag keys must be unique to each resource.
/// </para>
/// </summary>
public partial class AddTagsToResourceRequest : AmazonCloudHSMRequest
{
private string _resourceArn;
private List<Tag> _tagList = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property TagList.
/// <para>
/// One or more tags.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> TagList
{
get { return this._tagList; }
set { this._tagList = value; }
}
// Check to see if TagList property is set
internal bool IsSetTagList()
{
return this._tagList != null && this._tagList.Count > 0;
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the AddTagsToResource operation.
/// </summary>
public partial class AddTagsToResourceResponse : AmazonWebServiceResponse
{
private string _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the operation.
/// </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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.CloudHSM
{
/// <summary>
/// Base class for CloudHSM operation requests.
/// </summary>
public partial class AmazonCloudHSMRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Indicates that an internal error occurred.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class CloudHsmInternalException : AmazonCloudHSMException
{
/// <summary>
/// Constructs a new CloudHsmInternalException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public CloudHsmInternalException(string message)
: base(message) {}
/// <summary>
/// Construct instance of CloudHsmInternalException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public CloudHsmInternalException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of CloudHsmInternalException
/// </summary>
/// <param name="innerException"></param>
public CloudHsmInternalException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of CloudHsmInternalException
/// </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 CloudHsmInternalException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of CloudHsmInternalException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public CloudHsmInternalException(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 CloudHsmInternalException 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 CloudHsmInternalException(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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Indicates that an exception occurred in the AWS CloudHSM service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class CloudHsmServiceException : AmazonCloudHSMException
{
private bool? _retryable;
/// <summary>
/// Constructs a new CloudHsmServiceException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public CloudHsmServiceException(string message)
: base(message) {}
/// <summary>
/// Construct instance of CloudHsmServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public CloudHsmServiceException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of CloudHsmServiceException
/// </summary>
/// <param name="innerException"></param>
public CloudHsmServiceException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of CloudHsmServiceException
/// </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 CloudHsmServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of CloudHsmServiceException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public CloudHsmServiceException(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 CloudHsmServiceException 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 CloudHsmServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Retryable = (bool)info.GetValue("Retryable", typeof(bool));
}
/// <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);
info.AddValue("Retryable", this.Retryable);
}
#endif
/// <summary>
/// Gets and sets the property Retryable.
/// <para>
/// Indicates if the action can be retried.
/// </para>
/// </summary>
public bool Retryable
{
get { return this._retryable.GetValueOrDefault(); }
set { this._retryable = value; }
}
// Check to see if Retryable property is set
internal bool IsSetRetryable()
{
return this._retryable.HasValue;
}
}
} | 145 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the CreateHapg operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Creates a high-availability partition group. A high-availability partition group is
/// a group of partitions that spans multiple physical HSMs.
/// </para>
/// </summary>
public partial class CreateHapgRequest : AmazonCloudHSMRequest
{
private string _label;
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The label of the new high-availability partition group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>CreateHAPartitionGroup</a> action.
/// </summary>
public partial class CreateHapgResponse : AmazonWebServiceResponse
{
private string _hapgArn;
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group.
/// </para>
/// </summary>
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the CreateHsm operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Creates an uninitialized HSM instance.
/// </para>
///
/// <para>
/// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code>
/// operation. If you accidentally provision an HSM and want to request a refund, delete
/// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS
/// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>.
/// </para>
/// <important>
/// <para>
/// It can take up to 20 minutes to create and provision an HSM. You can monitor the status
/// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized
/// when the status changes to <code>RUNNING</code>.
/// </para>
/// </important>
/// </summary>
public partial class CreateHsmRequest : AmazonCloudHSMRequest
{
private string _clientToken;
private string _eniIp;
private string _externalId;
private string _iamRoleArn;
private string _sshKey;
private string _subnetId;
private SubscriptionType _subscriptionType;
private string _syslogIp;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// A user-defined token to ensure idempotence. Subsequent calls to this operation with
/// the same token will be ignored.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property EniIp.
/// <para>
/// The IP address to assign to the HSM's ENI.
/// </para>
///
/// <para>
/// If an IP address is not specified, an IP address will be randomly chosen from the
/// CIDR range of the subnet.
/// </para>
/// </summary>
public string EniIp
{
get { return this._eniIp; }
set { this._eniIp = value; }
}
// Check to see if EniIp property is set
internal bool IsSetEniIp()
{
return this._eniIp != null;
}
/// <summary>
/// Gets and sets the property ExternalId.
/// <para>
/// The external ID from <code>IamRoleArn</code>, if present.
/// </para>
/// </summary>
public string ExternalId
{
get { return this._externalId; }
set { this._externalId = value; }
}
// Check to see if ExternalId property is set
internal bool IsSetExternalId()
{
return this._externalId != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your
/// behalf.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property SshKey.
/// <para>
/// The SSH public key to install on the HSM.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SshKey
{
get { return this._sshKey; }
set { this._sshKey = value; }
}
// Check to see if SshKey property is set
internal bool IsSetSshKey()
{
return this._sshKey != null;
}
/// <summary>
/// Gets and sets the property SubnetId.
/// <para>
/// The identifier of the subnet in your VPC in which to place the HSM.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SubnetId
{
get { return this._subnetId; }
set { this._subnetId = value; }
}
// Check to see if SubnetId property is set
internal bool IsSetSubnetId()
{
return this._subnetId != null;
}
/// <summary>
/// Gets and sets the property SubscriptionType.
/// </summary>
[AWSProperty(Required=true)]
public SubscriptionType SubscriptionType
{
get { return this._subscriptionType; }
set { this._subscriptionType = value; }
}
// Check to see if SubscriptionType property is set
internal bool IsSetSubscriptionType()
{
return this._subscriptionType != null;
}
/// <summary>
/// Gets and sets the property SyslogIp.
/// <para>
/// The IP address for the syslog monitoring server. The AWS CloudHSM service only supports
/// one syslog monitoring server.
/// </para>
/// </summary>
public string SyslogIp
{
get { return this._syslogIp; }
set { this._syslogIp = value; }
}
// Check to see if SyslogIp property is set
internal bool IsSetSyslogIp()
{
return this._syslogIp != null;
}
}
} | 230 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <code>CreateHsm</code> operation.
/// </summary>
public partial class CreateHsmResponse : AmazonWebServiceResponse
{
private string _hsmArn;
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM.
/// </para>
/// </summary>
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the CreateLunaClient operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Creates an HSM client.
/// </para>
/// </summary>
public partial class CreateLunaClientRequest : AmazonCloudHSMRequest
{
private string _certificate;
private string _label;
/// <summary>
/// Gets and sets the property Certificate.
/// <para>
/// The contents of a Base64-Encoded X.509 v3 certificate to be installed on the HSMs
/// used by this client.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=600, Max=2400)]
public string Certificate
{
get { return this._certificate; }
set { this._certificate = value; }
}
// Check to see if Certificate property is set
internal bool IsSetCertificate()
{
return this._certificate != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The label for the client.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
}
} | 95 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>CreateLunaClient</a> action.
/// </summary>
public partial class CreateLunaClientResponse : AmazonWebServiceResponse
{
private string _clientArn;
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DeleteHapg operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Deletes a high-availability partition group.
/// </para>
/// </summary>
public partial class DeleteHapgRequest : AmazonCloudHSMRequest
{
private string _hapgArn;
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != null;
}
}
} | 75 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>DeleteHapg</a> action.
/// </summary>
public partial class DeleteHapgResponse : AmazonWebServiceResponse
{
private string _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the action.
/// </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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DeleteHsm operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Deletes an HSM. After completion, this operation cannot be undone and your key material
/// cannot be recovered.
/// </para>
/// </summary>
public partial class DeleteHsmRequest : AmazonCloudHSMRequest
{
private string _hsmArn;
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != null;
}
}
} | 76 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>DeleteHsm</a> operation.
/// </summary>
public partial class DeleteHsmResponse : AmazonWebServiceResponse
{
private string _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the operation.
/// </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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DeleteLunaClient operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Deletes a client.
/// </para>
/// </summary>
public partial class DeleteLunaClientRequest : AmazonCloudHSMRequest
{
private string _clientArn;
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != null;
}
}
} | 75 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the DeleteLunaClient operation.
/// </summary>
public partial class DeleteLunaClientResponse : AmazonWebServiceResponse
{
private string _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the action.
/// </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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DescribeHapg operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Retrieves information about a high-availability partition group.
/// </para>
/// </summary>
public partial class DescribeHapgRequest : AmazonCloudHSMRequest
{
private string _hapgArn;
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group to describe.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != null;
}
}
} | 75 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>DescribeHapg</a> action.
/// </summary>
public partial class DescribeHapgResponse : AmazonWebServiceResponse
{
private string _hapgArn;
private string _hapgSerial;
private List<string> _hsmsLastActionFailed = new List<string>();
private List<string> _hsmsPendingDeletion = new List<string>();
private List<string> _hsmsPendingRegistration = new List<string>();
private string _label;
private string _lastModifiedTimestamp;
private List<string> _partitionSerialList = new List<string>();
private CloudHsmObjectState _state;
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group.
/// </para>
/// </summary>
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != null;
}
/// <summary>
/// Gets and sets the property HapgSerial.
/// <para>
/// The serial number of the high-availability partition group.
/// </para>
/// </summary>
public string HapgSerial
{
get { return this._hapgSerial; }
set { this._hapgSerial = value; }
}
// Check to see if HapgSerial property is set
internal bool IsSetHapgSerial()
{
return this._hapgSerial != null;
}
/// <summary>
/// Gets and sets the property HsmsLastActionFailed.
/// </summary>
public List<string> HsmsLastActionFailed
{
get { return this._hsmsLastActionFailed; }
set { this._hsmsLastActionFailed = value; }
}
// Check to see if HsmsLastActionFailed property is set
internal bool IsSetHsmsLastActionFailed()
{
return this._hsmsLastActionFailed != null && this._hsmsLastActionFailed.Count > 0;
}
/// <summary>
/// Gets and sets the property HsmsPendingDeletion.
/// </summary>
public List<string> HsmsPendingDeletion
{
get { return this._hsmsPendingDeletion; }
set { this._hsmsPendingDeletion = value; }
}
// Check to see if HsmsPendingDeletion property is set
internal bool IsSetHsmsPendingDeletion()
{
return this._hsmsPendingDeletion != null && this._hsmsPendingDeletion.Count > 0;
}
/// <summary>
/// Gets and sets the property HsmsPendingRegistration.
/// </summary>
public List<string> HsmsPendingRegistration
{
get { return this._hsmsPendingRegistration; }
set { this._hsmsPendingRegistration = value; }
}
// Check to see if HsmsPendingRegistration property is set
internal bool IsSetHsmsPendingRegistration()
{
return this._hsmsPendingRegistration != null && this._hsmsPendingRegistration.Count > 0;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The label for the high-availability partition group.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property LastModifiedTimestamp.
/// <para>
/// The date and time the high-availability partition group was last modified.
/// </para>
/// </summary>
public string LastModifiedTimestamp
{
get { return this._lastModifiedTimestamp; }
set { this._lastModifiedTimestamp = value; }
}
// Check to see if LastModifiedTimestamp property is set
internal bool IsSetLastModifiedTimestamp()
{
return this._lastModifiedTimestamp != null;
}
/// <summary>
/// Gets and sets the property PartitionSerialList.
/// <para>
/// The list of partition serial numbers that belong to the high-availability partition
/// group.
/// </para>
/// </summary>
public List<string> PartitionSerialList
{
get { return this._partitionSerialList; }
set { this._partitionSerialList = value; }
}
// Check to see if PartitionSerialList property is set
internal bool IsSetPartitionSerialList()
{
return this._partitionSerialList != null && this._partitionSerialList.Count > 0;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The state of the high-availability partition group.
/// </para>
/// </summary>
public CloudHsmObjectState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DescribeHsm operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial
/// number.
/// </para>
/// </summary>
public partial class DescribeHsmRequest : AmazonCloudHSMRequest
{
private string _hsmArn;
private string _hsmSerialNumber;
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code>
/// parameter must be specified.
/// </para>
/// </summary>
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != null;
}
/// <summary>
/// Gets and sets the property HsmSerialNumber.
/// <para>
/// The serial number of the HSM. Either the <code>HsmArn</code> or the <code>HsmSerialNumber</code>
/// parameter must be specified.
/// </para>
/// </summary>
public string HsmSerialNumber
{
get { return this._hsmSerialNumber; }
set { this._hsmSerialNumber = value; }
}
// Check to see if HsmSerialNumber property is set
internal bool IsSetHsmSerialNumber()
{
return this._hsmSerialNumber != null;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>DescribeHsm</a> operation.
/// </summary>
public partial class DescribeHsmResponse : AmazonWebServiceResponse
{
private string _availabilityZone;
private string _eniId;
private string _eniIp;
private string _hsmArn;
private string _hsmType;
private string _iamRoleArn;
private List<string> _partitions = new List<string>();
private string _serialNumber;
private string _serverCertLastUpdated;
private string _serverCertUri;
private string _softwareVersion;
private string _sshKeyLastUpdated;
private string _sshPublicKey;
private HsmStatus _status;
private string _statusDetails;
private string _subnetId;
private string _subscriptionEndDate;
private string _subscriptionStartDate;
private SubscriptionType _subscriptionType;
private string _vendorName;
private string _vpcId;
/// <summary>
/// Gets and sets the property AvailabilityZone.
/// <para>
/// The Availability Zone that the HSM is in.
/// </para>
/// </summary>
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
/// <summary>
/// Gets and sets the property EniId.
/// <para>
/// The identifier of the elastic network interface (ENI) attached to the HSM.
/// </para>
/// </summary>
public string EniId
{
get { return this._eniId; }
set { this._eniId = value; }
}
// Check to see if EniId property is set
internal bool IsSetEniId()
{
return this._eniId != null;
}
/// <summary>
/// Gets and sets the property EniIp.
/// <para>
/// The IP address assigned to the HSM's ENI.
/// </para>
/// </summary>
public string EniIp
{
get { return this._eniIp; }
set { this._eniIp = value; }
}
// Check to see if EniIp property is set
internal bool IsSetEniIp()
{
return this._eniIp != null;
}
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM.
/// </para>
/// </summary>
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != null;
}
/// <summary>
/// Gets and sets the property HsmType.
/// <para>
/// The HSM model type.
/// </para>
/// </summary>
public string HsmType
{
get { return this._hsmType; }
set { this._hsmType = value; }
}
// Check to see if HsmType property is set
internal bool IsSetHsmType()
{
return this._hsmType != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// The ARN of the IAM role assigned to the HSM.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property Partitions.
/// <para>
/// The list of partitions on the HSM.
/// </para>
/// </summary>
public List<string> Partitions
{
get { return this._partitions; }
set { this._partitions = value; }
}
// Check to see if Partitions property is set
internal bool IsSetPartitions()
{
return this._partitions != null && this._partitions.Count > 0;
}
/// <summary>
/// Gets and sets the property SerialNumber.
/// <para>
/// The serial number of the HSM.
/// </para>
/// </summary>
public string SerialNumber
{
get { return this._serialNumber; }
set { this._serialNumber = value; }
}
// Check to see if SerialNumber property is set
internal bool IsSetSerialNumber()
{
return this._serialNumber != null;
}
/// <summary>
/// Gets and sets the property ServerCertLastUpdated.
/// <para>
/// The date and time that the server certificate was last updated.
/// </para>
/// </summary>
public string ServerCertLastUpdated
{
get { return this._serverCertLastUpdated; }
set { this._serverCertLastUpdated = value; }
}
// Check to see if ServerCertLastUpdated property is set
internal bool IsSetServerCertLastUpdated()
{
return this._serverCertLastUpdated != null;
}
/// <summary>
/// Gets and sets the property ServerCertUri.
/// <para>
/// The URI of the certificate server.
/// </para>
/// </summary>
public string ServerCertUri
{
get { return this._serverCertUri; }
set { this._serverCertUri = value; }
}
// Check to see if ServerCertUri property is set
internal bool IsSetServerCertUri()
{
return this._serverCertUri != null;
}
/// <summary>
/// Gets and sets the property SoftwareVersion.
/// <para>
/// The HSM software version.
/// </para>
/// </summary>
public string SoftwareVersion
{
get { return this._softwareVersion; }
set { this._softwareVersion = value; }
}
// Check to see if SoftwareVersion property is set
internal bool IsSetSoftwareVersion()
{
return this._softwareVersion != null;
}
/// <summary>
/// Gets and sets the property SshKeyLastUpdated.
/// <para>
/// The date and time that the SSH key was last updated.
/// </para>
/// </summary>
public string SshKeyLastUpdated
{
get { return this._sshKeyLastUpdated; }
set { this._sshKeyLastUpdated = value; }
}
// Check to see if SshKeyLastUpdated property is set
internal bool IsSetSshKeyLastUpdated()
{
return this._sshKeyLastUpdated != null;
}
/// <summary>
/// Gets and sets the property SshPublicKey.
/// <para>
/// The public SSH key.
/// </para>
/// </summary>
public string SshPublicKey
{
get { return this._sshPublicKey; }
set { this._sshPublicKey = value; }
}
// Check to see if SshPublicKey property is set
internal bool IsSetSshPublicKey()
{
return this._sshPublicKey != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the HSM.
/// </para>
/// </summary>
public HsmStatus 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 StatusDetails.
/// <para>
/// Contains additional information about the status of the HSM.
/// </para>
/// </summary>
public string StatusDetails
{
get { return this._statusDetails; }
set { this._statusDetails = value; }
}
// Check to see if StatusDetails property is set
internal bool IsSetStatusDetails()
{
return this._statusDetails != null;
}
/// <summary>
/// Gets and sets the property SubnetId.
/// <para>
/// The identifier of the subnet that the HSM is in.
/// </para>
/// </summary>
public string SubnetId
{
get { return this._subnetId; }
set { this._subnetId = value; }
}
// Check to see if SubnetId property is set
internal bool IsSetSubnetId()
{
return this._subnetId != null;
}
/// <summary>
/// Gets and sets the property SubscriptionEndDate.
/// <para>
/// The subscription end date.
/// </para>
/// </summary>
public string SubscriptionEndDate
{
get { return this._subscriptionEndDate; }
set { this._subscriptionEndDate = value; }
}
// Check to see if SubscriptionEndDate property is set
internal bool IsSetSubscriptionEndDate()
{
return this._subscriptionEndDate != null;
}
/// <summary>
/// Gets and sets the property SubscriptionStartDate.
/// <para>
/// The subscription start date.
/// </para>
/// </summary>
public string SubscriptionStartDate
{
get { return this._subscriptionStartDate; }
set { this._subscriptionStartDate = value; }
}
// Check to see if SubscriptionStartDate property is set
internal bool IsSetSubscriptionStartDate()
{
return this._subscriptionStartDate != null;
}
/// <summary>
/// Gets and sets the property SubscriptionType.
/// </summary>
public SubscriptionType SubscriptionType
{
get { return this._subscriptionType; }
set { this._subscriptionType = value; }
}
// Check to see if SubscriptionType property is set
internal bool IsSetSubscriptionType()
{
return this._subscriptionType != null;
}
/// <summary>
/// Gets and sets the property VendorName.
/// <para>
/// The name of the HSM vendor.
/// </para>
/// </summary>
public string VendorName
{
get { return this._vendorName; }
set { this._vendorName = value; }
}
// Check to see if VendorName property is set
internal bool IsSetVendorName()
{
return this._vendorName != null;
}
/// <summary>
/// Gets and sets the property VpcId.
/// <para>
/// The identifier of the VPC that the HSM is in.
/// </para>
/// </summary>
public string VpcId
{
get { return this._vpcId; }
set { this._vpcId = value; }
}
// Check to see if VpcId property is set
internal bool IsSetVpcId()
{
return this._vpcId != null;
}
}
} | 434 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the DescribeLunaClient operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Retrieves information about an HSM client.
/// </para>
/// </summary>
public partial class DescribeLunaClientRequest : AmazonCloudHSMRequest
{
private string _certificateFingerprint;
private string _clientArn;
/// <summary>
/// Gets and sets the property CertificateFingerprint.
/// <para>
/// The certificate fingerprint.
/// </para>
/// </summary>
public string CertificateFingerprint
{
get { return this._certificateFingerprint; }
set { this._certificateFingerprint = value; }
}
// Check to see if CertificateFingerprint property is set
internal bool IsSetCertificateFingerprint()
{
return this._certificateFingerprint != null;
}
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the DescribeLunaClient operation.
/// </summary>
public partial class DescribeLunaClientResponse : AmazonWebServiceResponse
{
private string _certificate;
private string _certificateFingerprint;
private string _clientArn;
private string _label;
private string _lastModifiedTimestamp;
/// <summary>
/// Gets and sets the property Certificate.
/// <para>
/// The certificate installed on the HSMs used by this client.
/// </para>
/// </summary>
[AWSProperty(Min=600, Max=2400)]
public string Certificate
{
get { return this._certificate; }
set { this._certificate = value; }
}
// Check to see if Certificate property is set
internal bool IsSetCertificate()
{
return this._certificate != null;
}
/// <summary>
/// Gets and sets the property CertificateFingerprint.
/// <para>
/// The certificate fingerprint.
/// </para>
/// </summary>
public string CertificateFingerprint
{
get { return this._certificateFingerprint; }
set { this._certificateFingerprint = value; }
}
// Check to see if CertificateFingerprint property is set
internal bool IsSetCertificateFingerprint()
{
return this._certificateFingerprint != null;
}
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The label of the client.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property LastModifiedTimestamp.
/// <para>
/// The date and time the client was last modified.
/// </para>
/// </summary>
public string LastModifiedTimestamp
{
get { return this._lastModifiedTimestamp; }
set { this._lastModifiedTimestamp = value; }
}
// Check to see if LastModifiedTimestamp property is set
internal bool IsSetLastModifiedTimestamp()
{
return this._lastModifiedTimestamp != null;
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the GetConfig operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Gets the configuration files necessary to connect to all high availability partition
/// groups the client is associated with.
/// </para>
/// </summary>
public partial class GetConfigRequest : AmazonCloudHSMRequest
{
private string _clientArn;
private ClientVersion _clientVersion;
private List<string> _hapgList = new List<string>();
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != null;
}
/// <summary>
/// Gets and sets the property ClientVersion.
/// <para>
/// The client version.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ClientVersion ClientVersion
{
get { return this._clientVersion; }
set { this._clientVersion = value; }
}
// Check to see if ClientVersion property is set
internal bool IsSetClientVersion()
{
return this._clientVersion != null;
}
/// <summary>
/// Gets and sets the property HapgList.
/// <para>
/// A list of ARNs that identify the high-availability partition groups that are associated
/// with the client.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> HapgList
{
get { return this._hapgList; }
set { this._hapgList = value; }
}
// Check to see if HapgList property is set
internal bool IsSetHapgList()
{
return this._hapgList != null && this._hapgList.Count > 0;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the GetConfig operation.
/// </summary>
public partial class GetConfigResponse : AmazonWebServiceResponse
{
private string _configCred;
private string _configFile;
private string _configType;
/// <summary>
/// Gets and sets the property ConfigCred.
/// <para>
/// The certificate file containing the server.pem files of the HSMs.
/// </para>
/// </summary>
public string ConfigCred
{
get { return this._configCred; }
set { this._configCred = value; }
}
// Check to see if ConfigCred property is set
internal bool IsSetConfigCred()
{
return this._configCred != null;
}
/// <summary>
/// Gets and sets the property ConfigFile.
/// <para>
/// The chrystoki.conf configuration file.
/// </para>
/// </summary>
public string ConfigFile
{
get { return this._configFile; }
set { this._configFile = value; }
}
// Check to see if ConfigFile property is set
internal bool IsSetConfigFile()
{
return this._configFile != null;
}
/// <summary>
/// Gets and sets the property ConfigType.
/// <para>
/// The type of credentials.
/// </para>
/// </summary>
public string ConfigType
{
get { return this._configType; }
set { this._configType = value; }
}
// Check to see if ConfigType property is set
internal bool IsSetConfigType()
{
return this._configType != null;
}
}
} | 95 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Indicates that one or more of the request parameters are not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidRequestException : AmazonCloudHSMException
{
/// <summary>
/// Constructs a new InvalidRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="innerException"></param>
public InvalidRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidRequestException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InvalidRequestException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InvalidRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ListAvailableZones operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Lists the Availability Zones that have available AWS CloudHSM capacity.
/// </para>
/// </summary>
public partial class ListAvailableZonesRequest : AmazonCloudHSMRequest
{
}
} | 55 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ListAvailableZones operation.
/// </summary>
public partial class ListAvailableZonesResponse : AmazonWebServiceResponse
{
private List<string> _azList = new List<string>();
/// <summary>
/// Gets and sets the property AZList.
/// <para>
/// The list of Availability Zones that have available AWS CloudHSM capacity.
/// </para>
/// </summary>
public List<string> AZList
{
get { return this._azList; }
set { this._azList = value; }
}
// Check to see if AZList property is set
internal bool IsSetAZList()
{
return this._azList != null && this._azList.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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ListHapgs operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Lists the high-availability partition groups for the account.
/// </para>
///
/// <para>
/// This operation supports pagination with the use of the <code>NextToken</code> member.
/// If more results are available, the <code>NextToken</code> member of the response contains
/// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next
/// set of items.
/// </para>
/// </summary>
public partial class ListHapgsRequest : AmazonCloudHSMRequest
{
private string _nextToken;
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>NextToken</code> value from a previous call to <code>ListHapgs</code>. Pass
/// null if this is the first call.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ListHapgs operation.
/// </summary>
public partial class ListHapgsResponse : AmazonWebServiceResponse
{
private List<string> _hapgList = new List<string>();
private string _nextToken;
/// <summary>
/// Gets and sets the property HapgList.
/// <para>
/// The list of high-availability partition groups.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> HapgList
{
get { return this._hapgList; }
set { this._hapgList = value; }
}
// Check to see if HapgList property is set
internal bool IsSetHapgList()
{
return this._hapgList != null && this._hapgList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If not null, more results are available. Pass this value to <code>ListHapgs</code>
/// to retrieve the next set of items.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ListHsms operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Retrieves the identifiers of all of the HSMs provisioned for the current customer.
/// </para>
///
/// <para>
/// This operation supports pagination with the use of the <code>NextToken</code> member.
/// If more results are available, the <code>NextToken</code> member of the response contains
/// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next
/// set of items.
/// </para>
/// </summary>
public partial class ListHsmsRequest : AmazonCloudHSMRequest
{
private string _nextToken;
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>NextToken</code> value from a previous call to <code>ListHsms</code>. Pass
/// null if this is the first call.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <code>ListHsms</code> operation.
/// </summary>
public partial class ListHsmsResponse : AmazonWebServiceResponse
{
private List<string> _hsmList = new List<string>();
private string _nextToken;
/// <summary>
/// Gets and sets the property HsmList.
/// <para>
/// The list of ARNs that identify the HSMs.
/// </para>
/// </summary>
public List<string> HsmList
{
get { return this._hsmList; }
set { this._hsmList = value; }
}
// Check to see if HsmList property is set
internal bool IsSetHsmList()
{
return this._hsmList != null && this._hsmList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If not null, more results are available. Pass this value to <code>ListHsms</code>
/// to retrieve the next set of items.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ListLunaClients operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Lists all of the clients.
/// </para>
///
/// <para>
/// This operation supports pagination with the use of the <code>NextToken</code> member.
/// If more results are available, the <code>NextToken</code> member of the response contains
/// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve
/// the next set of items.
/// </para>
/// </summary>
public partial class ListLunaClientsRequest : AmazonCloudHSMRequest
{
private string _nextToken;
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>NextToken</code> value from a previous call to <code>ListLunaClients</code>.
/// Pass null if this is the first call.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ListLunaClients operation.
/// </summary>
public partial class ListLunaClientsResponse : AmazonWebServiceResponse
{
private List<string> _clientList = new List<string>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ClientList.
/// <para>
/// The list of clients.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> ClientList
{
get { return this._clientList; }
set { this._clientList = value; }
}
// Check to see if ClientList property is set
internal bool IsSetClientList()
{
return this._clientList != null && this._clientList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If not null, more results are available. Pass this to <code>ListLunaClients</code>
/// to retrieve the next set of items.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Returns a list of all tags for the specified AWS CloudHSM resource.
/// </para>
/// </summary>
public partial class ListTagsForResourceRequest : AmazonCloudHSMRequest
{
private string _resourceArn;
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
} | 75 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tagList = new List<Tag>();
/// <summary>
/// Gets and sets the property TagList.
/// <para>
/// One or more tags.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> TagList
{
get { return this._tagList; }
set { this._tagList = value; }
}
// Check to see if TagList property is set
internal bool IsSetTagList()
{
return this._tagList != null && this._tagList.Count > 0;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ModifyHapg operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Modifies an existing high-availability partition group.
/// </para>
/// </summary>
public partial class ModifyHapgRequest : AmazonCloudHSMRequest
{
private string _hapgArn;
private string _label;
private List<string> _partitionSerialList = new List<string>();
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group to modify.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// The new label for the high-availability partition group.
/// </para>
/// </summary>
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property PartitionSerialList.
/// <para>
/// The list of partition serial numbers to make members of the high-availability partition
/// group.
/// </para>
/// </summary>
public List<string> PartitionSerialList
{
get { return this._partitionSerialList; }
set { this._partitionSerialList = value; }
}
// Check to see if PartitionSerialList property is set
internal bool IsSetPartitionSerialList()
{
return this._partitionSerialList != null && this._partitionSerialList.Count > 0;
}
}
} | 114 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ModifyHapg operation.
/// </summary>
public partial class ModifyHapgResponse : AmazonWebServiceResponse
{
private string _hapgArn;
/// <summary>
/// Gets and sets the property HapgArn.
/// <para>
/// The ARN of the high-availability partition group.
/// </para>
/// </summary>
public string HapgArn
{
get { return this._hapgArn; }
set { this._hapgArn = value; }
}
// Check to see if HapgArn property is set
internal bool IsSetHapgArn()
{
return this._hapgArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ModifyHsm operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Modifies an HSM.
/// </para>
/// <important>
/// <para>
/// This operation can result in the HSM being offline for up to 15 minutes while the
/// AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should
/// ensure that your AWS CloudHSM service is configured for high availability, and consider
/// executing this operation during a maintenance window.
/// </para>
/// </important>
/// </summary>
public partial class ModifyHsmRequest : AmazonCloudHSMRequest
{
private string _eniIp;
private string _externalId;
private string _hsmArn;
private string _iamRoleArn;
private string _subnetId;
private string _syslogIp;
/// <summary>
/// Gets and sets the property EniIp.
/// <para>
/// The new IP address for the elastic network interface (ENI) attached to the HSM.
/// </para>
///
/// <para>
/// If the HSM is moved to a different subnet, and an IP address is not specified, an
/// IP address will be randomly chosen from the CIDR range of the new subnet.
/// </para>
/// </summary>
public string EniIp
{
get { return this._eniIp; }
set { this._eniIp = value; }
}
// Check to see if EniIp property is set
internal bool IsSetEniIp()
{
return this._eniIp != null;
}
/// <summary>
/// Gets and sets the property ExternalId.
/// <para>
/// The new external ID.
/// </para>
/// </summary>
public string ExternalId
{
get { return this._externalId; }
set { this._externalId = value; }
}
// Check to see if ExternalId property is set
internal bool IsSetExternalId()
{
return this._externalId != null;
}
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM to modify.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// The new IAM role ARN.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property SubnetId.
/// <para>
/// The new identifier of the subnet that the HSM is in. The new subnet must be in the
/// same Availability Zone as the current subnet.
/// </para>
/// </summary>
public string SubnetId
{
get { return this._subnetId; }
set { this._subnetId = value; }
}
// Check to see if SubnetId property is set
internal bool IsSetSubnetId()
{
return this._subnetId != null;
}
/// <summary>
/// Gets and sets the property SyslogIp.
/// <para>
/// The new IP address for the syslog monitoring server. The AWS CloudHSM service only
/// supports one syslog monitoring server.
/// </para>
/// </summary>
public string SyslogIp
{
get { return this._syslogIp; }
set { this._syslogIp = value; }
}
// Check to see if SyslogIp property is set
internal bool IsSetSyslogIp()
{
return this._syslogIp != null;
}
}
} | 185 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Contains the output of the <a>ModifyHsm</a> operation.
/// </summary>
public partial class ModifyHsmResponse : AmazonWebServiceResponse
{
private string _hsmArn;
/// <summary>
/// Gets and sets the property HsmArn.
/// <para>
/// The ARN of the HSM.
/// </para>
/// </summary>
public string HsmArn
{
get { return this._hsmArn; }
set { this._hsmArn = value; }
}
// Check to see if HsmArn property is set
internal bool IsSetHsmArn()
{
return this._hsmArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the ModifyLunaClient operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Modifies the certificate used by the client.
/// </para>
///
/// <para>
/// This action can potentially start a workflow to install the new certificate on the
/// client's HSMs.
/// </para>
/// </summary>
public partial class ModifyLunaClientRequest : AmazonCloudHSMRequest
{
private string _certificate;
private string _clientArn;
/// <summary>
/// Gets and sets the property Certificate.
/// <para>
/// The new certificate for the client.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=600, Max=2400)]
public string Certificate
{
get { return this._certificate; }
set { this._certificate = value; }
}
// Check to see if Certificate property is set
internal bool IsSetCertificate()
{
return this._certificate != null;
}
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the ModifyLunaClient operation.
/// </summary>
public partial class ModifyLunaClientResponse : AmazonWebServiceResponse
{
private string _clientArn;
/// <summary>
/// Gets and sets the property ClientArn.
/// <para>
/// The ARN of the client.
/// </para>
/// </summary>
public string ClientArn
{
get { return this._clientArn; }
set { this._clientArn = value; }
}
// Check to see if ClientArn property is set
internal bool IsSetClientArn()
{
return this._clientArn != 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// Container for the parameters to the RemoveTagsFromResource operation.
/// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
/// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>,
/// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM
/// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS
/// CloudHSM Classic API Reference</a>.
///
///
/// <para>
/// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS
/// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS
/// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
/// </para>
///
/// <para>
/// Removes one or more tags from the specified AWS CloudHSM resource.
/// </para>
///
/// <para>
/// To remove a tag, specify only the tag key to remove (not the value). To overwrite
/// the value for an existing tag, use <a>AddTagsToResource</a>.
/// </para>
/// </summary>
public partial class RemoveTagsFromResourceRequest : AmazonCloudHSMRequest
{
private string _resourceArn;
private List<string> _tagKeyList = new List<string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property TagKeyList.
/// <para>
/// The tag key or keys to remove.
/// </para>
///
/// <para>
/// Specify only the tag key to remove (not the value). To overwrite the value for an
/// existing tag, use <a>AddTagsToResource</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> TagKeyList
{
get { return this._tagKeyList; }
set { this._tagKeyList = value; }
}
// Check to see if TagKeyList property is set
internal bool IsSetTagKeyList()
{
return this._tagKeyList != null && this._tagKeyList.Count > 0;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// This is the response object from the RemoveTagsFromResource operation.
/// </summary>
public partial class RemoveTagsFromResourceResponse : AmazonWebServiceResponse
{
private string _status;
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of the operation.
/// </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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudHSM.Model
{
/// <summary>
/// A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The key of the tag.
/// </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>
/// The value of the tag.
/// </para>
/// </summary>
[AWSProperty(Required=true, 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;
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// AddTagsToResource Request Marshaller
/// </summary>
public class AddTagsToResourceRequestMarshaller : IMarshaller<IRequest, AddTagsToResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AddTagsToResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AddTagsToResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.AddTagsToResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceArn())
{
context.Writer.WritePropertyName("ResourceArn");
context.Writer.Write(publicRequest.ResourceArn);
}
if(publicRequest.IsSetTagList())
{
context.Writer.WritePropertyName("TagList");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagListListValue in publicRequest.TagList)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagListListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static AddTagsToResourceRequestMarshaller _instance = new AddTagsToResourceRequestMarshaller();
internal static AddTagsToResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AddTagsToResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AddTagsToResource operation
/// </summary>
public class AddTagsToResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
AddTagsToResourceResponse response = new AddTagsToResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AddTagsToResourceResponseUnmarshaller _instance = new AddTagsToResourceResponseUnmarshaller();
internal static AddTagsToResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AddTagsToResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CloudHsmInternalException Object
/// </summary>
public class CloudHsmInternalExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmInternalException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CloudHsmInternalException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public CloudHsmInternalException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
CloudHsmInternalException unmarshalledObject = new CloudHsmInternalException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static CloudHsmInternalExceptionUnmarshaller _instance = new CloudHsmInternalExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CloudHsmInternalExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CloudHsmServiceException Object
/// </summary>
public class CloudHsmServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmServiceException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CloudHsmServiceException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public CloudHsmServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
CloudHsmServiceException unmarshalledObject = new CloudHsmServiceException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("retryable", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Retryable = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CloudHsmServiceExceptionUnmarshaller _instance = new CloudHsmServiceExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CloudHsmServiceExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateHapg Request Marshaller
/// </summary>
public class CreateHapgRequestMarshaller : IMarshaller<IRequest, CreateHapgRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CreateHapgRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateHapgRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.CreateHapg";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetLabel())
{
context.Writer.WritePropertyName("Label");
context.Writer.Write(publicRequest.Label);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateHapgRequestMarshaller _instance = new CreateHapgRequestMarshaller();
internal static CreateHapgRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateHapgRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateHapg operation
/// </summary>
public class CreateHapgResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateHapgResponse response = new CreateHapgResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HapgArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HapgArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateHapgResponseUnmarshaller _instance = new CreateHapgResponseUnmarshaller();
internal static CreateHapgResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateHapgResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateHsm Request Marshaller
/// </summary>
public class CreateHsmRequestMarshaller : IMarshaller<IRequest, CreateHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CreateHsmRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateHsmRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.CreateHsm";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("ClientToken");
context.Writer.Write(publicRequest.ClientToken);
}
if(publicRequest.IsSetEniIp())
{
context.Writer.WritePropertyName("EniIp");
context.Writer.Write(publicRequest.EniIp);
}
if(publicRequest.IsSetExternalId())
{
context.Writer.WritePropertyName("ExternalId");
context.Writer.Write(publicRequest.ExternalId);
}
if(publicRequest.IsSetIamRoleArn())
{
context.Writer.WritePropertyName("IamRoleArn");
context.Writer.Write(publicRequest.IamRoleArn);
}
if(publicRequest.IsSetSshKey())
{
context.Writer.WritePropertyName("SshKey");
context.Writer.Write(publicRequest.SshKey);
}
if(publicRequest.IsSetSubnetId())
{
context.Writer.WritePropertyName("SubnetId");
context.Writer.Write(publicRequest.SubnetId);
}
if(publicRequest.IsSetSubscriptionType())
{
context.Writer.WritePropertyName("SubscriptionType");
context.Writer.Write(publicRequest.SubscriptionType);
}
if(publicRequest.IsSetSyslogIp())
{
context.Writer.WritePropertyName("SyslogIp");
context.Writer.Write(publicRequest.SyslogIp);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateHsmRequestMarshaller _instance = new CreateHsmRequestMarshaller();
internal static CreateHsmRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateHsmRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 145 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateHsm operation
/// </summary>
public class CreateHsmResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateHsmResponse response = new CreateHsmResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HsmArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HsmArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateHsmResponseUnmarshaller _instance = new CreateHsmResponseUnmarshaller();
internal static CreateHsmResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateHsmResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateLunaClient Request Marshaller
/// </summary>
public class CreateLunaClientRequestMarshaller : IMarshaller<IRequest, CreateLunaClientRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CreateLunaClientRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateLunaClientRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.CreateLunaClient";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCertificate())
{
context.Writer.WritePropertyName("Certificate");
context.Writer.Write(publicRequest.Certificate);
}
if(publicRequest.IsSetLabel())
{
context.Writer.WritePropertyName("Label");
context.Writer.Write(publicRequest.Label);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateLunaClientRequestMarshaller _instance = new CreateLunaClientRequestMarshaller();
internal static CreateLunaClientRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLunaClientRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateLunaClient operation
/// </summary>
public class CreateLunaClientResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateLunaClientResponse response = new CreateLunaClientResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ClientArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ClientArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateLunaClientResponseUnmarshaller _instance = new CreateLunaClientResponseUnmarshaller();
internal static CreateLunaClientResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLunaClientResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteHapg Request Marshaller
/// </summary>
public class DeleteHapgRequestMarshaller : IMarshaller<IRequest, DeleteHapgRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteHapgRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteHapgRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DeleteHapg";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetHapgArn())
{
context.Writer.WritePropertyName("HapgArn");
context.Writer.Write(publicRequest.HapgArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteHapgRequestMarshaller _instance = new DeleteHapgRequestMarshaller();
internal static DeleteHapgRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHapgRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteHapg operation
/// </summary>
public class DeleteHapgResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteHapgResponse response = new DeleteHapgResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteHapgResponseUnmarshaller _instance = new DeleteHapgResponseUnmarshaller();
internal static DeleteHapgResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHapgResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteHsm Request Marshaller
/// </summary>
public class DeleteHsmRequestMarshaller : IMarshaller<IRequest, DeleteHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteHsmRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteHsmRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DeleteHsm";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetHsmArn())
{
context.Writer.WritePropertyName("HsmArn");
context.Writer.Write(publicRequest.HsmArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteHsmRequestMarshaller _instance = new DeleteHsmRequestMarshaller();
internal static DeleteHsmRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHsmRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteHsm operation
/// </summary>
public class DeleteHsmResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteHsmResponse response = new DeleteHsmResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteHsmResponseUnmarshaller _instance = new DeleteHsmResponseUnmarshaller();
internal static DeleteHsmResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteHsmResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteLunaClient Request Marshaller
/// </summary>
public class DeleteLunaClientRequestMarshaller : IMarshaller<IRequest, DeleteLunaClientRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteLunaClientRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteLunaClientRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DeleteLunaClient";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientArn())
{
context.Writer.WritePropertyName("ClientArn");
context.Writer.Write(publicRequest.ClientArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteLunaClientRequestMarshaller _instance = new DeleteLunaClientRequestMarshaller();
internal static DeleteLunaClientRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteLunaClientRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteLunaClient operation
/// </summary>
public class DeleteLunaClientResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteLunaClientResponse response = new DeleteLunaClientResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteLunaClientResponseUnmarshaller _instance = new DeleteLunaClientResponseUnmarshaller();
internal static DeleteLunaClientResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteLunaClientResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeHapg Request Marshaller
/// </summary>
public class DescribeHapgRequestMarshaller : IMarshaller<IRequest, DescribeHapgRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeHapgRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeHapgRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DescribeHapg";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetHapgArn())
{
context.Writer.WritePropertyName("HapgArn");
context.Writer.Write(publicRequest.HapgArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeHapgRequestMarshaller _instance = new DescribeHapgRequestMarshaller();
internal static DescribeHapgRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHapgRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeHapg operation
/// </summary>
public class DescribeHapgResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeHapgResponse response = new DescribeHapgResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HapgArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HapgArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HapgSerial", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HapgSerial = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HsmsLastActionFailed", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.HsmsLastActionFailed = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HsmsPendingDeletion", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.HsmsPendingDeletion = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HsmsPendingRegistration", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.HsmsPendingRegistration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Label", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Label = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastModifiedTimestamp", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LastModifiedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PartitionSerialList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.PartitionSerialList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.State = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeHapgResponseUnmarshaller _instance = new DescribeHapgResponseUnmarshaller();
internal static DescribeHapgResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHapgResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 166 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeHsm Request Marshaller
/// </summary>
public class DescribeHsmRequestMarshaller : IMarshaller<IRequest, DescribeHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeHsmRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeHsmRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DescribeHsm";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetHsmArn())
{
context.Writer.WritePropertyName("HsmArn");
context.Writer.Write(publicRequest.HsmArn);
}
if(publicRequest.IsSetHsmSerialNumber())
{
context.Writer.WritePropertyName("HsmSerialNumber");
context.Writer.Write(publicRequest.HsmSerialNumber);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeHsmRequestMarshaller _instance = new DescribeHsmRequestMarshaller();
internal static DescribeHsmRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHsmRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeHsm operation
/// </summary>
public class DescribeHsmResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeHsmResponse response = new DescribeHsmResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AvailabilityZone", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.AvailabilityZone = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EniId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.EniId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EniIp", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.EniIp = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HsmArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HsmArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HsmType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.HsmType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IamRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.IamRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Partitions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.Partitions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SerialNumber", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SerialNumber = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServerCertLastUpdated", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ServerCertLastUpdated = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServerCertUri", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ServerCertUri = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SoftwareVersion", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SoftwareVersion = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SshKeyLastUpdated", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SshKeyLastUpdated = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SshPublicKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SshPublicKey = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusDetails", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StatusDetails = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubnetId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SubnetId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubscriptionEndDate", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SubscriptionEndDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubscriptionStartDate", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SubscriptionStartDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SubscriptionType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SubscriptionType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VendorName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VendorName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VpcId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VpcId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeHsmResponseUnmarshaller _instance = new DescribeHsmResponseUnmarshaller();
internal static DescribeHsmResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeHsmResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 238 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeLunaClient Request Marshaller
/// </summary>
public class DescribeLunaClientRequestMarshaller : IMarshaller<IRequest, DescribeLunaClientRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeLunaClientRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeLunaClientRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.DescribeLunaClient";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCertificateFingerprint())
{
context.Writer.WritePropertyName("CertificateFingerprint");
context.Writer.Write(publicRequest.CertificateFingerprint);
}
if(publicRequest.IsSetClientArn())
{
context.Writer.WritePropertyName("ClientArn");
context.Writer.Write(publicRequest.ClientArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeLunaClientRequestMarshaller _instance = new DescribeLunaClientRequestMarshaller();
internal static DescribeLunaClientRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeLunaClientRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeLunaClient operation
/// </summary>
public class DescribeLunaClientResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeLunaClientResponse response = new DescribeLunaClientResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Certificate", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Certificate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CertificateFingerprint", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CertificateFingerprint = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ClientArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ClientArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Label", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Label = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastModifiedTimestamp", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LastModifiedTimestamp = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeLunaClientResponseUnmarshaller _instance = new DescribeLunaClientResponseUnmarshaller();
internal static DescribeLunaClientResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeLunaClientResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 142 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetConfig Request Marshaller
/// </summary>
public class GetConfigRequestMarshaller : IMarshaller<IRequest, GetConfigRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((GetConfigRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetConfigRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.GetConfig";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientArn())
{
context.Writer.WritePropertyName("ClientArn");
context.Writer.Write(publicRequest.ClientArn);
}
if(publicRequest.IsSetClientVersion())
{
context.Writer.WritePropertyName("ClientVersion");
context.Writer.Write(publicRequest.ClientVersion);
}
if(publicRequest.IsSetHapgList())
{
context.Writer.WritePropertyName("HapgList");
context.Writer.WriteArrayStart();
foreach(var publicRequestHapgListListValue in publicRequest.HapgList)
{
context.Writer.Write(publicRequestHapgListListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static GetConfigRequestMarshaller _instance = new GetConfigRequestMarshaller();
internal static GetConfigRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetConfigRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetConfig operation
/// </summary>
public class GetConfigResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetConfigResponse response = new GetConfigResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConfigCred", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConfigCred = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConfigFile", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConfigFile = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConfigType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConfigType = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetConfigResponseUnmarshaller _instance = new GetConfigResponseUnmarshaller();
internal static GetConfigResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetConfigResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidRequestException Object
/// </summary>
public class InvalidRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidRequestException unmarshalledObject = new InvalidRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidRequestExceptionUnmarshaller _instance = new InvalidRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidRequestExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListAvailableZones Request Marshaller
/// </summary>
public class ListAvailableZonesRequestMarshaller : IMarshaller<IRequest, ListAvailableZonesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListAvailableZonesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListAvailableZonesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.ListAvailableZones";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
var content = "{}";
request.Content = System.Text.Encoding.UTF8.GetBytes(content);
return request;
}
private static ListAvailableZonesRequestMarshaller _instance = new ListAvailableZonesRequestMarshaller();
internal static ListAvailableZonesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListAvailableZonesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListAvailableZones operation
/// </summary>
public class ListAvailableZonesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListAvailableZonesResponse response = new ListAvailableZonesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AZList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.AZList = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListAvailableZonesResponseUnmarshaller _instance = new ListAvailableZonesResponseUnmarshaller();
internal static ListAvailableZonesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListAvailableZonesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListHapgs Request Marshaller
/// </summary>
public class ListHapgsRequestMarshaller : IMarshaller<IRequest, ListHapgsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListHapgsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListHapgsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.ListHapgs";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListHapgsRequestMarshaller _instance = new ListHapgsRequestMarshaller();
internal static ListHapgsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListHapgsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListHapgs operation
/// </summary>
public class ListHapgsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListHapgsResponse response = new ListHapgsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("HapgList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.HapgList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException"))
{
return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException"))
{
return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListHapgsResponseUnmarshaller _instance = new ListHapgsResponseUnmarshaller();
internal static ListHapgsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListHapgsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 cloudhsm-2014-05-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudHSM.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListHsms Request Marshaller
/// </summary>
public class ListHsmsRequestMarshaller : IMarshaller<IRequest, ListHsmsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListHsmsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListHsmsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM");
string target = "CloudHsmFrontendService.ListHsms";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListHsmsRequestMarshaller _instance = new ListHsmsRequestMarshaller();
internal static ListHsmsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListHsmsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.