amazonka-ec2-1.4.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyIdFormat

Contents

Description

Modifies the ID format for the specified resource on a per-region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created. The following resource types support longer IDs: 'instance' | reservation.

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user or as an IAM role that has permission to use this action, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Controlling Access to Longer ID Settings in the Amazon Elastic Compute Cloud User Guide.

Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

Synopsis

Creating a Request

modifyIdFormat Source

Creates a value of ModifyIdFormat with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

mifResource :: Lens' ModifyIdFormat Text Source

The type of resource.

mifUseLongIds :: Lens' ModifyIdFormat Bool Source

Indicate whether the resource should use longer IDs (17-character IDs).

Destructuring the Response

modifyIdFormatResponse :: ModifyIdFormatResponse Source

Creates a value of ModifyIdFormatResponse with the minimum fields required to make a request.