{
  "version":"2.0",
  "metadata":{
    "apiVersion":"2017-01-26",
    "endpointPrefix":"tagging",
    "jsonVersion":"1.1",
    "protocol":"json",
    "protocols":["json"],
    "serviceFullName":"AWS Resource Groups Tagging API",
    "serviceId":"Resource Groups Tagging API",
    "signatureVersion":"v4",
    "targetPrefix":"ResourceGroupsTaggingAPI_20170126",
    "uid":"resourcegroupstaggingapi-2017-01-26",
    "auth":["aws.auth#sigv4"]
  },
  "operations":{
    "DescribeReportCreation":{
      "name":"DescribeReportCreation",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DescribeReportCreationInput"},
      "output":{"shape":"DescribeReportCreationOutput"},
      "errors":[
        {"shape":"ConstraintViolationException"},
        {"shape":"InternalServiceException"},
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"}
      ],
      "documentation":"<p>Describes the status of the <code>StartReportCreation</code> operation. </p> <p>You can call this operation only from the organization's management account and from the us-east-1 Region.</p>"
    },
    "GetComplianceSummary":{
      "name":"GetComplianceSummary",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetComplianceSummaryInput"},
      "output":{"shape":"GetComplianceSummaryOutput"},
      "errors":[
        {"shape":"ConstraintViolationException"},
        {"shape":"InternalServiceException"},
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"}
      ],
      "documentation":"<p>Returns a table that shows counts of resources that are noncompliant with their tag policies.</p> <p>For more information on tag policies, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html\">Tag Policies</a> in the <i>Organizations User Guide.</i> </p> <p>You can call this operation only from the organization's management account and from the us-east-1 Region.</p> <p>This operation supports pagination, where the response can be sent in multiple pages. You should check the <code>PaginationToken</code> response parameter to determine if there are additional results available to return. Repeat the query, passing the <code>PaginationToken</code> response parameter value as an input to the next request until you recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that there are no more results waiting to be returned.</p>"
    },
    "GetResources":{
      "name":"GetResources",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetResourcesInput"},
      "output":{"shape":"GetResourcesOutput"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"},
        {"shape":"InternalServiceException"},
        {"shape":"PaginationTokenExpiredException"}
      ],
      "documentation":"<p>Returns all the tagged or previously tagged resources that are located in the specified Amazon Web Services Region for the account. </p> <p>Depending on what information you want returned, you can also specify the following:</p> <ul> <li> <p> <i>Filters</i> that specify what tags and resource types you want returned. The response includes all tags that are associated with the requested resources.</p> </li> <li> <p>Information about compliance with the account's effective tag policy. For more information on tag policies, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html\">Tag Policies</a> in the <i>Organizations User Guide.</i> </p> </li> </ul> <p>This operation supports pagination, where the response can be sent in multiple pages. You should check the <code>PaginationToken</code> response parameter to determine if there are additional results available to return. Repeat the query, passing the <code>PaginationToken</code> response parameter value as an input to the next request until you recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that there are no more results waiting to be returned.</p> <note> <p> <code>GetResources</code> does not return untagged resources. </p> <p>To find untagged resources in your account, use Amazon Web Services Resource Explorer with a query that uses <code>tag:none</code>. For more information, see <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html\"> Search query syntax reference for Resource Explorer</a>. </p> </note>"
    },
    "GetTagKeys":{
      "name":"GetTagKeys",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetTagKeysInput"},
      "output":{"shape":"GetTagKeysOutput"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"},
        {"shape":"InternalServiceException"},
        {"shape":"PaginationTokenExpiredException"}
      ],
      "documentation":"<p>Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account.</p> <p>This operation supports pagination, where the response can be sent in multiple pages. You should check the <code>PaginationToken</code> response parameter to determine if there are additional results available to return. Repeat the query, passing the <code>PaginationToken</code> response parameter value as an input to the next request until you recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that there are no more results waiting to be returned.</p>"
    },
    "GetTagValues":{
      "name":"GetTagValues",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetTagValuesInput"},
      "output":{"shape":"GetTagValuesOutput"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"},
        {"shape":"InternalServiceException"},
        {"shape":"PaginationTokenExpiredException"}
      ],
      "documentation":"<p>Returns all tag values for the specified key that are used in the specified Amazon Web Services Region for the calling account.</p> <p>This operation supports pagination, where the response can be sent in multiple pages. You should check the <code>PaginationToken</code> response parameter to determine if there are additional results available to return. Repeat the query, passing the <code>PaginationToken</code> response parameter value as an input to the next request until you recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that there are no more results waiting to be returned.</p>"
    },
    "ListRequiredTags":{
      "name":"ListRequiredTags",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ListRequiredTagsInput"},
      "output":{"shape":"ListRequiredTagsOutput"},
      "errors":[
        {"shape":"InternalServiceException"},
        {"shape":"InvalidParameterException"},
        {"shape":"PaginationTokenExpiredException"},
        {"shape":"ThrottledException"}
      ],
      "documentation":"<p>Lists the required tags for supported resource types in an Amazon Web Services account.</p>"
    },
    "StartReportCreation":{
      "name":"StartReportCreation",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"StartReportCreationInput"},
      "output":{"shape":"StartReportCreationOutput"},
      "errors":[
        {"shape":"ConcurrentModificationException"},
        {"shape":"ConstraintViolationException"},
        {"shape":"InternalServiceException"},
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"}
      ],
      "documentation":"<p>Generates a report that lists all tagged resources in the accounts across your organization and tells whether each resource is compliant with the effective tag policy. Compliance data is refreshed daily. The report is generated asynchronously.</p> <p>The generated report is saved to the following location:</p> <p> <code>s3://amzn-s3-demo-bucket/AwsTagPolicies/o-exampleorgid/YYYY-MM-ddTHH:mm:ssZ/report.csv</code> </p> <p>For more information about evaluating resource compliance with tag policies, including the required permissions, review <a href=\"https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#tag-policies-permissions-org\">Permissions for evaluating organization-wide compliance</a> in the <i>Tagging Amazon Web Services Resources and Tag Editor</i> user guide. </p> <p>You can call this operation only from the organization's management account and from the us-east-1 Region.</p> <p>If the account associated with the identity used to call <code>StartReportCreation</code> is different from the account that owns the Amazon S3 bucket, there must be a bucket policy attached to the bucket to provide access. For more information, review <a href=\"https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy\">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services Resources and Tag Editor</i> user guide.</p>"
    },
    "TagResources":{
      "name":"TagResources",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"TagResourcesInput"},
      "output":{"shape":"TagResourcesOutput"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"},
        {"shape":"InternalServiceException"}
      ],
      "documentation":"<p>Applies one or more tags to the specified resources. Note the following:</p> <ul> <li> <p>Not all resources can have tags. For a list of services with resources that support tagging using this operation, see <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html\">Services that support the Resource Groups Tagging API</a>. If the resource doesn't yet support this operation, the resource's service might support tagging using its own API operations. For more information, refer to the documentation for that service.</p> </li> <li> <p>Each resource can have up to 50 tags. For other limits, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions\">Tag Naming and Usage Conventions</a> in the <i>Amazon Web Services General Reference.</i> </p> </li> <li> <p>You can only tag resources that are located in the specified Amazon Web Services Region for the Amazon Web Services account.</p> </li> <li> <p>To add tags to a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for adding tags. For more information, see the documentation for each service.</p> </li> <li> <p>When you use the <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/overview.html\">Amazon Web Services Resource Groups Tagging API</a> to update tags for Amazon Web Services CloudFormation stack sets, Amazon Web Services calls the <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStack.html\">Amazon Web Services CloudFormation <code>UpdateStack</code> </a> operation. This operation may initiate additional resource property updates in addition to the desired tag updates. To avoid unexpected resource updates, Amazon Web Services recommends that you only apply or update tags to your CloudFormation stack sets using Amazon Web Services CloudFormation. </p> </li> </ul> <important> <p>Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.</p> </important> <p> <b>Minimum permissions</b> </p> <p>In addition to the <code>tag:TagResources</code> permission required by this operation, you must also have the tagging permission defined by the service that created the resource. For example, to tag an Amazon EC2 instance using the <code>TagResources</code> operation, you must have both of the following permissions:</p> <ul> <li> <p> <code>tag:TagResources</code> </p> </li> <li> <p> <code>ec2:CreateTags</code> </p> </li> </ul> <note> <p>In addition, some services might have specific requirements for tagging some types of resources. For example, to tag an Amazon S3 bucket, you must also have the <code>s3:GetBucketTagging</code> permission. If the expected minimum permissions don't work, check the documentation for that service's tagging APIs for more information.</p> </note>"
    },
    "UntagResources":{
      "name":"UntagResources",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"UntagResourcesInput"},
      "output":{"shape":"UntagResourcesOutput"},
      "errors":[
        {"shape":"InvalidParameterException"},
        {"shape":"ThrottledException"},
        {"shape":"InternalServiceException"}
      ],
      "documentation":"<p>Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from a resource that were already removed. Note the following:</p> <ul> <li> <p>To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information, see the documentation for the service whose resource you want to untag.</p> </li> <li> <p>You can only tag resources that are located in the specified Amazon Web Services Region for the calling Amazon Web Services account.</p> </li> </ul> <p> <b>Minimum permissions</b> </p> <p>In addition to the <code>tag:UntagResources</code> permission required by this operation, you must also have the remove tags permission defined by the service that created the resource. For example, to remove the tags from an Amazon EC2 instance using the <code>UntagResources</code> operation, you must have both of the following permissions:</p> <ul> <li> <p> <code>tag:UntagResources</code> </p> </li> <li> <p> <code>ec2:DeleteTags</code> </p> </li> </ul> <note> <p>In addition, some services might have specific requirements for untagging some types of resources. For example, to untag Amazon Web Services Glue Connection, you must also have the <code>glue:GetConnection</code> permission. If the expected minimum permissions don't work, check the documentation for that service's tagging APIs for more information.</p> </note>"
    }
  },
  "shapes":{
    "AmazonResourceType":{
      "type":"string",
      "max":256,
      "min":0,
      "pattern":"[\\s\\S]*"
    },
    "CloudFormationResourceType":{"type":"string"},
    "CloudFormationResourceTypes":{
      "type":"list",
      "member":{"shape":"CloudFormationResourceType"}
    },
    "ComplianceDetails":{
      "type":"structure",
      "members":{
        "NoncompliantKeys":{
          "shape":"TagKeyList",
          "documentation":"<p>These tag keys on the resource are noncompliant with the effective tag policy.</p>"
        },
        "KeysWithNoncompliantValues":{
          "shape":"TagKeyList",
          "documentation":"<p>These are keys defined in the effective policy that are on the resource with either incorrect case treatment or noncompliant values. </p>"
        },
        "MissingTagKeys":{
          "shape":"TagKeyList",
          "documentation":"<p>These tag keys are defined as required in the <code>report_required_tag_for</code> block of the effective tag policy, but are missing from the resource.</p>"
        },
        "ComplianceStatus":{
          "shape":"ComplianceStatus",
          "documentation":"<p>Whether a resource is compliant with the effective tag policy.</p>"
        }
      },
      "documentation":"<p>Information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys.</p>"
    },
    "ComplianceStatus":{"type":"boolean"},
    "ConcurrentModificationException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request failed because the target of the operation is currently being modified by a different request. Try again later.</p>",
      "exception":true
    },
    "ConstraintViolationException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request failed because performing the operation would violate a constraint.</p> <p>Some of the reasons in the following list might not apply to this specific operation.</p> <ul> <li> <p>You must meet the prerequisites for using tag policies. For information, see <a href=\"https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#tag-policies-prereqs\">Prerequisites and permissions</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p> </li> <li> <p>You must enable the tag policies service principal (<code>tagpolicies.tag.amazonaws.com</code>) to integrate with Organizations For information, see <a href=\"https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html\">EnableAWSServiceAccess</a>.</p> </li> <li> <p>You must have a tag policy attached to the organization root, an OU, or an account.</p> </li> </ul>",
      "exception":true
    },
    "DescribeReportCreationInput":{
      "type":"structure",
      "members":{}
    },
    "DescribeReportCreationOutput":{
      "type":"structure",
      "members":{
        "Status":{
          "shape":"Status",
          "documentation":"<p>Reports the status of the operation.</p> <p>The operation status can be one of the following:</p> <ul> <li> <p> <code>RUNNING</code> - Report creation is in progress.</p> </li> <li> <p> <code>SUCCEEDED</code> - Report creation is complete. You can open the report from the Amazon S3 bucket that you specified when you ran <code>StartReportCreation</code>.</p> </li> <li> <p> <code>FAILED</code> - Report creation timed out or the Amazon S3 bucket is not accessible. </p> </li> <li> <p> <code>NO REPORT</code> - No report was generated in the last 90 days.</p> </li> </ul>"
        },
        "S3Location":{
          "shape":"S3Location",
          "documentation":"<p>The path to the Amazon S3 bucket where the report was stored on creation.</p>"
        },
        "ErrorMessage":{
          "shape":"ErrorMessage",
          "documentation":"<p>Details of the common errors that all operations return.</p>"
        }
      }
    },
    "ErrorCode":{
      "type":"string",
      "enum":[
        "InternalServiceException",
        "InvalidParameterException"
      ]
    },
    "ErrorMessage":{"type":"string"},
    "ExceptionMessage":{
      "type":"string",
      "max":2048,
      "min":0
    },
    "ExcludeCompliantResources":{"type":"boolean"},
    "FailedResourcesMap":{
      "type":"map",
      "key":{"shape":"ResourceARN"},
      "value":{"shape":"FailureInfo"}
    },
    "FailureInfo":{
      "type":"structure",
      "members":{
        "StatusCode":{
          "shape":"StatusCode",
          "documentation":"<p>The HTTP status code of the common error.</p>"
        },
        "ErrorCode":{
          "shape":"ErrorCode",
          "documentation":"<p>The code of the common error. Valid values include <code>InternalServiceException</code>, <code>InvalidParameterException</code>, and any valid error code returned by the Amazon Web Services service that hosts the resource that you want to tag.</p>"
        },
        "ErrorMessage":{
          "shape":"ErrorMessage",
          "documentation":"<p>The message of the common error.</p>"
        }
      },
      "documentation":"<p>Information about the errors that are returned for each failed resource. This information can include <code>InternalServiceException</code> and <code>InvalidParameterException</code> errors. It can also include any valid error code returned by the Amazon Web Services service that hosts the resource that the ARN key represents.</p> <p>The following are common error codes that you might receive from other Amazon Web Services services:</p> <ul> <li> <p> <b>InternalServiceException</b> – This can mean that the Resource Groups Tagging API didn't receive a response from another Amazon Web Services service. It can also mean that the resource type in the request is not supported by the Resource Groups Tagging API. In these cases, it's safe to retry the request and then call <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html\">GetResources</a> to verify the changes.</p> </li> <li> <p> <b>AccessDeniedException</b> – This can mean that you need permission to call the tagging operations in the Amazon Web Services service that contains the resource. For example, to use the Resource Groups Tagging API to tag a Amazon CloudWatch alarm resource, you need permission to call both <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_TagResources.html\"> <code>TagResources</code> </a> <i>and</i> <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html\"> <code>TagResource</code> </a> in the CloudWatch API. </p> </li> </ul> <p>For more information on errors that are generated from other Amazon Web Services services, see the documentation for that service. </p>"
    },
    "GetComplianceSummaryInput":{
      "type":"structure",
      "members":{
        "TargetIdFilters":{
          "shape":"TargetIdFilterList",
          "documentation":"<p>Specifies target identifiers (usually, specific account IDs) to limit the output by. If you use this parameter, the count of returned noncompliant resources includes only resources with the specified target IDs.</p>"
        },
        "RegionFilters":{
          "shape":"RegionFilterList",
          "documentation":"<p>Specifies a list of Amazon Web Services Regions to limit the output to. If you use this parameter, the count of returned noncompliant resources includes only resources in the specified Regions.</p>"
        },
        "ResourceTypeFilters":{
          "shape":"ResourceTypeFilterList",
          "documentation":"<p>Specifies that you want the response to include information for only resources of the specified types. The format of each resource type is <code>service[:resourceType]</code>. For example, specifying a resource type of <code>ec2</code> returns all Amazon EC2 resources (which includes EC2 instances). Specifying a resource type of <code>ec2:instance</code> returns only EC2 instances.</p> <p>The string for each service name and resource type is the same as that embedded in a resource's Amazon Resource Name (ARN). Consult the <i> <a href=\"https://docs.aws.amazon.com/general/latest/gr/\">Amazon Web Services General Reference</a> </i> for the following:</p> <ul> <li> <p>For a list of service name strings, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces\">Amazon Web Services Service Namespaces</a>.</p> </li> <li> <p>For resource type strings, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-syntax\">Example ARNs</a>.</p> </li> <li> <p>For more information about ARNs, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a>.</p> </li> </ul> <note> <p>For the list of services whose resources you can tag using the Resource Groups Tagging API, see <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html\">Services that support the Resource Groups Tagging API</a>. If an Amazon Web Services service isn't listed on that page, you might still be able to tag that service's resources by using that service's native tagging operations instead of using Resource Groups Tagging API operations. All tagged resources, whether the tagging used the Resource Groups Tagging API or not, are returned by the <code>Get*</code> operation.</p> </note> <p>You can specify multiple resource types by using a comma separated array. The array can include up to 100 items. Note that the length constraint requirement applies to each resource type filter. </p>"
        },
        "TagKeyFilters":{
          "shape":"TagKeyFilterList",
          "documentation":"<p>Specifies that you want the response to include information for only resources that have tags with the specified tag keys. If you use this parameter, the count of returned noncompliant resources includes only resources that have the specified tag keys.</p>"
        },
        "GroupBy":{
          "shape":"GroupBy",
          "documentation":"<p>Specifies a list of attributes to group the counts of noncompliant resources by. If supplied, the counts are sorted by those attributes.</p>"
        },
        "MaxResults":{
          "shape":"MaxResultsGetComplianceSummary",
          "documentation":"<p>Specifies the maximum number of results to be returned in each page. A query can return fewer than this maximum, even if there are more results still to return. You should always check the <code>PaginationToken</code> response value to see if there are more results. You can specify a minimum of 1 and a maximum value of 100.</p>"
        },
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>Specifies a <code>PaginationToken</code> response value from a previous request to indicate that you want the next page of results. Leave this parameter empty in your initial request.</p>"
        }
      }
    },
    "GetComplianceSummaryOutput":{
      "type":"structure",
      "members":{
        "SummaryList":{
          "shape":"SummaryList",
          "documentation":"<p>A table that shows counts of noncompliant resources.</p>"
        },
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A string that indicates that there is more data available than this response contains. To receive the next part of the response, specify this response value as the <code>PaginationToken</code> value in the request for the next page.</p>"
        }
      }
    },
    "GetResourcesInput":{
      "type":"structure",
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>Specifies a <code>PaginationToken</code> response value from a previous request to indicate that you want the next page of results. Leave this parameter empty in your initial request.</p>"
        },
        "TagFilters":{
          "shape":"TagFilterList",
          "documentation":"<p>Specifies a list of TagFilters (keys and values) to restrict the output to only those resources that have tags with the specified keys and, if included, the specified values. Each <code>TagFilter</code> must contain a key with values optional. A request can include up to 50 keys, and each key can include up to 20 values. </p> <p>You can't specify both this parameter and the <code>ResourceArnList</code> parameter in the same request. If you do, you get an <code>Invalid Parameter</code> exception.</p> <p>Note the following when deciding how to use TagFilters:</p> <ul> <li> <p>If you <i>don't</i> specify a <code>TagFilter</code>, the response includes all resources that are currently tagged or ever had a tag. Resources that were previously tagged, <i>but do not currently</i> have tags, are shown with an empty tag set, like this: <code>\"Tags\": []</code>.</p> </li> <li> <p>If you specify more than one filter in a single request, the response returns only those resources that satisfy all filters.</p> </li> <li> <p>If you specify a filter that contains more than one value for a key, the response returns resources that match <i>any</i> of the specified values for that key.</p> </li> <li> <p>If you don't specify a value for a key, the response returns all resources that are tagged with that key, with any or no value.</p> <p>For example, for the following filters: <code>filter1= {key1,{value1}}</code>, <code>filter2={key2,{value2,value3,value4}}</code>, <code>filter3= {key3}</code>:</p> <ul> <li> <p> <code>GetResources({filter1})</code> returns resources tagged with <code>key1=value1</code> </p> </li> <li> <p> <code>GetResources({filter2})</code> returns resources tagged with <code>key2=value2</code> or <code>key2=value3</code> or <code>key2=value4</code> </p> </li> <li> <p> <code>GetResources({filter3})</code> returns resources tagged with any tag with the key <code>key3</code>, and with any or no value</p> </li> <li> <p> <code>GetResources({filter1,filter2,filter3})</code> returns resources tagged with <code>(key1=value1) and (key2=value2 or key2=value3 or key2=value4) and (key3, any or no value)</code> </p> </li> </ul> </li> </ul>"
        },
        "ResourcesPerPage":{
          "shape":"ResourcesPerPage",
          "documentation":"<p>Specifies the maximum number of results to be returned in each page. A query can return fewer than this maximum, even if there are more results still to return. You should always check the <code>PaginationToken</code> response value to see if there are more results. You can specify a minimum of 1 and a maximum value of 100.</p>"
        },
        "TagsPerPage":{
          "shape":"TagsPerPage",
          "documentation":"<p>Amazon Web Services recommends using <code>ResourcesPerPage</code> instead of this parameter.</p> <p>A limit that restricts the number of tags (key and value pairs) returned by <code>GetResources</code> in paginated output. A resource with no tags is counted as having one tag (one key and value pair).</p> <p> <code>GetResources</code> does not split a resource and its associated tags across pages. If the specified <code>TagsPerPage</code> would cause such a break, a <code>PaginationToken</code> is returned in place of the affected resource and its tags. Use that token in another request to get the remaining data. For example, if you specify a <code>TagsPerPage</code> of <code>100</code> and the account has 22 resources with 10 tags each (meaning that each resource has 10 key and value pairs), the output will consist of three pages. The first page displays the first 10 resources, each with its 10 tags. The second page displays the next 10 resources, each with its 10 tags. The third page displays the remaining 2 resources, each with its 10 tags.</p> <p>You can set <code>TagsPerPage</code> to a minimum of 100 items up to a maximum of 500 items.</p>"
        },
        "ResourceTypeFilters":{
          "shape":"ResourceTypeFilterList",
          "documentation":"<p>Specifies the resource types that you want included in the response. The format of each resource type is <code>service[:resourceType]</code>. For example, specifying a service of <code>ec2</code> returns all Amazon EC2 resources (which includes EC2 instances). Specifying a resource type of <code>ec2:instance</code> returns only EC2 instances. </p> <p>You can't specify both this parameter and the <code>ResourceArnList</code> parameter in the same request. If you do, you get an <code>Invalid Parameter</code> exception.</p> <p>The string for each service name and resource type is the same as that embedded in a resource's Amazon Resource Name (ARN).</p> <note> <p>For the list of services whose resources you can tag using the Resource Groups Tagging API, see <a href=\"https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html\">Services that support the Resource Groups Tagging API</a>. If an Amazon Web Services service isn't listed on that page, you might still be able to tag that service's resources by using that service's native tagging operations instead of using Resource Groups Tagging API operations. All tagged resources, whether the tagging used the Resource Groups Tagging API or not, are returned by the <code>Get*</code> operation.</p> </note> <p>You can specify multiple resource types by using an array. The array can include up to 100 items. Note that the length constraint requirement applies to each resource type filter. For example, the following string would limit the response to only Amazon EC2 instances, Amazon S3 buckets, or any Audit Manager resource:</p> <p> <code>ec2:instance,s3:bucket,auditmanager</code> </p>"
        },
        "IncludeComplianceDetails":{
          "shape":"IncludeComplianceDetails",
          "documentation":"<p>Specifies whether to include details regarding the compliance with the effective tag policy. Set this to <code>true</code> to determine whether resources are compliant with the tag policy and to get details.</p>"
        },
        "ExcludeCompliantResources":{
          "shape":"ExcludeCompliantResources",
          "documentation":"<p>Specifies whether to exclude resources that are compliant with the tag policy. Set this to <code>true</code> if you are interested in retrieving information on noncompliant resources only.</p> <p>You can use this parameter only if the <code>IncludeComplianceDetails</code> parameter is also set to <code>true</code>.</p>"
        },
        "ResourceARNList":{
          "shape":"ResourceARNListForGet",
          "documentation":"<p>Specifies a list of ARNs of resources for which you want to retrieve tag data.</p> <p>You can't specify both this parameter and the <code>ResourceTypeFilters</code> parameter in the same request. If you do, you get an <code>Invalid Parameter</code> exception.</p> <p>You can't specify both this parameter and the <code>TagFilters</code> parameter in the same request. If you do, you get an <code>Invalid Parameter</code> exception.</p> <p>You can't specify both this parameter and any of the pagination parameters (<code>ResourcesPerPage</code>, <code>TagsPerPage</code>, <code>PaginationToken</code>) in the same request. If you do, you get an <code>Invalid Parameter</code> exception.</p> <p>If a resource specified by this parameter doesn't exist, it doesn't generate an error; it simply isn't included in the response.</p> <p>An ARN (Amazon Resource Name) uniquely identifies a resource. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>"
        }
      }
    },
    "GetResourcesOutput":{
      "type":"structure",
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A string that indicates that there is more data available than this response contains. To receive the next part of the response, specify this response value as the <code>PaginationToken</code> value in the request for the next page.</p>"
        },
        "ResourceTagMappingList":{
          "shape":"ResourceTagMappingList",
          "documentation":"<p>A list of resource ARNs and the tags (keys and values) associated with each.</p>"
        }
      }
    },
    "GetTagKeysInput":{
      "type":"structure",
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>Specifies a <code>PaginationToken</code> response value from a previous request to indicate that you want the next page of results. Leave this parameter empty in your initial request.</p>"
        }
      }
    },
    "GetTagKeysOutput":{
      "type":"structure",
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A string that indicates that there is more data available than this response contains. To receive the next part of the response, specify this response value as the <code>PaginationToken</code> value in the request for the next page.</p>"
        },
        "TagKeys":{
          "shape":"TagKeyList",
          "documentation":"<p>A list of all tag keys in the Amazon Web Services account.</p>"
        }
      }
    },
    "GetTagValuesInput":{
      "type":"structure",
      "required":["Key"],
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>Specifies a <code>PaginationToken</code> response value from a previous request to indicate that you want the next page of results. Leave this parameter empty in your initial request.</p>"
        },
        "Key":{
          "shape":"TagKey",
          "documentation":"<p>Specifies the tag key for which you want to list all existing values that are currently used in the specified Amazon Web Services Region for the calling account.</p>"
        }
      }
    },
    "GetTagValuesOutput":{
      "type":"structure",
      "members":{
        "PaginationToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A string that indicates that there is more data available than this response contains. To receive the next part of the response, specify this response value as the <code>PaginationToken</code> value in the request for the next page.</p>"
        },
        "TagValues":{
          "shape":"TagValuesOutputList",
          "documentation":"<p>A list of all tag values for the specified key currently used in the specified Amazon Web Services Region for the calling account.</p>"
        }
      }
    },
    "GroupBy":{
      "type":"list",
      "member":{"shape":"GroupByAttribute"}
    },
    "GroupByAttribute":{
      "type":"string",
      "enum":[
        "TARGET_ID",
        "REGION",
        "RESOURCE_TYPE"
      ]
    },
    "IncludeComplianceDetails":{"type":"boolean"},
    "InternalServiceException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request processing failed because of an unknown error, exception, or failure. You can retry the request.</p>",
      "exception":true,
      "fault":true
    },
    "InvalidParameterException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request failed because of one of the following reasons:</p> <ul> <li> <p>A required parameter is missing.</p> </li> <li> <p>A provided string parameter is malformed.</p> </li> <li> <p>An provided parameter value is out of range.</p> </li> <li> <p>The target ID is invalid, unsupported, or doesn't exist.</p> </li> <li> <p>You can't access the Amazon S3 bucket for report storage. For more information, see <a href=\"https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy\">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p> </li> <li> <p>The partition specified in an ARN parameter in the request doesn't match the partition where you invoked the operation. The partition is specified by the second field of the ARN.</p> </li> </ul>",
      "exception":true
    },
    "LastUpdated":{"type":"string"},
    "ListRequiredTagsInput":{
      "type":"structure",
      "members":{
        "NextToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A token for requesting another page of required tags if the <code>NextToken</code> response element indicates that more required tags are available. Use the value of the returned <code>NextToken</code> element in your request until the token comes back as null. Pass null if this is the first call.</p>"
        },
        "MaxResults":{
          "shape":"MaxResultsForListRequiredTags",
          "documentation":"<p>The maximum number of required tags.</p>"
        }
      }
    },
    "ListRequiredTagsOutput":{
      "type":"structure",
      "members":{
        "RequiredTags":{
          "shape":"RequiredTagsForListRequiredTags",
          "documentation":"<p>The required tags.</p>"
        },
        "NextToken":{
          "shape":"PaginationToken",
          "documentation":"<p>A token for requesting another page of required tags if the <code>NextToken</code> response element indicates that more required tags are available. Use the value of the returned <code>NextToken</code> element in your request until the token comes back as null. Pass null if this is the first call.</p>"
        }
      }
    },
    "MaxResultsForListRequiredTags":{
      "type":"integer",
      "max":200,
      "min":1
    },
    "MaxResultsGetComplianceSummary":{
      "type":"integer",
      "max":1000,
      "min":1
    },
    "NonCompliantResources":{"type":"long"},
    "PaginationToken":{
      "type":"string",
      "max":2048,
      "min":0,
      "pattern":"[\\s\\S]*"
    },
    "PaginationTokenExpiredException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request failed because the specified <code>PaginationToken</code> has expired. A <code>PaginationToken</code> is valid for a maximum of 15 minutes.</p>",
      "exception":true
    },
    "Region":{
      "type":"string",
      "max":256,
      "min":1,
      "pattern":"[\\s\\S]*"
    },
    "RegionFilterList":{
      "type":"list",
      "member":{"shape":"Region"},
      "max":100,
      "min":1
    },
    "ReportingTagKeys":{
      "type":"list",
      "member":{"shape":"TagKey"}
    },
    "RequiredTag":{
      "type":"structure",
      "members":{
        "ResourceType":{
          "shape":"ResourceType",
          "documentation":"<p>Describes the resource type for the required tag keys.</p>"
        },
        "CloudFormationResourceTypes":{
          "shape":"CloudFormationResourceTypes",
          "documentation":"<p>Describes the CloudFormation resource type assigned the required tag keys.</p>"
        },
        "ReportingTagKeys":{
          "shape":"ReportingTagKeys",
          "documentation":"<p>These tag keys are marked as <code>required</code> in the <code>report_required_tag_for</code> block of the effective tag policy.</p>"
        }
      },
      "documentation":"<p>Information that describes the required tags for a given resource type.</p>"
    },
    "RequiredTagsForListRequiredTags":{
      "type":"list",
      "member":{"shape":"RequiredTag"}
    },
    "ResourceARN":{
      "type":"string",
      "max":1011,
      "min":1,
      "pattern":"[\\s\\S]*"
    },
    "ResourceARNListForGet":{
      "type":"list",
      "member":{"shape":"ResourceARN"},
      "max":100,
      "min":1
    },
    "ResourceARNListForTagUntag":{
      "type":"list",
      "member":{"shape":"ResourceARN"},
      "max":20,
      "min":1
    },
    "ResourceTagMapping":{
      "type":"structure",
      "members":{
        "ResourceARN":{
          "shape":"ResourceARN",
          "documentation":"<p>The ARN of the resource.</p>"
        },
        "Tags":{
          "shape":"TagList",
          "documentation":"<p>The tags that have been applied to one or more Amazon Web Services resources.</p>"
        },
        "ComplianceDetails":{
          "shape":"ComplianceDetails",
          "documentation":"<p>Information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys.</p>"
        }
      },
      "documentation":"<p>A list of resource ARNs and the tags (keys and values) that are associated with each.</p>"
    },
    "ResourceTagMappingList":{
      "type":"list",
      "member":{"shape":"ResourceTagMapping"}
    },
    "ResourceType":{"type":"string"},
    "ResourceTypeFilterList":{
      "type":"list",
      "member":{"shape":"AmazonResourceType"}
    },
    "ResourcesPerPage":{"type":"integer"},
    "S3Bucket":{
      "type":"string",
      "max":63,
      "min":3,
      "pattern":"[a-z0-9.-]*"
    },
    "S3Location":{"type":"string"},
    "StartReportCreationInput":{
      "type":"structure",
      "required":["S3Bucket"],
      "members":{
        "S3Bucket":{
          "shape":"S3Bucket",
          "documentation":"<p>The name of the Amazon S3 bucket where the report will be stored; for example:</p> <p> <code>amzn-s3-demo-bucket</code> </p> <p>For more information on S3 bucket requirements, including an example bucket policy, see the example Amazon S3 bucket policy on this page.</p>"
        }
      }
    },
    "StartReportCreationOutput":{
      "type":"structure",
      "members":{}
    },
    "Status":{"type":"string"},
    "StatusCode":{"type":"integer"},
    "Summary":{
      "type":"structure",
      "members":{
        "LastUpdated":{
          "shape":"LastUpdated",
          "documentation":"<p>The timestamp that shows when this summary was generated in this Region. </p>"
        },
        "TargetId":{
          "shape":"TargetId",
          "documentation":"<p>The account identifier or the root identifier of the organization. If you don't know the root ID, you can call the Organizations <a href=\"https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListRoots.html\">ListRoots</a> API.</p>"
        },
        "TargetIdType":{
          "shape":"TargetIdType",
          "documentation":"<p>Whether the target is an account, an OU, or the organization root.</p>"
        },
        "Region":{
          "shape":"Region",
          "documentation":"<p>The Amazon Web Services Region that the summary applies to.</p>"
        },
        "ResourceType":{
          "shape":"AmazonResourceType",
          "documentation":"<p>The Amazon Web Services resource type.</p>"
        },
        "NonCompliantResources":{
          "shape":"NonCompliantResources",
          "documentation":"<p>The count of noncompliant resources.</p>"
        }
      },
      "documentation":"<p>A count of noncompliant resources.</p>"
    },
    "SummaryList":{
      "type":"list",
      "member":{"shape":"Summary"}
    },
    "Tag":{
      "type":"structure",
      "required":[
        "Key",
        "Value"
      ],
      "members":{
        "Key":{
          "shape":"TagKey",
          "documentation":"<p>One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.</p>"
        },
        "Value":{
          "shape":"TagValue",
          "documentation":"<p>One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.</p>"
        }
      },
      "documentation":"<p>The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services Resources</a> in the <i>Amazon Web Services General Reference</i>.</p>"
    },
    "TagFilter":{
      "type":"structure",
      "members":{
        "Key":{
          "shape":"TagKey",
          "documentation":"<p>One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.</p>"
        },
        "Values":{
          "shape":"TagValueList",
          "documentation":"<p>One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.</p>"
        }
      },
      "documentation":"<p>A list of tags (keys and values) that are used to specify the associated resources.</p>"
    },
    "TagFilterList":{
      "type":"list",
      "member":{"shape":"TagFilter"},
      "max":50,
      "min":0
    },
    "TagKey":{
      "type":"string",
      "max":128,
      "min":1,
      "pattern":"[\\s\\S]*"
    },
    "TagKeyFilterList":{
      "type":"list",
      "member":{"shape":"TagKey"},
      "max":50,
      "min":1
    },
    "TagKeyList":{
      "type":"list",
      "member":{"shape":"TagKey"}
    },
    "TagKeyListForUntag":{
      "type":"list",
      "member":{"shape":"TagKey"},
      "max":50,
      "min":1
    },
    "TagList":{
      "type":"list",
      "member":{"shape":"Tag"}
    },
    "TagMap":{
      "type":"map",
      "key":{"shape":"TagKey"},
      "value":{"shape":"TagValue"},
      "max":50,
      "min":1
    },
    "TagResourcesInput":{
      "type":"structure",
      "required":[
        "ResourceARNList",
        "Tags"
      ],
      "members":{
        "ResourceARNList":{
          "shape":"ResourceARNListForTagUntag",
          "documentation":"<p>Specifies the list of ARNs of the resources that you want to apply tags to.</p> <p>An ARN (Amazon Resource Name) uniquely identifies a resource. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>"
        },
        "Tags":{
          "shape":"TagMap",
          "documentation":"<p>Specifies a list of tags that you want to add to the specified resources. A tag consists of a key and a value that you define.</p>"
        }
      }
    },
    "TagResourcesOutput":{
      "type":"structure",
      "members":{
        "FailedResourcesMap":{
          "shape":"FailedResourcesMap",
          "documentation":"<p>A map containing a key-value pair for each failed item that couldn't be tagged. The key is the ARN of the failed resource. The value is a <code>FailureInfo</code> object that contains an error code, a status code, and an error message. If there are no errors, the <code>FailedResourcesMap</code> is empty.</p>"
        }
      }
    },
    "TagValue":{
      "type":"string",
      "max":256,
      "min":0,
      "pattern":"[\\s\\S]*"
    },
    "TagValueList":{
      "type":"list",
      "member":{"shape":"TagValue"},
      "max":20,
      "min":0
    },
    "TagValuesOutputList":{
      "type":"list",
      "member":{"shape":"TagValue"}
    },
    "TagsPerPage":{"type":"integer"},
    "TargetId":{
      "type":"string",
      "max":68,
      "min":6,
      "pattern":"[a-zA-Z0-9-]*"
    },
    "TargetIdFilterList":{
      "type":"list",
      "member":{"shape":"TargetId"},
      "max":100,
      "min":1
    },
    "TargetIdType":{
      "type":"string",
      "enum":[
        "ACCOUNT",
        "OU",
        "ROOT"
      ]
    },
    "ThrottledException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"ExceptionMessage"}
      },
      "documentation":"<p>The request failed because it exceeded the allowed frequency of submitted requests.</p>",
      "exception":true
    },
    "UntagResourcesInput":{
      "type":"structure",
      "required":[
        "ResourceARNList",
        "TagKeys"
      ],
      "members":{
        "ResourceARNList":{
          "shape":"ResourceARNListForTagUntag",
          "documentation":"<p>Specifies a list of ARNs of the resources that you want to remove tags from.</p> <p>An ARN (Amazon Resource Name) uniquely identifies a resource. For more information, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>"
        },
        "TagKeys":{
          "shape":"TagKeyListForUntag",
          "documentation":"<p>Specifies a list of tag keys that you want to remove from the specified resources.</p>"
        }
      }
    },
    "UntagResourcesOutput":{
      "type":"structure",
      "members":{
        "FailedResourcesMap":{
          "shape":"FailedResourcesMap",
          "documentation":"<p>A map containing a key-value pair for each failed item that couldn't be untagged. The key is the ARN of the failed resource. The value is a <code>FailureInfo</code> object that contains an error code, a status code, and an error message. If there are no errors, the <code>FailedResourcesMap</code> is empty.</p>"
        }
      }
    }
  },
  "documentation":"<fullname>Resource Groups Tagging API</fullname>"
}
