Learn R Programming

paws.compute (version 0.1.0)

ecs_delete_account_setting: Modifies the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account

Description

Modifies the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account. You can specify whether the new ARN and resource ID format are disabled for new resources that are created.

Usage

ecs_delete_account_setting(name, principalArn)

Arguments

name

[required] The resource name for which to disable the new format. 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 is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected.

principalArn

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you specify the root user, it modifies the ARN and resource ID format for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings for themselves. If this field is omitted, the setting are changed only for the authenticated user.

Request syntax

svc$delete_account_setting(
  name = "serviceLongArnFormat"|"taskLongArnFormat"|"containerInstanceLongArnFormat",
  principalArn = "string"
)

Examples

Run this code
# NOT RUN {
# This example deletes the account setting for your user for the specified
# resource type.
# }
# NOT RUN {
svc$delete_account_setting(
  name = "serviceLongArnFormat"
)
# }
# NOT RUN {
# This example deletes the account setting for a specific IAM user or IAM
# role for the specified resource type. Only the root user can view or
# modify the account settings for another user.
# }
# NOT RUN {
svc$delete_account_setting(
  name = "containerInstanceLongArnFormat",
  principalArn = "arn:aws:iam::<aws_account_id>:user/principalName"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab