Reading a resource's current state - Cloud Control API
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Reading a resource's current state

Using a resource's primary identifier, you can call the get-resource command to retrieve detailed information about the resource. For information about retrieving a resource's primary identifier, see Identifying resources.

The information returned by get-resource includes the resource's schema, which details the current state of the resource, including property values, supported events, and necessary permissions. For more information, see Viewing resource type schemas.

The following example returns the current state of an AWS::Logs::LogGroup resource named LogGroupResourceExample. For AWS::Logs::LogGroup resources, the name of a log group is its primary identifier.

$ aws cloudcontrol get-resource --type-name AWS::Logs::LogGroup --identifier LogGroupResourceExample