Amazon EC2 Container Registry

2024/08/05 - Amazon EC2 Container Registry - 2 new api methods

Changes  Released two new APIs along with documentation updates. The GetAccountSetting API is used to view the current basic scan type version setting for your registry, while the PutAccountSetting API is used to update the basic scan type version for your registry.

GetAccountSetting (new) Link ¶

Retrieves the basic scan type version name.

See also: AWS API Documentation

Request Syntax

client.get_account_setting(
    name='string'
)
type name

string

param name

[REQUIRED]

Basic scan type version name.

rtype

dict

returns

Response Syntax

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

Response Structure

  • (dict) --

    • name (string) --

      Retrieves the basic scan type version name.

    • value (string) --

      Retrieves the value that specifies what basic scan type is being used: AWS_NATIVE or CLAIR .

PutAccountSetting (new) Link ¶

Allows you to change the basic scan type version by setting the name parameter to either CLAIR to AWS_NATIVE .

See also: AWS API Documentation

Request Syntax

client.put_account_setting(
    name='string',
    value='string'
)
type name

string

param name

[REQUIRED]

Basic scan type version name.

type value

string

param value

[REQUIRED]

Setting value that determines what basic scan type is being used: AWS_NATIVE or CLAIR .

rtype

dict

returns

Response Syntax

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

Response Structure

  • (dict) --

    • name (string) --

      Retrieves the the basic scan type version name.

    • value (string) --

      Retrieves the basic scan type value, either AWS_NATIVE or - .