lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.1.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.2.0
- old
+ new
@@ -181,11 +181,11 @@
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String
# resp.location #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateCloudFrontOriginAccessIdentity2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateCloudFrontOriginAccessIdentity2017_10_30 AWS API Documentation
#
# @overload create_cloud_front_origin_access_identity(params = {})
# @param [Hash] params ({})
def create_cloud_front_origin_access_identity(params = {}, options = {})
req = build_request(:create_cloud_front_origin_access_identity, params)
@@ -288,15 +288,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# cache_behaviors: {
# quantity: 1, # required
# items: [
# {
@@ -341,15 +342,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# ],
# },
# custom_error_responses: {
# quantity: 1, # required
@@ -461,10 +463,11 @@
# resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -496,10 +499,11 @@
# resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items #=> Array
# resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String
# resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String
@@ -526,11 +530,11 @@
# resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
# resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
# resp.location #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateDistribution2017_10_30 AWS API Documentation
#
# @overload create_distribution(params = {})
# @param [Hash] params ({})
def create_distribution(params = {}, options = {})
req = build_request(:create_distribution, params)
@@ -633,15 +637,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# cache_behaviors: {
# quantity: 1, # required
# items: [
# {
@@ -686,15 +691,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# ],
# },
# custom_error_responses: {
# quantity: 1, # required
@@ -815,10 +821,11 @@
# resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -850,10 +857,11 @@
# resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items #=> Array
# resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String
# resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String
@@ -880,19 +888,153 @@
# resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
# resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
# resp.location #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateDistributionWithTags2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateDistributionWithTags2017_10_30 AWS API Documentation
#
# @overload create_distribution_with_tags(params = {})
# @param [Hash] params ({})
def create_distribution_with_tags(params = {}, options = {})
req = build_request(:create_distribution_with_tags, params)
req.send_request(options)
end
+ # Create a new field-level encryption configuration.
+ #
+ # @option params [required, Types::FieldLevelEncryptionConfig] :field_level_encryption_config
+ # The request to create a new field-level encryption configuration.
+ #
+ # @return [Types::CreateFieldLevelEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::CreateFieldLevelEncryptionConfigResult#field_level_encryption #field_level_encryption} => Types::FieldLevelEncryption
+ # * {Types::CreateFieldLevelEncryptionConfigResult#location #location} => String
+ # * {Types::CreateFieldLevelEncryptionConfigResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.create_field_level_encryption_config({
+ # field_level_encryption_config: { # required
+ # caller_reference: "string", # required
+ # comment: "string",
+ # query_arg_profile_config: {
+ # forward_when_query_arg_profile_is_unknown: false, # required
+ # query_arg_profiles: {
+ # quantity: 1, # required
+ # items: [
+ # {
+ # query_arg: "string", # required
+ # profile_id: "string", # required
+ # },
+ # ],
+ # },
+ # },
+ # content_type_profile_config: {
+ # forward_when_content_type_is_unknown: false, # required
+ # content_type_profiles: {
+ # quantity: 1, # required
+ # items: [
+ # {
+ # format: "URLEncoded", # required, accepts URLEncoded
+ # profile_id: "string",
+ # content_type: "string", # required
+ # },
+ # ],
+ # },
+ # },
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption.id #=> String
+ # resp.field_level_encryption.last_modified_time #=> Time
+ # resp.field_level_encryption.field_level_encryption_config.caller_reference #=> String
+ # resp.field_level_encryption.field_level_encryption_config.comment #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.forward_when_query_arg_profile_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].query_arg #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.forward_when_content_type_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded"
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
+ # resp.location #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateFieldLevelEncryptionConfig2017_10_30 AWS API Documentation
+ #
+ # @overload create_field_level_encryption_config(params = {})
+ # @param [Hash] params ({})
+ def create_field_level_encryption_config(params = {}, options = {})
+ req = build_request(:create_field_level_encryption_config, params)
+ req.send_request(options)
+ end
+
+ # Create a field-level encryption profile.
+ #
+ # @option params [required, Types::FieldLevelEncryptionProfileConfig] :field_level_encryption_profile_config
+ # The request to create a field-level encryption profile.
+ #
+ # @return [Types::CreateFieldLevelEncryptionProfileResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::CreateFieldLevelEncryptionProfileResult#field_level_encryption_profile #field_level_encryption_profile} => Types::FieldLevelEncryptionProfile
+ # * {Types::CreateFieldLevelEncryptionProfileResult#location #location} => String
+ # * {Types::CreateFieldLevelEncryptionProfileResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.create_field_level_encryption_profile({
+ # field_level_encryption_profile_config: { # required
+ # name: "string", # required
+ # caller_reference: "string", # required
+ # comment: "string",
+ # encryption_entities: { # required
+ # quantity: 1, # required
+ # items: [
+ # {
+ # public_key_id: "string", # required
+ # provider_id: "string", # required
+ # field_patterns: { # required
+ # quantity: 1, # required
+ # items: ["string"],
+ # },
+ # },
+ # ],
+ # },
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_profile.id #=> String
+ # resp.field_level_encryption_profile.last_modified_time #=> Time
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.name #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.caller_reference #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.comment #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].public_key_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].provider_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
+ # resp.location #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateFieldLevelEncryptionProfile2017_10_30 AWS API Documentation
+ #
+ # @overload create_field_level_encryption_profile(params = {})
+ # @param [Hash] params ({})
+ def create_field_level_encryption_profile(params = {}, options = {})
+ req = build_request(:create_field_level_encryption_profile, params)
+ req.send_request(options)
+ end
+
# Create a new invalidation.
#
# @option params [required, String] :distribution_id
# The distribution's id.
#
@@ -926,19 +1068,63 @@
# resp.invalidation.invalidation_batch.paths.quantity #=> Integer
# resp.invalidation.invalidation_batch.paths.items #=> Array
# resp.invalidation.invalidation_batch.paths.items[0] #=> String
# resp.invalidation.invalidation_batch.caller_reference #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateInvalidation2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateInvalidation2017_10_30 AWS API Documentation
#
# @overload create_invalidation(params = {})
# @param [Hash] params ({})
def create_invalidation(params = {}, options = {})
req = build_request(:create_invalidation, params)
req.send_request(options)
end
+ # Add a new public key to CloudFront to use, for example, for
+ # field-level encryption. You can add a maximum of 10 public keys with
+ # one AWS account.
+ #
+ # @option params [required, Types::PublicKeyConfig] :public_key_config
+ # The request to add a public key to CloudFront.
+ #
+ # @return [Types::CreatePublicKeyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::CreatePublicKeyResult#public_key #public_key} => Types::PublicKey
+ # * {Types::CreatePublicKeyResult#location #location} => String
+ # * {Types::CreatePublicKeyResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.create_public_key({
+ # public_key_config: { # required
+ # caller_reference: "string", # required
+ # name: "string", # required
+ # encoded_key: "string", # required
+ # comment: "string",
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.public_key.id #=> String
+ # resp.public_key.created_time #=> Time
+ # resp.public_key.public_key_config.caller_reference #=> String
+ # resp.public_key.public_key_config.name #=> String
+ # resp.public_key.public_key_config.encoded_key #=> String
+ # resp.public_key.public_key_config.comment #=> String
+ # resp.location #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreatePublicKey2017_10_30 AWS API Documentation
+ #
+ # @overload create_public_key(params = {})
+ # @param [Hash] params ({})
+ def create_public_key(params = {}, options = {})
+ req = build_request(:create_public_key, params)
+ req.send_request(options)
+ end
+
# Creates a new RMTP distribution. An RTMP distribution is similar to a
# web distribution, but an RTMP distribution streams media files using
# the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files
# using HTTP.
#
@@ -1041,11 +1227,11 @@
# resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
# resp.location #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateStreamingDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateStreamingDistribution2017_10_30 AWS API Documentation
#
# @overload create_streaming_distribution(params = {})
# @param [Hash] params ({})
def create_streaming_distribution(params = {}, options = {})
req = build_request(:create_streaming_distribution, params)
@@ -1133,11 +1319,11 @@
# resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
# resp.location #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/CreateStreamingDistributionWithTags2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/CreateStreamingDistributionWithTags2017_10_30 AWS API Documentation
#
# @overload create_streaming_distribution_with_tags(params = {})
# @param [Hash] params ({})
def create_streaming_distribution_with_tags(params = {}, options = {})
req = build_request(:create_streaming_distribution_with_tags, params)
@@ -1160,11 +1346,11 @@
# resp = client.delete_cloud_front_origin_access_identity({
# id: "string", # required
# if_match: "string",
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/DeleteCloudFrontOriginAccessIdentity2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteCloudFrontOriginAccessIdentity2017_10_30 AWS API Documentation
#
# @overload delete_cloud_front_origin_access_identity(params = {})
# @param [Hash] params ({})
def delete_cloud_front_origin_access_identity(params = {}, options = {})
req = build_request(:delete_cloud_front_origin_access_identity, params)
@@ -1187,30 +1373,111 @@
# resp = client.delete_distribution({
# id: "string", # required
# if_match: "string",
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/DeleteDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteDistribution2017_10_30 AWS API Documentation
#
# @overload delete_distribution(params = {})
# @param [Hash] params ({})
def delete_distribution(params = {}, options = {})
req = build_request(:delete_distribution, params)
req.send_request(options)
end
+ # Remove a field-level encryption configuration.
+ #
+ # @option params [required, String] :id
+ # The ID of the configuration you want to delete from CloudFront.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # configuration identity to delete. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.delete_field_level_encryption_config({
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteFieldLevelEncryptionConfig2017_10_30 AWS API Documentation
+ #
+ # @overload delete_field_level_encryption_config(params = {})
+ # @param [Hash] params ({})
+ def delete_field_level_encryption_config(params = {}, options = {})
+ req = build_request(:delete_field_level_encryption_config, params)
+ req.send_request(options)
+ end
+
+ # Remove a field-level encryption profile.
+ #
+ # @option params [required, String] :id
+ # Request the ID of the profile you want to delete from CloudFront.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # profile to delete. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.delete_field_level_encryption_profile({
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteFieldLevelEncryptionProfile2017_10_30 AWS API Documentation
+ #
+ # @overload delete_field_level_encryption_profile(params = {})
+ # @param [Hash] params ({})
+ def delete_field_level_encryption_profile(params = {}, options = {})
+ req = build_request(:delete_field_level_encryption_profile, params)
+ req.send_request(options)
+ end
+
+ # Remove a public key you previously added to CloudFront.
+ #
+ # @option params [required, String] :id
+ # The ID of the public key you want to remove from CloudFront.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # public key identity to delete. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.delete_public_key({
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeletePublicKey2017_10_30 AWS API Documentation
+ #
+ # @overload delete_public_key(params = {})
+ # @param [Hash] params ({})
+ def delete_public_key(params = {}, options = {})
+ req = build_request(:delete_public_key, params)
+ req.send_request(options)
+ end
+
# @option params [required, String] :role_name
#
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.delete_service_linked_role({
# role_name: "string", # required
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/DeleteServiceLinkedRole2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteServiceLinkedRole2017_10_30 AWS API Documentation
#
# @overload delete_service_linked_role(params = {})
# @param [Hash] params ({})
def delete_service_linked_role(params = {}, options = {})
req = build_request(:delete_service_linked_role, params)
@@ -1276,11 +1543,11 @@
# resp = client.delete_streaming_distribution({
# id: "string", # required
# if_match: "string",
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/DeleteStreamingDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteStreamingDistribution2017_10_30 AWS API Documentation
#
# @overload delete_streaming_distribution(params = {})
# @param [Hash] params ({})
def delete_streaming_distribution(params = {}, options = {})
req = build_request(:delete_streaming_distribution, params)
@@ -1309,11 +1576,11 @@
# resp.cloud_front_origin_access_identity.s3_canonical_user_id #=> String
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetCloudFrontOriginAccessIdentity2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetCloudFrontOriginAccessIdentity2017_10_30 AWS API Documentation
#
# @overload get_cloud_front_origin_access_identity(params = {})
# @param [Hash] params ({})
def get_cloud_front_origin_access_identity(params = {}, options = {})
req = build_request(:get_cloud_front_origin_access_identity, params)
@@ -1340,11 +1607,11 @@
#
# resp.cloud_front_origin_access_identity_config.caller_reference #=> String
# resp.cloud_front_origin_access_identity_config.comment #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetCloudFrontOriginAccessIdentityConfig2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetCloudFrontOriginAccessIdentityConfig2017_10_30 AWS API Documentation
#
# @overload get_cloud_front_origin_access_identity_config(params = {})
# @param [Hash] params ({})
def get_cloud_front_origin_access_identity_config(params = {}, options = {})
req = build_request(:get_cloud_front_origin_access_identity_config, params)
@@ -1435,10 +1702,11 @@
# resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -1470,10 +1738,11 @@
# resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items #=> Array
# resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String
# resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String
@@ -1499,11 +1768,11 @@
# resp.distribution.distribution_config.web_acl_id #=> String
# resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
# resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetDistribution2017_10_30 AWS API Documentation
#
# @overload get_distribution(params = {})
# @param [Hash] params ({})
def get_distribution(params = {}, options = {})
req = build_request(:get_distribution, params)
@@ -1581,10 +1850,11 @@
# resp.distribution_config.default_cache_behavior.compress #=> Boolean
# resp.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution_config.cache_behaviors.quantity #=> Integer
# resp.distribution_config.cache_behaviors.items #=> Array
# resp.distribution_config.cache_behaviors.items[0].path_pattern #=> String
# resp.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -1616,10 +1886,11 @@
# resp.distribution_config.cache_behaviors.items[0].compress #=> Boolean
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution_config.custom_error_responses.quantity #=> Integer
# resp.distribution_config.custom_error_responses.items #=> Array
# resp.distribution_config.custom_error_responses.items[0].error_code #=> Integer
# resp.distribution_config.custom_error_responses.items[0].response_page_path #=> String
# resp.distribution_config.custom_error_responses.items[0].response_code #=> String
@@ -1645,19 +1916,188 @@
# resp.distribution_config.web_acl_id #=> String
# resp.distribution_config.http_version #=> String, one of "http1.1", "http2"
# resp.distribution_config.is_ipv6_enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetDistributionConfig2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetDistributionConfig2017_10_30 AWS API Documentation
#
# @overload get_distribution_config(params = {})
# @param [Hash] params ({})
def get_distribution_config(params = {}, options = {})
req = build_request(:get_distribution_config, params)
req.send_request(options)
end
+ # Get the field-level encryption configuration information.
+ #
+ # @option params [required, String] :id
+ # Request the ID for the field-level encryption configuration
+ # information.
+ #
+ # @return [Types::GetFieldLevelEncryptionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFieldLevelEncryptionResult#field_level_encryption #field_level_encryption} => Types::FieldLevelEncryption
+ # * {Types::GetFieldLevelEncryptionResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_field_level_encryption({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption.id #=> String
+ # resp.field_level_encryption.last_modified_time #=> Time
+ # resp.field_level_encryption.field_level_encryption_config.caller_reference #=> String
+ # resp.field_level_encryption.field_level_encryption_config.comment #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.forward_when_query_arg_profile_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].query_arg #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.forward_when_content_type_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded"
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetFieldLevelEncryption2017_10_30 AWS API Documentation
+ #
+ # @overload get_field_level_encryption(params = {})
+ # @param [Hash] params ({})
+ def get_field_level_encryption(params = {}, options = {})
+ req = build_request(:get_field_level_encryption, params)
+ req.send_request(options)
+ end
+
+ # Get the field-level encryption configuration information.
+ #
+ # @option params [required, String] :id
+ # Request the ID for the field-level encryption configuration
+ # information.
+ #
+ # @return [Types::GetFieldLevelEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFieldLevelEncryptionConfigResult#field_level_encryption_config #field_level_encryption_config} => Types::FieldLevelEncryptionConfig
+ # * {Types::GetFieldLevelEncryptionConfigResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_field_level_encryption_config({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_config.caller_reference #=> String
+ # resp.field_level_encryption_config.comment #=> String
+ # resp.field_level_encryption_config.query_arg_profile_config.forward_when_query_arg_profile_is_unknown #=> Boolean
+ # resp.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.quantity #=> Integer
+ # resp.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items #=> Array
+ # resp.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].query_arg #=> String
+ # resp.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption_config.content_type_profile_config.forward_when_content_type_is_unknown #=> Boolean
+ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.quantity #=> Integer
+ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items #=> Array
+ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded"
+ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetFieldLevelEncryptionConfig2017_10_30 AWS API Documentation
+ #
+ # @overload get_field_level_encryption_config(params = {})
+ # @param [Hash] params ({})
+ def get_field_level_encryption_config(params = {}, options = {})
+ req = build_request(:get_field_level_encryption_config, params)
+ req.send_request(options)
+ end
+
+ # Get the field-level encryption profile information.
+ #
+ # @option params [required, String] :id
+ # Get the ID for the field-level encryption profile information.
+ #
+ # @return [Types::GetFieldLevelEncryptionProfileResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFieldLevelEncryptionProfileResult#field_level_encryption_profile #field_level_encryption_profile} => Types::FieldLevelEncryptionProfile
+ # * {Types::GetFieldLevelEncryptionProfileResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_field_level_encryption_profile({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_profile.id #=> String
+ # resp.field_level_encryption_profile.last_modified_time #=> Time
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.name #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.caller_reference #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.comment #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].public_key_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].provider_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetFieldLevelEncryptionProfile2017_10_30 AWS API Documentation
+ #
+ # @overload get_field_level_encryption_profile(params = {})
+ # @param [Hash] params ({})
+ def get_field_level_encryption_profile(params = {}, options = {})
+ req = build_request(:get_field_level_encryption_profile, params)
+ req.send_request(options)
+ end
+
+ # Get the field-level encryption profile configuration information.
+ #
+ # @option params [required, String] :id
+ # Get the ID for the field-level encryption profile configuration
+ # information.
+ #
+ # @return [Types::GetFieldLevelEncryptionProfileConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFieldLevelEncryptionProfileConfigResult#field_level_encryption_profile_config #field_level_encryption_profile_config} => Types::FieldLevelEncryptionProfileConfig
+ # * {Types::GetFieldLevelEncryptionProfileConfigResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_field_level_encryption_profile_config({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_profile_config.name #=> String
+ # resp.field_level_encryption_profile_config.caller_reference #=> String
+ # resp.field_level_encryption_profile_config.comment #=> String
+ # resp.field_level_encryption_profile_config.encryption_entities.quantity #=> Integer
+ # resp.field_level_encryption_profile_config.encryption_entities.items #=> Array
+ # resp.field_level_encryption_profile_config.encryption_entities.items[0].public_key_id #=> String
+ # resp.field_level_encryption_profile_config.encryption_entities.items[0].provider_id #=> String
+ # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer
+ # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array
+ # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetFieldLevelEncryptionProfileConfig2017_10_30 AWS API Documentation
+ #
+ # @overload get_field_level_encryption_profile_config(params = {})
+ # @param [Hash] params ({})
+ def get_field_level_encryption_profile_config(params = {}, options = {})
+ req = build_request(:get_field_level_encryption_profile_config, params)
+ req.send_request(options)
+ end
+
# Get the information about an invalidation.
#
# @option params [required, String] :distribution_id
# The distribution's ID.
#
@@ -1684,19 +2124,87 @@
# resp.invalidation.invalidation_batch.paths.quantity #=> Integer
# resp.invalidation.invalidation_batch.paths.items #=> Array
# resp.invalidation.invalidation_batch.paths.items[0] #=> String
# resp.invalidation.invalidation_batch.caller_reference #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetInvalidation2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetInvalidation2017_10_30 AWS API Documentation
#
# @overload get_invalidation(params = {})
# @param [Hash] params ({})
def get_invalidation(params = {}, options = {})
req = build_request(:get_invalidation, params)
req.send_request(options)
end
+ # Get the public key information.
+ #
+ # @option params [required, String] :id
+ # Request the ID for the public key.
+ #
+ # @return [Types::GetPublicKeyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetPublicKeyResult#public_key #public_key} => Types::PublicKey
+ # * {Types::GetPublicKeyResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_public_key({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.public_key.id #=> String
+ # resp.public_key.created_time #=> Time
+ # resp.public_key.public_key_config.caller_reference #=> String
+ # resp.public_key.public_key_config.name #=> String
+ # resp.public_key.public_key_config.encoded_key #=> String
+ # resp.public_key.public_key_config.comment #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetPublicKey2017_10_30 AWS API Documentation
+ #
+ # @overload get_public_key(params = {})
+ # @param [Hash] params ({})
+ def get_public_key(params = {}, options = {})
+ req = build_request(:get_public_key, params)
+ req.send_request(options)
+ end
+
+ # Return public key configuration informaation
+ #
+ # @option params [required, String] :id
+ # Request the ID for the public key configuration.
+ #
+ # @return [Types::GetPublicKeyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetPublicKeyConfigResult#public_key_config #public_key_config} => Types::PublicKeyConfig
+ # * {Types::GetPublicKeyConfigResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_public_key_config({
+ # id: "string", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.public_key_config.caller_reference #=> String
+ # resp.public_key_config.name #=> String
+ # resp.public_key_config.encoded_key #=> String
+ # resp.public_key_config.comment #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetPublicKeyConfig2017_10_30 AWS API Documentation
+ #
+ # @overload get_public_key_config(params = {})
+ # @param [Hash] params ({})
+ def get_public_key_config(params = {}, options = {})
+ req = build_request(:get_public_key_config, params)
+ req.send_request(options)
+ end
+
# Gets information about a specified RTMP distribution, including the
# distribution configuration.
#
# @option params [required, String] :id
# The streaming distribution's ID.
@@ -1742,11 +2250,11 @@
# resp.streaming_distribution.streaming_distribution_config.trusted_signers.items[0] #=> String
# resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetStreamingDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetStreamingDistribution2017_10_30 AWS API Documentation
#
# @overload get_streaming_distribution(params = {})
# @param [Hash] params ({})
def get_streaming_distribution(params = {}, options = {})
req = build_request(:get_streaming_distribution, params)
@@ -1787,11 +2295,11 @@
# resp.streaming_distribution_config.trusted_signers.items[0] #=> String
# resp.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution_config.enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/GetStreamingDistributionConfig2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/GetStreamingDistributionConfig2017_10_30 AWS API Documentation
#
# @overload get_streaming_distribution_config(params = {})
# @param [Hash] params ({})
def get_streaming_distribution_config(params = {}, options = {})
req = build_request(:get_streaming_distribution_config, params)
@@ -1833,11 +2341,11 @@
# resp.cloud_front_origin_access_identity_list.items #=> Array
# resp.cloud_front_origin_access_identity_list.items[0].id #=> String
# resp.cloud_front_origin_access_identity_list.items[0].s3_canonical_user_id #=> String
# resp.cloud_front_origin_access_identity_list.items[0].comment #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListCloudFrontOriginAccessIdentities2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListCloudFrontOriginAccessIdentities2017_10_30 AWS API Documentation
#
# @overload list_cloud_front_origin_access_identities(params = {})
# @param [Hash] params ({})
def list_cloud_front_origin_access_identities(params = {}, options = {})
req = build_request(:list_cloud_front_origin_access_identities, params)
@@ -1931,10 +2439,11 @@
# resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer
# resp.distribution_list.items[0].cache_behaviors.items #=> Array
# resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -1966,10 +2475,11 @@
# resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer
# resp.distribution_list.items[0].custom_error_responses.items #=> Array
# resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer
# resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String
# resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String
@@ -1990,11 +2500,11 @@
# resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
# resp.distribution_list.items[0].web_acl_id #=> String
# resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
# resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListDistributions2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListDistributions2017_10_30 AWS API Documentation
#
# @overload list_distributions(params = {})
# @param [Hash] params ({})
def list_distributions(params = {}, options = {})
req = build_request(:list_distributions, params)
@@ -2097,10 +2607,11 @@
# resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer
# resp.distribution_list.items[0].cache_behaviors.items #=> Array
# resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -2132,10 +2643,11 @@
# resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer
# resp.distribution_list.items[0].custom_error_responses.items #=> Array
# resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer
# resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String
# resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String
@@ -2156,19 +2668,127 @@
# resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
# resp.distribution_list.items[0].web_acl_id #=> String
# resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
# resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListDistributionsByWebACLId2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListDistributionsByWebACLId2017_10_30 AWS API Documentation
#
# @overload list_distributions_by_web_acl_id(params = {})
# @param [Hash] params ({})
def list_distributions_by_web_acl_id(params = {}, options = {})
req = build_request(:list_distributions_by_web_acl_id, params)
req.send_request(options)
end
+ # List all field-level encryption configurations that have been created
+ # in CloudFront for this account.
+ #
+ # @option params [String] :marker
+ # Use this when paginating results to indicate where to begin in your
+ # list of configurations. The results include configurations in the list
+ # that occur after the marker. To get the next page of results, set the
+ # `Marker` to the value of the `NextMarker` from the current page's
+ # response (which is also the ID of the last configuration on that
+ # page).
+ #
+ # @option params [Integer] :max_items
+ # The maximum number of field-level encryption configurations you want
+ # in the response body.
+ #
+ # @return [Types::ListFieldLevelEncryptionConfigsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ListFieldLevelEncryptionConfigsResult#field_level_encryption_list #field_level_encryption_list} => Types::FieldLevelEncryptionList
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.list_field_level_encryption_configs({
+ # marker: "string",
+ # max_items: 1,
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_list.next_marker #=> String
+ # resp.field_level_encryption_list.max_items #=> Integer
+ # resp.field_level_encryption_list.quantity #=> Integer
+ # resp.field_level_encryption_list.items #=> Array
+ # resp.field_level_encryption_list.items[0].id #=> String
+ # resp.field_level_encryption_list.items[0].last_modified_time #=> Time
+ # resp.field_level_encryption_list.items[0].comment #=> String
+ # resp.field_level_encryption_list.items[0].query_arg_profile_config.forward_when_query_arg_profile_is_unknown #=> Boolean
+ # resp.field_level_encryption_list.items[0].query_arg_profile_config.query_arg_profiles.quantity #=> Integer
+ # resp.field_level_encryption_list.items[0].query_arg_profile_config.query_arg_profiles.items #=> Array
+ # resp.field_level_encryption_list.items[0].query_arg_profile_config.query_arg_profiles.items[0].query_arg #=> String
+ # resp.field_level_encryption_list.items[0].query_arg_profile_config.query_arg_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.forward_when_content_type_is_unknown #=> Boolean
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.quantity #=> Integer
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items #=> Array
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded"
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].content_type #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListFieldLevelEncryptionConfigs2017_10_30 AWS API Documentation
+ #
+ # @overload list_field_level_encryption_configs(params = {})
+ # @param [Hash] params ({})
+ def list_field_level_encryption_configs(params = {}, options = {})
+ req = build_request(:list_field_level_encryption_configs, params)
+ req.send_request(options)
+ end
+
+ # Request a list of field-level encryption profiles that have been
+ # created in CloudFront for this account.
+ #
+ # @option params [String] :marker
+ # Use this when paginating results to indicate where to begin in your
+ # list of profiles. The results include profiles in the list that occur
+ # after the marker. To get the next page of results, set the `Marker` to
+ # the value of the `NextMarker` from the current page's response (which
+ # is also the ID of the last profile on that page).
+ #
+ # @option params [Integer] :max_items
+ # The maximum number of field-level encryption profiles you want in the
+ # response body.
+ #
+ # @return [Types::ListFieldLevelEncryptionProfilesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ListFieldLevelEncryptionProfilesResult#field_level_encryption_profile_list #field_level_encryption_profile_list} => Types::FieldLevelEncryptionProfileList
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.list_field_level_encryption_profiles({
+ # marker: "string",
+ # max_items: 1,
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_profile_list.next_marker #=> String
+ # resp.field_level_encryption_profile_list.max_items #=> Integer
+ # resp.field_level_encryption_profile_list.quantity #=> Integer
+ # resp.field_level_encryption_profile_list.items #=> Array
+ # resp.field_level_encryption_profile_list.items[0].id #=> String
+ # resp.field_level_encryption_profile_list.items[0].last_modified_time #=> Time
+ # resp.field_level_encryption_profile_list.items[0].name #=> String
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.quantity #=> Integer
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items #=> Array
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].public_key_id #=> String
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].provider_id #=> String
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.quantity #=> Integer
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.items #=> Array
+ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.items[0] #=> String
+ # resp.field_level_encryption_profile_list.items[0].comment #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListFieldLevelEncryptionProfiles2017_10_30 AWS API Documentation
+ #
+ # @overload list_field_level_encryption_profiles(params = {})
+ # @param [Hash] params ({})
+ def list_field_level_encryption_profiles(params = {}, options = {})
+ req = build_request(:list_field_level_encryption_profiles, params)
+ req.send_request(options)
+ end
+
# Lists invalidation batches.
#
# @option params [required, String] :distribution_id
# The distribution's ID.
#
@@ -2208,19 +2828,64 @@
# resp.invalidation_list.items #=> Array
# resp.invalidation_list.items[0].id #=> String
# resp.invalidation_list.items[0].create_time #=> Time
# resp.invalidation_list.items[0].status #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListInvalidations2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListInvalidations2017_10_30 AWS API Documentation
#
# @overload list_invalidations(params = {})
# @param [Hash] params ({})
def list_invalidations(params = {}, options = {})
req = build_request(:list_invalidations, params)
req.send_request(options)
end
+ # List all public keys that have been added to CloudFront for this
+ # account.
+ #
+ # @option params [String] :marker
+ # Use this when paginating results to indicate where to begin in your
+ # list of public keys. The results include public keys in the list that
+ # occur after the marker. To get the next page of results, set the
+ # `Marker` to the value of the `NextMarker` from the current page's
+ # response (which is also the ID of the last public key on that page).
+ #
+ # @option params [Integer] :max_items
+ # The maximum number of public keys you want in the response body.
+ #
+ # @return [Types::ListPublicKeysResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ListPublicKeysResult#public_key_list #public_key_list} => Types::PublicKeyList
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.list_public_keys({
+ # marker: "string",
+ # max_items: 1,
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.public_key_list.next_marker #=> String
+ # resp.public_key_list.max_items #=> Integer
+ # resp.public_key_list.quantity #=> Integer
+ # resp.public_key_list.items #=> Array
+ # resp.public_key_list.items[0].id #=> String
+ # resp.public_key_list.items[0].name #=> String
+ # resp.public_key_list.items[0].created_time #=> Time
+ # resp.public_key_list.items[0].encoded_key #=> String
+ # resp.public_key_list.items[0].comment #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListPublicKeys2017_10_30 AWS API Documentation
+ #
+ # @overload list_public_keys(params = {})
+ # @param [Hash] params ({})
+ def list_public_keys(params = {}, options = {})
+ req = build_request(:list_public_keys, params)
+ req.send_request(options)
+ end
+
# List streaming distributions.
#
# @option params [String] :marker
# The value that you provided for the `Marker` request parameter.
#
@@ -2262,11 +2927,11 @@
# resp.streaming_distribution_list.items[0].trusted_signers.items[0] #=> String
# resp.streaming_distribution_list.items[0].comment #=> String
# resp.streaming_distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution_list.items[0].enabled #=> Boolean
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListStreamingDistributions2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListStreamingDistributions2017_10_30 AWS API Documentation
#
# @overload list_streaming_distributions(params = {})
# @param [Hash] params ({})
def list_streaming_distributions(params = {}, options = {})
req = build_request(:list_streaming_distributions, params)
@@ -2292,11 +2957,11 @@
#
# resp.tags.items #=> Array
# resp.tags.items[0].key #=> String
# resp.tags.items[0].value #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/ListTagsForResource2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/ListTagsForResource2017_10_30 AWS API Documentation
#
# @overload list_tags_for_resource(params = {})
# @param [Hash] params ({})
def list_tags_for_resource(params = {}, options = {})
req = build_request(:list_tags_for_resource, params)
@@ -2325,11 +2990,11 @@
# },
# ],
# },
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/TagResource2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/TagResource2017_10_30 AWS API Documentation
#
# @overload tag_resource(params = {})
# @param [Hash] params ({})
def tag_resource(params = {}, options = {})
req = build_request(:tag_resource, params)
@@ -2353,11 +3018,11 @@
# tag_keys: { # required
# items: ["TagKey"],
# },
# })
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/UntagResource2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UntagResource2017_10_30 AWS API Documentation
#
# @overload untag_resource(params = {})
# @param [Hash] params ({})
def untag_resource(params = {}, options = {})
req = build_request(:untag_resource, params)
@@ -2398,11 +3063,11 @@
# resp.cloud_front_origin_access_identity.s3_canonical_user_id #=> String
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String
# resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/UpdateCloudFrontOriginAccessIdentity2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdateCloudFrontOriginAccessIdentity2017_10_30 AWS API Documentation
#
# @overload update_cloud_front_origin_access_identity(params = {})
# @param [Hash] params ({})
def update_cloud_front_origin_access_identity(params = {}, options = {})
req = build_request(:update_cloud_front_origin_access_identity, params)
@@ -2572,15 +3237,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# cache_behaviors: {
# quantity: 1, # required
# items: [
# {
@@ -2625,15 +3291,16 @@
# compress: false,
# lambda_function_associations: {
# quantity: 1, # required
# items: [
# {
- # lambda_function_arn: "string",
- # event_type: "viewer-request", # accepts viewer-request, viewer-response, origin-request, origin-response
+ # lambda_function_arn: "LambdaFunctionARN", # required
+ # event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
# },
# ],
# },
+ # field_level_encryption_id: "string",
# },
# ],
# },
# custom_error_responses: {
# quantity: 1, # required
@@ -2747,10 +3414,11 @@
# resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
# resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
@@ -2782,10 +3450,11 @@
# resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
+ # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
# resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items #=> Array
# resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer
# resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String
# resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String
@@ -2811,19 +3480,217 @@
# resp.distribution.distribution_config.web_acl_id #=> String
# resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
# resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/UpdateDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdateDistribution2017_10_30 AWS API Documentation
#
# @overload update_distribution(params = {})
# @param [Hash] params ({})
def update_distribution(params = {}, options = {})
req = build_request(:update_distribution, params)
req.send_request(options)
end
+ # Update a field-level encryption configuration.
+ #
+ # @option params [required, Types::FieldLevelEncryptionConfig] :field_level_encryption_config
+ # Request to update a field-level encryption configuration.
+ #
+ # @option params [required, String] :id
+ # The ID of the configuration you want to update.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # configuration identity to update. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Types::UpdateFieldLevelEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdateFieldLevelEncryptionConfigResult#field_level_encryption #field_level_encryption} => Types::FieldLevelEncryption
+ # * {Types::UpdateFieldLevelEncryptionConfigResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_field_level_encryption_config({
+ # field_level_encryption_config: { # required
+ # caller_reference: "string", # required
+ # comment: "string",
+ # query_arg_profile_config: {
+ # forward_when_query_arg_profile_is_unknown: false, # required
+ # query_arg_profiles: {
+ # quantity: 1, # required
+ # items: [
+ # {
+ # query_arg: "string", # required
+ # profile_id: "string", # required
+ # },
+ # ],
+ # },
+ # },
+ # content_type_profile_config: {
+ # forward_when_content_type_is_unknown: false, # required
+ # content_type_profiles: {
+ # quantity: 1, # required
+ # items: [
+ # {
+ # format: "URLEncoded", # required, accepts URLEncoded
+ # profile_id: "string",
+ # content_type: "string", # required
+ # },
+ # ],
+ # },
+ # },
+ # },
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption.id #=> String
+ # resp.field_level_encryption.last_modified_time #=> Time
+ # resp.field_level_encryption.field_level_encryption_config.caller_reference #=> String
+ # resp.field_level_encryption.field_level_encryption_config.comment #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.forward_when_query_arg_profile_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].query_arg #=> String
+ # resp.field_level_encryption.field_level_encryption_config.query_arg_profile_config.query_arg_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.forward_when_content_type_is_unknown #=> Boolean
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.quantity #=> Integer
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items #=> Array
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded"
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String
+ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdateFieldLevelEncryptionConfig2017_10_30 AWS API Documentation
+ #
+ # @overload update_field_level_encryption_config(params = {})
+ # @param [Hash] params ({})
+ def update_field_level_encryption_config(params = {}, options = {})
+ req = build_request(:update_field_level_encryption_config, params)
+ req.send_request(options)
+ end
+
+ # Update a field-level encryption profile.
+ #
+ # @option params [required, Types::FieldLevelEncryptionProfileConfig] :field_level_encryption_profile_config
+ # Request to update a field-level encryption profile.
+ #
+ # @option params [required, String] :id
+ # The ID of the field-level encryption profile request.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # profile identity to update. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Types::UpdateFieldLevelEncryptionProfileResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdateFieldLevelEncryptionProfileResult#field_level_encryption_profile #field_level_encryption_profile} => Types::FieldLevelEncryptionProfile
+ # * {Types::UpdateFieldLevelEncryptionProfileResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_field_level_encryption_profile({
+ # field_level_encryption_profile_config: { # required
+ # name: "string", # required
+ # caller_reference: "string", # required
+ # comment: "string",
+ # encryption_entities: { # required
+ # quantity: 1, # required
+ # items: [
+ # {
+ # public_key_id: "string", # required
+ # provider_id: "string", # required
+ # field_patterns: { # required
+ # quantity: 1, # required
+ # items: ["string"],
+ # },
+ # },
+ # ],
+ # },
+ # },
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.field_level_encryption_profile.id #=> String
+ # resp.field_level_encryption_profile.last_modified_time #=> Time
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.name #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.caller_reference #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.comment #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].public_key_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].provider_id #=> String
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array
+ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdateFieldLevelEncryptionProfile2017_10_30 AWS API Documentation
+ #
+ # @overload update_field_level_encryption_profile(params = {})
+ # @param [Hash] params ({})
+ def update_field_level_encryption_profile(params = {}, options = {})
+ req = build_request(:update_field_level_encryption_profile, params)
+ req.send_request(options)
+ end
+
+ # Update public key information. Note that the only value you can change
+ # is the comment.
+ #
+ # @option params [required, Types::PublicKeyConfig] :public_key_config
+ # Request to update public key information.
+ #
+ # @option params [required, String] :id
+ # ID of the public key to be updated.
+ #
+ # @option params [String] :if_match
+ # The value of the `ETag` header that you received when retrieving the
+ # public key to update. For example: `E2QWRUHAPOMQZL`.
+ #
+ # @return [Types::UpdatePublicKeyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdatePublicKeyResult#public_key #public_key} => Types::PublicKey
+ # * {Types::UpdatePublicKeyResult#etag #etag} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_public_key({
+ # public_key_config: { # required
+ # caller_reference: "string", # required
+ # name: "string", # required
+ # encoded_key: "string", # required
+ # comment: "string",
+ # },
+ # id: "string", # required
+ # if_match: "string",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.public_key.id #=> String
+ # resp.public_key.created_time #=> Time
+ # resp.public_key.public_key_config.caller_reference #=> String
+ # resp.public_key.public_key_config.name #=> String
+ # resp.public_key.public_key_config.encoded_key #=> String
+ # resp.public_key.public_key_config.comment #=> String
+ # resp.etag #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdatePublicKey2017_10_30 AWS API Documentation
+ #
+ # @overload update_public_key(params = {})
+ # @param [Hash] params ({})
+ def update_public_key(params = {}, options = {})
+ req = build_request(:update_public_key, params)
+ req.send_request(options)
+ end
+
# Update a streaming distribution.
#
# @option params [required, Types::StreamingDistributionConfig] :streaming_distribution_config
# The streaming distribution's configuration information.
#
@@ -2901,11 +3768,11 @@
# resp.streaming_distribution.streaming_distribution_config.trusted_signers.items[0] #=> String
# resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All"
# resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
# resp.etag #=> String
#
- # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25/UpdateStreamingDistribution2017_03_25 AWS API Documentation
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/UpdateStreamingDistribution2017_10_30 AWS API Documentation
#
# @overload update_streaming_distribution(params = {})
# @param [Hash] params ({})
def update_streaming_distribution(params = {}, options = {})
req = build_request(:update_streaming_distribution, params)
@@ -2923,10 +3790,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-cloudfront'
- context[:gem_version] = '1.1.0'
+ context[:gem_version] = '1.2.0'
Seahorse::Client::Request.new(handlers, context)
end
# Polls an API operation until a resource enters a desired state.
#