See aws package's Config type for more information on configuration options. See the SDK's documentation for more information on how to use service clients. Svc := resourcegroupstaggingapi.New(sess) Create the service's client with the session. Sess := session.Must(session.NewSession()) Create a session to share configuration, and load external configuration. These clients are safe to use concurrently. Once the service's client is created you can use it to make API requests theĪWS service. The optional Config value can be providedĪs the variadic argument for Sessions and client creation. ![]() The aws package'sĬonfig type contains several fields such as Region for the AWS Region theĬlient should make API requests too. The Session and service's client when they are constructed. Additional configuration can be applied to The Session provides configuration that can be sharedīetween multiple service clients. When creating a client for an AWS service you'll first need to have a SessionĪlready created. To use the client for AWS Resource Groups Tagging API you will first need See resourcegroupstaggingapi package documentation for more information. See for more information on this service. Services as well as permission to view and apply tags to those resources.įor more information, see Obtaining Permissions for Tagging ( ) IAM permissions, including permission to access the resources of individual To make full use of the resource groups tagging APIs, you might need additional In the AWS Resource Groups and Tag Editor User Guide. For a lists of resources that you can tag, * List all existing values for the specified key in the specified region * List all existing tag keys in the specified region for the AWS account * Use tag-based filters to search for resources located in the specified * Tag and untag supported resources located in the specified region for You can use the resource groups tagging APIs to complete the following tasks: Tagging APIs, see Obtaining Permissions for Resource Groups ( )Īnd Obtaining Permissions for Tagging ( ). For more informationĪbout tagging, see Working with Tag Editor ( )įor more information about permissions you need to use the resource groups Resource management, access management and cost allocation. Tagging can help you organize your resources and enables you to simplify Of "Stack" might be "Testing" for one and "Production" for the other. For example, if you have two AmazonĮC2 instances, you might assign both a tag key of "Stack." But the value Key and a value, both of which you define. ![]() This guide describes the API operations for the resource groups tagging.Ī tag is a label that you assign to an AWS resource. Requests to AWS Resource Groups Tagging API. Package resourcegroupstaggingapi provides the client and types for making API
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |