lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.81.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.82.0

- old
+ new

@@ -440,10 +440,24 @@ # After you create a staging distribution, you can use # `UpdateDistribution` to modify the staging distribution's # configuration. Then you can use `CreateContinuousDeploymentPolicy` to # incrementally move traffic to the staging distribution. # + # This API operation requires the following IAM permissions: + # + # * [GetDistribution][1] + # + # * [CreateDistribution][2] + # + # * [CopyDistribution][3] + # + # + # + # [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html + # [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html + # [3]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CopyDistribution.html + # # @option params [required, String] :primary_distribution_id # The identifier of the primary distribution whose configuration you are # copying. To get a distribution ID, use `ListDistributions`. # # @option params [Boolean] :staging @@ -459,10 +473,18 @@ # @option params [required, String] :caller_reference # A value that uniquely identifies a request to create a resource. This # helps to prevent CloudFront from creating a duplicate resource if you # accidentally resubmit an identical request. # + # @option params [Boolean] :enabled + # A Boolean flag to specify the state of the staging distribution when + # it's created. When you set this value to `True`, the staging + # distribution is enabled. When you set this value to `False`, the + # staging distribution is disabled. + # + # If you omit this field, the default value is `True`. + # # @return [Types::CopyDistributionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CopyDistributionResult#distribution #distribution} => Types::Distribution # * {Types::CopyDistributionResult#location #location} => String # * {Types::CopyDistributionResult#etag #etag} => String @@ -472,10 +494,11 @@ # resp = client.copy_distribution({ # primary_distribution_id: "string", # required # staging: false, # if_match: "string", # caller_reference: "string", # required + # enabled: false, # }) # # @example Response structure # # resp.distribution.id #=> String @@ -1371,12 +1394,22 @@ def create_distribution(params = {}, options = {}) req = build_request(:create_distribution, params) req.send_request(options) end - # Create a new distribution with tags. + # Create a new distribution with tags. This API operation requires the + # following IAM permissions: # + # * [CreateDistribution][1] + # + # * [TagResource][2] + # + # + # + # [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html + # [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_TagResource.html + # # @option params [required, Types::DistributionConfigWithTags] :distribution_config_with_tags # The distribution's configuration information. # # @return [Types::CreateDistributionWithTagsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -2028,21 +2061,21 @@ # # resp = client.create_function({ # name: "FunctionName", # required # function_config: { # required # comment: "string", # required - # runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0 + # runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0 # }, # function_code: "data", # required # }) # # @example Response structure # # resp.function_summary.name #=> String # resp.function_summary.status #=> String # resp.function_summary.function_config.comment #=> String - # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.function_summary.function_metadata.function_arn #=> String # resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.function_summary.function_metadata.created_time #=> Time # resp.function_summary.function_metadata.last_modified_time #=> Time # resp.location #=> String @@ -3396,11 +3429,11 @@ # @example Response structure # # resp.function_summary.name #=> String # resp.function_summary.status #=> String # resp.function_summary.function_config.comment #=> String - # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.function_summary.function_metadata.function_arn #=> String # resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.function_summary.function_metadata.created_time #=> Time # resp.function_summary.function_metadata.last_modified_time #=> Time # resp.etag #=> String @@ -6335,11 +6368,11 @@ # resp.function_list.quantity #=> Integer # resp.function_list.items #=> Array # resp.function_list.items[0].name #=> String # resp.function_list.items[0].status #=> String # resp.function_list.items[0].function_config.comment #=> String - # resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.function_list.items[0].function_metadata.function_arn #=> String # resp.function_list.items[0].function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.function_list.items[0].function_metadata.created_time #=> Time # resp.function_list.items[0].function_metadata.last_modified_time #=> Time # @@ -6922,11 +6955,11 @@ # @example Response structure # # resp.function_summary.name #=> String # resp.function_summary.status #=> String # resp.function_summary.function_config.comment #=> String - # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.function_summary.function_metadata.function_arn #=> String # resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.function_summary.function_metadata.created_time #=> Time # resp.function_summary.function_metadata.last_modified_time #=> Time # @@ -7027,11 +7060,11 @@ # @example Response structure # # resp.test_result.function_summary.name #=> String # resp.test_result.function_summary.status #=> String # resp.test_result.function_summary.function_config.comment #=> String - # resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.test_result.function_summary.function_metadata.function_arn #=> String # resp.test_result.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.test_result.function_summary.function_metadata.created_time #=> Time # resp.test_result.function_summary.function_metadata.last_modified_time #=> Time # resp.test_result.compute_utilization #=> String @@ -7833,10 +7866,21 @@ # 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. # + # This API operation requires the following IAM permissions: + # + # * [GetDistribution][1] + # + # * [UpdateDistribution][2] + # + # + # + # [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html + # [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html + # # @option params [required, String] :id # The identifier of the primary distribution to which you are copying a # staging distribution's configuration. # # @option params [String] :staging_distribution_id @@ -8245,21 +8289,21 @@ # resp = client.update_function({ # name: "string", # required # if_match: "string", # required # function_config: { # required # comment: "string", # required - # runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0 + # runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0 # }, # function_code: "data", # required # }) # # @example Response structure # # resp.function_summary.name #=> String # resp.function_summary.status #=> String # resp.function_summary.function_config.comment #=> String - # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0" + # resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0" # resp.function_summary.function_metadata.function_arn #=> String # resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE" # resp.function_summary.function_metadata.created_time #=> Time # resp.function_summary.function_metadata.last_modified_time #=> Time # resp.etag #=> String @@ -8894,10 +8938,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-cloudfront' - context[:gem_version] = '1.81.0' + context[:gem_version] = '1.82.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #