Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/examples/ecs/put-account-settings.rst
1560 views
**To modify the account settings for an IAM user or IAM role**

The following ``put-account-setting`` example modifies the account settings for the specified IAM user or IAM role. ::

    aws ecs put-account-setting \
        --name serviceLongArnFormat \
        --value enabled \
        --principal-arn arn:aws:iam::123456789012:user/MyUser

Output::

    {
        "setting": {
            "name": "serviceLongArnFormat",
            "value": "enabled",
            "principalArn": "arn:aws:iam::123456789012:user/MyUser"
        }
    }