put_account_setting
async
¶
put_account_setting(
name: AccountSettingName,
value: AccountSettingValue,
*,
config_overrides: Optional[AsyncECRClientConfig] = None,
) -> PutAccountSettingResponse
Allows you to change the basic scan type version or registry policy scope.
Parameters:
-
name(AccountSettingName) –The name of the account setting, such as
BASIC_SCAN_TYPE_VERSION,REGISTRY_POLICY_SCOPE, orBLOB_MOUNTING. -
value(AccountSettingValue) –Setting value that is specified. Valid value for basic scan type:
AWS_NATIVE. Valid values for registry policy scope:V2. Valid values for blob mounting:ENABLEDorDISABLED.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
LimitExceededException–The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.
-
ServerException–These errors are usually caused by a server-side issue.
-
ValidationException–There was an exception validating this request.
-
UnknownServiceError–The service returned an error code this client does not model.