Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- defaultService :: Service
- _ConcurrentModificationException :: AsError a => Fold a ServiceError
- _ConstraintViolationException :: AsError a => Fold a ServiceError
- _InternalServiceException :: AsError a => Fold a ServiceError
- _InvalidParameterException :: AsError a => Fold a ServiceError
- _PaginationTokenExpiredException :: AsError a => Fold a ServiceError
- _ThrottledException :: AsError a => Fold a ServiceError
- newtype GroupByAttribute where
- GroupByAttribute' { }
- pattern GroupByAttribute_REGION :: GroupByAttribute
- pattern GroupByAttribute_RESOURCE_TYPE :: GroupByAttribute
- pattern GroupByAttribute_TARGET_ID :: GroupByAttribute
- newtype ResourceErrorCode where
- newtype TargetIdType where
- TargetIdType' { }
- pattern TargetIdType_ACCOUNT :: TargetIdType
- pattern TargetIdType_OU :: TargetIdType
- pattern TargetIdType_ROOT :: TargetIdType
- data ComplianceDetails = ComplianceDetails' {}
- newComplianceDetails :: ComplianceDetails
- complianceDetails_complianceStatus :: Lens' ComplianceDetails (Maybe Bool)
- complianceDetails_keysWithNoncompliantValues :: Lens' ComplianceDetails (Maybe [Text])
- complianceDetails_noncompliantKeys :: Lens' ComplianceDetails (Maybe [Text])
- data FailureInfo = FailureInfo' {}
- newFailureInfo :: FailureInfo
- failureInfo_errorCode :: Lens' FailureInfo (Maybe ResourceErrorCode)
- failureInfo_errorMessage :: Lens' FailureInfo (Maybe Text)
- failureInfo_statusCode :: Lens' FailureInfo (Maybe Int)
- data ResourceTagMapping = ResourceTagMapping' {}
- newResourceTagMapping :: ResourceTagMapping
- resourceTagMapping_complianceDetails :: Lens' ResourceTagMapping (Maybe ComplianceDetails)
- resourceTagMapping_resourceARN :: Lens' ResourceTagMapping (Maybe Text)
- resourceTagMapping_tags :: Lens' ResourceTagMapping (Maybe [Tag])
- data Summary = Summary' {}
- newSummary :: Summary
- summary_lastUpdated :: Lens' Summary (Maybe Text)
- summary_nonCompliantResources :: Lens' Summary (Maybe Integer)
- summary_region :: Lens' Summary (Maybe Text)
- summary_resourceType :: Lens' Summary (Maybe Text)
- summary_targetId :: Lens' Summary (Maybe Text)
- summary_targetIdType :: Lens' Summary (Maybe TargetIdType)
- data Tag = Tag' {}
- newTag :: Text -> Text -> Tag
- tag_key :: Lens' Tag Text
- tag_value :: Lens' Tag Text
- data TagFilter = TagFilter' {}
- newTagFilter :: TagFilter
- tagFilter_key :: Lens' TagFilter (Maybe Text)
- tagFilter_values :: Lens' TagFilter (Maybe [Text])
Service Configuration
defaultService :: Service Source #
API version 2017-01-26
of the Amazon Resource Groups Tagging API SDK configuration.
Errors
_ConcurrentModificationException :: AsError a => Fold a ServiceError Source #
The target of the operation is currently being modified by a different request. Try again later.
_ConstraintViolationException :: AsError a => Fold a ServiceError Source #
The request was denied because performing this operation violates a constraint.
Some of the reasons in the following list might not apply to this specific operation.
- You must meet the prerequisites for using tag policies. For information, see Prerequisites and Permissions for Using Tag Policies in the Organizations User Guide.
- You must enable the tag policies service principal
(
tagpolicies.tag.amazonaws.com
) to integrate with Organizations For information, see EnableAWSServiceAccess. - You must have a tag policy attached to the organization root, an OU, or an account.
_InternalServiceException :: AsError a => Fold a ServiceError Source #
The request processing failed because of an unknown error, exception, or failure. You can retry the request.
_InvalidParameterException :: AsError a => Fold a ServiceError Source #
This error indicates one of the following:
- A parameter is missing.
- A malformed string was supplied for the request parameter.
- An out-of-range value was supplied for the request parameter.
- The target ID is invalid, unsupported, or doesn't exist.
- You can't access the Amazon S3 bucket for report storage. For more information, see Additional Requirements for Organization-wide Tag Compliance Reports in the Organizations User Guide.
_PaginationTokenExpiredException :: AsError a => Fold a ServiceError Source #
A PaginationToken
is valid for a maximum of 15 minutes. Your request
was denied because the specified PaginationToken
has expired.
_ThrottledException :: AsError a => Fold a ServiceError Source #
The request was denied to limit the frequency of submitted requests.
GroupByAttribute
newtype GroupByAttribute Source #
pattern GroupByAttribute_REGION :: GroupByAttribute | |
pattern GroupByAttribute_RESOURCE_TYPE :: GroupByAttribute | |
pattern GroupByAttribute_TARGET_ID :: GroupByAttribute |
Instances
ResourceErrorCode
newtype ResourceErrorCode Source #
pattern ResourceErrorCode_InternalServiceException :: ResourceErrorCode | |
pattern ResourceErrorCode_InvalidParameterException :: ResourceErrorCode |
Instances
TargetIdType
newtype TargetIdType Source #
pattern TargetIdType_ACCOUNT :: TargetIdType | |
pattern TargetIdType_OU :: TargetIdType | |
pattern TargetIdType_ROOT :: TargetIdType |
Instances
ComplianceDetails
data ComplianceDetails Source #
Information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys.
See: newComplianceDetails
smart constructor.
ComplianceDetails' | |
|
Instances
newComplianceDetails :: ComplianceDetails Source #
Create a value of ComplianceDetails
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:complianceStatus:ComplianceDetails'
, complianceDetails_complianceStatus
- Whether a resource is compliant with the effective tag policy.
$sel:keysWithNoncompliantValues:ComplianceDetails'
, complianceDetails_keysWithNoncompliantValues
- These are keys defined in the effective policy that are on the resource
with either incorrect case treatment or noncompliant values.
$sel:noncompliantKeys:ComplianceDetails'
, complianceDetails_noncompliantKeys
- These tag keys on the resource are noncompliant with the effective tag
policy.
complianceDetails_complianceStatus :: Lens' ComplianceDetails (Maybe Bool) Source #
Whether a resource is compliant with the effective tag policy.
complianceDetails_keysWithNoncompliantValues :: Lens' ComplianceDetails (Maybe [Text]) Source #
These are keys defined in the effective policy that are on the resource with either incorrect case treatment or noncompliant values.
complianceDetails_noncompliantKeys :: Lens' ComplianceDetails (Maybe [Text]) Source #
These tag keys on the resource are noncompliant with the effective tag policy.
FailureInfo
data FailureInfo Source #
Information about the errors that are returned for each failed resource.
This information can include InternalServiceException
and
InvalidParameterException
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.
The following are common error codes that you might receive from other Amazon Web Services services:
- InternalServiceException – 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 GetResources to verify the changes.
- AccessDeniedException – 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 TagResources and TagResource in the CloudWatch API.
For more information on errors that are generated from other Amazon Web Services services, see the documentation for that service.
See: newFailureInfo
smart constructor.
FailureInfo' | |
|
Instances
newFailureInfo :: FailureInfo Source #
Create a value of FailureInfo
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:errorCode:FailureInfo'
, failureInfo_errorCode
- The code of the common error. Valid values include
InternalServiceException
, InvalidParameterException
, and any valid
error code returned by the Amazon Web Services service that hosts the
resource that you want to tag.
$sel:errorMessage:FailureInfo'
, failureInfo_errorMessage
- The message of the common error.
$sel:statusCode:FailureInfo'
, failureInfo_statusCode
- The HTTP status code of the common error.
failureInfo_errorCode :: Lens' FailureInfo (Maybe ResourceErrorCode) Source #
The code of the common error. Valid values include
InternalServiceException
, InvalidParameterException
, and any valid
error code returned by the Amazon Web Services service that hosts the
resource that you want to tag.
failureInfo_errorMessage :: Lens' FailureInfo (Maybe Text) Source #
The message of the common error.
failureInfo_statusCode :: Lens' FailureInfo (Maybe Int) Source #
The HTTP status code of the common error.
ResourceTagMapping
data ResourceTagMapping Source #
A list of resource ARNs and the tags (keys and values) that are associated with each.
See: newResourceTagMapping
smart constructor.
ResourceTagMapping' | |
|
Instances
newResourceTagMapping :: ResourceTagMapping Source #
Create a value of ResourceTagMapping
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:complianceDetails:ResourceTagMapping'
, resourceTagMapping_complianceDetails
- Information that shows whether a resource is compliant with the
effective tag policy, including details on any noncompliant tag keys.
$sel:resourceARN:ResourceTagMapping'
, resourceTagMapping_resourceARN
- The ARN of the resource.
$sel:tags:ResourceTagMapping'
, resourceTagMapping_tags
- The tags that have been applied to one or more Amazon Web Services
resources.
resourceTagMapping_complianceDetails :: Lens' ResourceTagMapping (Maybe ComplianceDetails) Source #
Information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys.
resourceTagMapping_resourceARN :: Lens' ResourceTagMapping (Maybe Text) Source #
The ARN of the resource.
resourceTagMapping_tags :: Lens' ResourceTagMapping (Maybe [Tag]) Source #
The tags that have been applied to one or more Amazon Web Services resources.
Summary
A count of noncompliant resources.
See: newSummary
smart constructor.
Summary' | |
|
Instances
newSummary :: Summary Source #
Create a value of Summary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastUpdated:Summary'
, summary_lastUpdated
- The timestamp that shows when this summary was generated in this Region.
$sel:nonCompliantResources:Summary'
, summary_nonCompliantResources
- The count of noncompliant resources.
$sel:region:Summary'
, summary_region
- The Amazon Web Services Region that the summary applies to.
$sel:resourceType:Summary'
, summary_resourceType
- The Amazon Web Services resource type.
$sel:targetId:Summary'
, summary_targetId
- The account identifier or the root identifier of the organization. If
you don't know the root ID, you can call the Organizations
ListRoots
API.
$sel:targetIdType:Summary'
, summary_targetIdType
- Whether the target is an account, an OU, or the organization root.
summary_lastUpdated :: Lens' Summary (Maybe Text) Source #
The timestamp that shows when this summary was generated in this Region.
summary_nonCompliantResources :: Lens' Summary (Maybe Integer) Source #
The count of noncompliant resources.
summary_region :: Lens' Summary (Maybe Text) Source #
The Amazon Web Services Region that the summary applies to.
summary_targetId :: Lens' Summary (Maybe Text) Source #
The account identifier or the root identifier of the organization. If you don't know the root ID, you can call the Organizations ListRoots API.
summary_targetIdType :: Lens' Summary (Maybe TargetIdType) Source #
Whether the target is an account, an OU, or the organization root.
Tag
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 Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
See: newTag
smart constructor.
Instances
FromJSON Tag Source # | |
Generic Tag Source # | |
Read Tag Source # | |
Show Tag Source # | |
NFData Tag Source # | |
Defined in Amazonka.ResourceGroupsTagging.Types.Tag | |
Eq Tag Source # | |
Hashable Tag Source # | |
Defined in Amazonka.ResourceGroupsTagging.Types.Tag | |
type Rep Tag Source # | |
Defined in Amazonka.ResourceGroupsTagging.Types.Tag type Rep Tag = D1 ('MetaData "Tag" "Amazonka.ResourceGroupsTagging.Types.Tag" "amazonka-resourcegroupstagging-2.0-BMdZcHlIh2ABktMFQEVTUn" 'False) (C1 ('MetaCons "Tag'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Tag
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:key:Tag'
, tag_key
- 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.
$sel:value:Tag'
, tag_value
- 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.
tag_key :: Lens' Tag Text Source #
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.
tag_value :: Lens' Tag Text Source #
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.
TagFilter
A list of tags (keys and values) that are used to specify the associated resources.
See: newTagFilter
smart constructor.
TagFilter' | |
|
Instances
ToJSON TagFilter Source # | |
Generic TagFilter Source # | |
Read TagFilter Source # | |
Show TagFilter Source # | |
NFData TagFilter Source # | |
Eq TagFilter Source # | |
Hashable TagFilter Source # | |
type Rep TagFilter Source # | |
Defined in Amazonka.ResourceGroupsTagging.Types.TagFilter type Rep TagFilter = D1 ('MetaData "TagFilter" "Amazonka.ResourceGroupsTagging.Types.TagFilter" "amazonka-resourcegroupstagging-2.0-BMdZcHlIh2ABktMFQEVTUn" 'False) (C1 ('MetaCons "TagFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) |
newTagFilter :: TagFilter Source #
Create a value of TagFilter
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:key:TagFilter'
, tagFilter_key
- 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.
$sel:values:TagFilter'
, tagFilter_values
- 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.