lib/aws-sdk-ecr/client.rb in aws-sdk-ecr-1.79.0 vs lib/aws-sdk-ecr/client.rb in aws-sdk-ecr-1.80.0

- old
+ new

@@ -1034,11 +1034,14 @@ # creation scenarios that this template will apply towards. The two # supported scenarios are `PULL_THROUGH_CACHE` and `REPLICATION` # # @option params [String] :custom_role_arn # The ARN of the role to be assumed by Amazon ECR. This role must be in - # the same account as the registry that you are configuring. + # the same account as the registry that you are configuring. Amazon ECR + # will assume your supplied role when the customRoleArn is specified. + # When this field isn't specified, Amazon ECR will use the + # service-linked role for the repository creation template. # # @return [Types::CreateRepositoryCreationTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateRepositoryCreationTemplateResponse#registry_id #registry_id} => String # * {Types::CreateRepositoryCreationTemplateResponse#repository_creation_template #repository_creation_template} => Types::RepositoryCreationTemplate @@ -2072,10 +2075,40 @@ def describe_repository_creation_templates(params = {}, options = {}) req = build_request(:describe_repository_creation_templates, params) req.send_request(options) end + # Retrieves the basic scan type version name. + # + # @option params [required, String] :name + # Basic scan type version name. + # + # @return [Types::GetAccountSettingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetAccountSettingResponse#name #name} => String + # * {Types::GetAccountSettingResponse#value #value} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_account_setting({ + # name: "AccountSettingName", # required + # }) + # + # @example Response structure + # + # resp.name #=> String + # resp.value #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAccountSetting AWS API Documentation + # + # @overload get_account_setting(params = {}) + # @param [Hash] params ({}) + def get_account_setting(params = {}, options = {}) + req = build_request(:get_account_setting, params) + req.send_request(options) + end + # Retrieves an authorization token. An authorization token represents # your IAM authentication credentials and can be used to access any # Amazon ECR registry that your IAM principal has access to. The # authorization token is valid for 12 hours. # @@ -2608,10 +2641,46 @@ def list_tags_for_resource(params = {}, options = {}) req = build_request(:list_tags_for_resource, params) req.send_request(options) end + # Allows you to change the basic scan type version by setting the `name` + # parameter to either `CLAIR` to `AWS_NATIVE`. + # + # @option params [required, String] :name + # Basic scan type version name. + # + # @option params [required, String] :value + # Setting value that determines what basic scan type is being used: + # `AWS_NATIVE` or `CLAIR`. + # + # @return [Types::PutAccountSettingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::PutAccountSettingResponse#name #name} => String + # * {Types::PutAccountSettingResponse#value #value} => String + # + # @example Request syntax with placeholder values + # + # resp = client.put_account_setting({ + # name: "AccountSettingName", # required + # value: "AccountSettingValue", # required + # }) + # + # @example Response structure + # + # resp.name #=> String + # resp.value #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutAccountSetting AWS API Documentation + # + # @overload put_account_setting(params = {}) + # @param [Hash] params ({}) + def put_account_setting(params = {}, options = {}) + req = build_request(:put_account_setting, params) + req.send_request(options) + end + # Creates or updates the image manifest and tags associated with an # image. # # When an image is pushed and all new image layers have been uploaded, # the PutImage API is called once to create or update the image manifest @@ -3337,11 +3406,14 @@ # repository creation scenarios that this template will apply towards. # The two supported scenarios are `PULL_THROUGH_CACHE` and `REPLICATION` # # @option params [String] :custom_role_arn # The ARN of the role to be assumed by Amazon ECR. This role must be in - # the same account as the registry that you are configuring. + # the same account as the registry that you are configuring. Amazon ECR + # will assume your supplied role when the customRoleArn is specified. + # When this field isn't specified, Amazon ECR will use the + # service-linked role for the repository creation template. # # @return [Types::UpdateRepositoryCreationTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateRepositoryCreationTemplateResponse#registry_id #registry_id} => String # * {Types::UpdateRepositoryCreationTemplateResponse#repository_creation_template #repository_creation_template} => Types::RepositoryCreationTemplate @@ -3569,10 +3641,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-ecr' - context[:gem_version] = '1.79.0' + context[:gem_version] = '1.80.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #