Amazon EC2 Container Service

2019/02/08 - Amazon EC2 Container Service - 1 new api methods

Changes  Amazon ECS introduces the PutAccountSettingDefault API, an API that allows a user to set the default ARN/ID format opt-in status for all the roles and users in the account. Previously, setting the account's default opt-in status required the use of the root user with the PutAccountSetting API.

PutAccountSettingDefault (new) Link ΒΆ

Modifies the ARN and resource ID format of a resource type for all IAM users on an account for which no individual account setting has been set. Enabling this setting is required to use new Amazon ECS features such as resource tagging.

See also: AWS API Documentation

Request Syntax

client.put_account_setting_default(
    name='serviceLongArnFormat'|'taskLongArnFormat'|'containerInstanceLongArnFormat',
    value='string'
)
type name

string

param name

[REQUIRED]

The resource type to enable the new format for. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks are affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances are affected.

type value

string

param value

[REQUIRED]

The account setting value for the specified principal ARN. Accepted values are enabled and disabled .

rtype

dict

returns

Response Syntax

{
    'setting': {
        'name': 'serviceLongArnFormat'|'taskLongArnFormat'|'containerInstanceLongArnFormat',
        'value': 'string',
        'principalArn': 'string'
    }
}

Response Structure

  • (dict) --

    • setting (dict) --

      The current account setting for a resource.

      • name (string) --

        The account resource name.

      • value (string) --

        The current account setting for the resource name. If enabled , then the resource will receive the new Amazon Resource Name (ARN) and resource identifier (ID) format. If disabled , then the resource will receive the old Amazon Resource Name (ARN) and resource identifier (ID) format.

      • principalArn (string) --

        The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user is assumed.