ECR / Client / put_account_setting

put_account_setting#

ECR.Client.put_account_setting(**kwargs)#

Allows you to change the basic scan type version or registry policy scope.

See also: AWS API Documentation

Request Syntax

response = client.put_account_setting(
    name='string',
    value='string'
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the account setting, such as BASIC_SCAN_TYPE_VERSION or REGISTRY_POLICY_SCOPE.

  • value (string) –

    [REQUIRED]

    Setting value that is specified. The following are valid values for the basic scan type being used: AWS_NATIVE or CLAIR. The following are valid values for the registry policy scope being used: V1 or V2.

Return type:

dict

Returns:

Response Syntax

{
    'name': 'string',
    'value': 'string'
}

Response Structure

  • (dict) –

    • name (string) –

      Retrieves the name of the account setting.

    • value (string) –

      Retrieves the value of the specified account setting.

Exceptions