-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon Resource Groups SDK.
--
-- Derived from API version 2017-11-27 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information, sending requests, and receiving responses.
--
-- It is recommended to use generic lenses or optics from packages such
-- as generic-lens or optics to modify optional fields and
-- deconstruct responses.
--
-- Generated lenses can be found in Amazonka.ResourceGroups.Lens
-- and are suitable for use with a lens package such as lens or
-- lens-family-core.
--
-- See Amazonka.ResourceGroups and the AWS documentation to
-- get started.
@package amazonka-resourcegroups
@version 2.0
module Amazonka.ResourceGroups.Types.FailedResource
-- | A resource that failed to be added to or removed from a group.
--
-- See: newFailedResource smart constructor.
data FailedResource
FailedResource' :: Maybe Text -> Maybe Text -> Maybe Text -> FailedResource
-- | The error code associated with the failure.
[$sel:errorCode:FailedResource'] :: FailedResource -> Maybe Text
-- | The error message text associated with the failure.
[$sel:errorMessage:FailedResource'] :: FailedResource -> Maybe Text
-- | The ARN of the resource that failed to be added or removed.
[$sel:resourceArn:FailedResource'] :: FailedResource -> Maybe Text
-- | Create a value of FailedResource 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:FailedResource', failedResource_errorCode
-- - The error code associated with the failure.
--
-- $sel:errorMessage:FailedResource',
-- failedResource_errorMessage - The error message text associated
-- with the failure.
--
-- $sel:resourceArn:FailedResource',
-- failedResource_resourceArn - The ARN of the resource that
-- failed to be added or removed.
newFailedResource :: FailedResource
-- | The error code associated with the failure.
failedResource_errorCode :: Lens' FailedResource (Maybe Text)
-- | The error message text associated with the failure.
failedResource_errorMessage :: Lens' FailedResource (Maybe Text)
-- | The ARN of the resource that failed to be added or removed.
failedResource_resourceArn :: Lens' FailedResource (Maybe Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance GHC.Show.Show Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance GHC.Read.Read Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.FailedResource.FailedResource
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.FailedResource.FailedResource
module Amazonka.ResourceGroups.Types.Group
-- | A resource group that contains AWS resources. You can assign resources
-- to the group by associating either of the following elements with the
-- group:
--
--
-- - ResourceQuery - Use a resource query to specify a set of tag keys
-- and values. All resources in the same AWS Region and AWS account that
-- have those keys with the same values are included in the group. You
-- can add a resource query when you create the group, or later by using
-- the PutGroupConfiguration operation.
-- - GroupConfiguration - Use a service configuration to associate the
-- group with an AWS service. The configuration specifies which resource
-- types can be included in the group.
--
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe Text -> Text -> Text -> Group
-- | The description of the resource group.
[$sel:description:Group'] :: Group -> Maybe Text
-- | The ARN of the resource group.
[$sel:groupArn:Group'] :: Group -> Text
-- | The name of the resource group.
[$sel:name:Group'] :: Group -> Text
-- | Create a value of Group 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:description:Group', group_description - The
-- description of the resource group.
--
-- $sel:groupArn:Group', group_groupArn - The ARN of the
-- resource group.
--
-- $sel:name:Group', group_name - The name of the resource
-- group.
newGroup :: Text -> Text -> Group
-- | The description of the resource group.
group_description :: Lens' Group (Maybe Text)
-- | The ARN of the resource group.
group_groupArn :: Lens' Group Text
-- | The name of the resource group.
group_name :: Lens' Group Text
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.Group.Group
instance GHC.Show.Show Amazonka.ResourceGroups.Types.Group.Group
instance GHC.Read.Read Amazonka.ResourceGroups.Types.Group.Group
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.Group.Group
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.Group.Group
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.Group.Group
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.Group.Group
module Amazonka.ResourceGroups.Types.GroupConfigurationParameter
-- | A parameter for a group configuration item. For details about group
-- service configuration syntax, see Service configurations for
-- resource groups.
--
-- See: newGroupConfigurationParameter smart constructor.
data GroupConfigurationParameter
GroupConfigurationParameter' :: Maybe [Text] -> Text -> GroupConfigurationParameter
-- | The value or values to be used for the specified parameter. For the
-- list of values you can use with each parameter, see Supported
-- resource types and parameters.
[$sel:values:GroupConfigurationParameter'] :: GroupConfigurationParameter -> Maybe [Text]
-- | The name of the group configuration parameter. For the list of
-- parameters that you can use with each configuration item type, see
-- Supported resource types and parameters.
[$sel:name:GroupConfigurationParameter'] :: GroupConfigurationParameter -> Text
-- | Create a value of GroupConfigurationParameter 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:values:GroupConfigurationParameter',
-- groupConfigurationParameter_values - The value or values to be
-- used for the specified parameter. For the list of values you can use
-- with each parameter, see Supported resource types and
-- parameters.
--
-- $sel:name:GroupConfigurationParameter',
-- groupConfigurationParameter_name - The name of the group
-- configuration parameter. For the list of parameters that you can use
-- with each configuration item type, see Supported resource types and
-- parameters.
newGroupConfigurationParameter :: Text -> GroupConfigurationParameter
-- | The value or values to be used for the specified parameter. For the
-- list of values you can use with each parameter, see Supported
-- resource types and parameters.
groupConfigurationParameter_values :: Lens' GroupConfigurationParameter (Maybe [Text])
-- | The name of the group configuration parameter. For the list of
-- parameters that you can use with each configuration item type, see
-- Supported resource types and parameters.
groupConfigurationParameter_name :: Lens' GroupConfigurationParameter Text
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.GroupConfigurationParameter.GroupConfigurationParameter
module Amazonka.ResourceGroups.Types.GroupConfigurationItem
-- | An item in a group configuration. A group service configuration can
-- have one or more items. For details about group service configuration
-- syntax, see Service configurations for resource groups.
--
-- See: newGroupConfigurationItem smart constructor.
data GroupConfigurationItem
GroupConfigurationItem' :: Maybe [GroupConfigurationParameter] -> Text -> GroupConfigurationItem
-- | A collection of parameters for this group configuration item. For the
-- list of parameters that you can use with each configuration item type,
-- see Supported resource types and parameters.
[$sel:parameters:GroupConfigurationItem'] :: GroupConfigurationItem -> Maybe [GroupConfigurationParameter]
-- | Specifies the type of group configuration item. Each item must have a
-- unique value for type. For the list of types that you can
-- specify for a configuration item, see Supported resource types and
-- parameters.
[$sel:type':GroupConfigurationItem'] :: GroupConfigurationItem -> Text
-- | Create a value of GroupConfigurationItem 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:parameters:GroupConfigurationItem',
-- groupConfigurationItem_parameters - A collection of parameters
-- for this group configuration item. For the list of parameters that you
-- can use with each configuration item type, see Supported resource
-- types and parameters.
--
-- $sel:type':GroupConfigurationItem',
-- groupConfigurationItem_type - Specifies the type of group
-- configuration item. Each item must have a unique value for
-- type. For the list of types that you can specify for a
-- configuration item, see Supported resource types and
-- parameters.
newGroupConfigurationItem :: Text -> GroupConfigurationItem
-- | A collection of parameters for this group configuration item. For the
-- list of parameters that you can use with each configuration item type,
-- see Supported resource types and parameters.
groupConfigurationItem_parameters :: Lens' GroupConfigurationItem (Maybe [GroupConfigurationParameter])
-- | Specifies the type of group configuration item. Each item must have a
-- unique value for type. For the list of types that you can
-- specify for a configuration item, see Supported resource types and
-- parameters.
groupConfigurationItem_type :: Lens' GroupConfigurationItem Text
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.GroupConfigurationItem.GroupConfigurationItem
module Amazonka.ResourceGroups.Types.GroupConfigurationStatus
newtype GroupConfigurationStatus
GroupConfigurationStatus' :: Text -> GroupConfigurationStatus
[fromGroupConfigurationStatus] :: GroupConfigurationStatus -> Text
pattern GroupConfigurationStatus_UPDATE_COMPLETE :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATE_FAILED :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATING :: GroupConfigurationStatus
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupConfigurationStatus.GroupConfigurationStatus
module Amazonka.ResourceGroups.Types.GroupConfiguration
-- | A service configuration associated with a resource group. The
-- configuration options are determined by the AWS service that defines
-- the Type, and specifies which resources can be included in
-- the group. You can add a service configuration when you create the
-- group by using CreateGroup, or later by using the
-- PutGroupConfiguration operation. For details about group service
-- configuration syntax, see Service configurations for resource
-- groups.
--
-- See: newGroupConfiguration smart constructor.
data GroupConfiguration
GroupConfiguration' :: Maybe [GroupConfigurationItem] -> Maybe Text -> Maybe [GroupConfigurationItem] -> Maybe GroupConfigurationStatus -> GroupConfiguration
-- | The configuration currently associated with the group and in effect.
[$sel:configuration:GroupConfiguration'] :: GroupConfiguration -> Maybe [GroupConfigurationItem]
-- | If present, the reason why a request to update the group configuration
-- failed.
[$sel:failureReason:GroupConfiguration'] :: GroupConfiguration -> Maybe Text
-- | If present, the new configuration that is in the process of being
-- applied to the group.
[$sel:proposedConfiguration:GroupConfiguration'] :: GroupConfiguration -> Maybe [GroupConfigurationItem]
-- | The current status of an attempt to update the group configuration.
[$sel:status:GroupConfiguration'] :: GroupConfiguration -> Maybe GroupConfigurationStatus
-- | Create a value of GroupConfiguration 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:configuration:GroupConfiguration',
-- groupConfiguration_configuration - The configuration currently
-- associated with the group and in effect.
--
-- $sel:failureReason:GroupConfiguration',
-- groupConfiguration_failureReason - If present, the reason why a
-- request to update the group configuration failed.
--
-- $sel:proposedConfiguration:GroupConfiguration',
-- groupConfiguration_proposedConfiguration - If present, the new
-- configuration that is in the process of being applied to the group.
--
-- $sel:status:GroupConfiguration',
-- groupConfiguration_status - The current status of an attempt to
-- update the group configuration.
newGroupConfiguration :: GroupConfiguration
-- | The configuration currently associated with the group and in effect.
groupConfiguration_configuration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | If present, the reason why a request to update the group configuration
-- failed.
groupConfiguration_failureReason :: Lens' GroupConfiguration (Maybe Text)
-- | If present, the new configuration that is in the process of being
-- applied to the group.
groupConfiguration_proposedConfiguration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | The current status of an attempt to update the group configuration.
groupConfiguration_status :: Lens' GroupConfiguration (Maybe GroupConfigurationStatus)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupConfiguration.GroupConfiguration
module Amazonka.ResourceGroups.Types.GroupFilterName
newtype GroupFilterName
GroupFilterName' :: Text -> GroupFilterName
[fromGroupFilterName] :: GroupFilterName -> Text
pattern GroupFilterName_Configuration_type :: GroupFilterName
pattern GroupFilterName_Resource_type :: GroupFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupFilterName.GroupFilterName
module Amazonka.ResourceGroups.Types.GroupFilter
-- | A filter collection that you can use to restrict the results from a
-- List operation to only those you want to include.
--
-- See: newGroupFilter smart constructor.
data GroupFilter
GroupFilter' :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | The name of the filter. Filter names are case-sensitive.
[$sel:name:GroupFilter'] :: GroupFilter -> GroupFilterName
-- | One or more filter values. Allowed filter values vary by group filter
-- name, and are case-sensitive.
[$sel:values:GroupFilter'] :: GroupFilter -> NonEmpty Text
-- | Create a value of GroupFilter 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:name:GroupFilter', groupFilter_name - The name of
-- the filter. Filter names are case-sensitive.
--
-- $sel:values:GroupFilter', groupFilter_values - One or
-- more filter values. Allowed filter values vary by group filter name,
-- and are case-sensitive.
newGroupFilter :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | The name of the filter. Filter names are case-sensitive.
groupFilter_name :: Lens' GroupFilter GroupFilterName
-- | One or more filter values. Allowed filter values vary by group filter
-- name, and are case-sensitive.
groupFilter_values :: Lens' GroupFilter (NonEmpty Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.GroupFilter.GroupFilter
module Amazonka.ResourceGroups.Types.GroupIdentifier
-- | The unique identifiers for a resource group.
--
-- See: newGroupIdentifier smart constructor.
data GroupIdentifier
GroupIdentifier' :: Maybe Text -> Maybe Text -> GroupIdentifier
-- | The ARN of the resource group.
[$sel:groupArn:GroupIdentifier'] :: GroupIdentifier -> Maybe Text
-- | The name of the resource group.
[$sel:groupName:GroupIdentifier'] :: GroupIdentifier -> Maybe Text
-- | Create a value of GroupIdentifier 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:groupArn:GroupIdentifier', groupIdentifier_groupArn
-- - The ARN of the resource group.
--
-- $sel:groupName:GroupIdentifier',
-- groupIdentifier_groupName - The name of the resource group.
newGroupIdentifier :: GroupIdentifier
-- | The ARN of the resource group.
groupIdentifier_groupArn :: Lens' GroupIdentifier (Maybe Text)
-- | The name of the resource group.
groupIdentifier_groupName :: Lens' GroupIdentifier (Maybe Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupIdentifier.GroupIdentifier
module Amazonka.ResourceGroups.Types.PendingResource
-- | A structure that identifies a resource that is currently pending
-- addition to the group as a member. Adding a resource to a resource
-- group happens asynchronously as a background task and this one isn't
-- completed yet.
--
-- See: newPendingResource smart constructor.
data PendingResource
PendingResource' :: Maybe Text -> PendingResource
-- | The Amazon resource name (ARN) of the resource that's in a pending
-- state.
[$sel:resourceArn:PendingResource'] :: PendingResource -> Maybe Text
-- | Create a value of PendingResource 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:resourceArn:PendingResource',
-- pendingResource_resourceArn - The Amazon resource name (ARN) of
-- the resource that's in a pending state.
newPendingResource :: PendingResource
-- | The Amazon resource name (ARN) of the resource that's in a pending
-- state.
pendingResource_resourceArn :: Lens' PendingResource (Maybe Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance GHC.Show.Show Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance GHC.Read.Read Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.PendingResource.PendingResource
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.PendingResource.PendingResource
module Amazonka.ResourceGroups.Types.QueryErrorCode
newtype QueryErrorCode
QueryErrorCode' :: Text -> QueryErrorCode
[fromQueryErrorCode] :: QueryErrorCode -> Text
pattern QueryErrorCode_CLOUDFORMATION_STACK_INACTIVE :: QueryErrorCode
pattern QueryErrorCode_CLOUDFORMATION_STACK_NOT_EXISTING :: QueryErrorCode
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance GHC.Read.Read Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
instance GHC.Show.Show Amazonka.ResourceGroups.Types.QueryErrorCode.QueryErrorCode
module Amazonka.ResourceGroups.Types.QueryError
-- | A two-part error structure that can occur in
-- ListGroupResources or SearchResources operations on
-- CloudFormation stack-based queries. The error occurs if the
-- CloudFormation stack on which the query is based either does not
-- exist, or has a status that renders the stack inactive. A
-- QueryError occurrence does not necessarily mean that AWS
-- Resource Groups could not complete the operation, but the resulting
-- group might have no member resources.
--
-- See: newQueryError smart constructor.
data QueryError
QueryError' :: Maybe QueryErrorCode -> Maybe Text -> QueryError
-- | Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
[$sel:errorCode:QueryError'] :: QueryError -> Maybe QueryErrorCode
-- | A message that explains the ErrorCode value. Messages might
-- state that the specified CloudFormation stack does not exist (or no
-- longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
-- message typically states that the CloudFormation stack has a status
-- that is not (or no longer) active, such as CREATE_FAILED.
[$sel:message:QueryError'] :: QueryError -> Maybe Text
-- | Create a value of QueryError 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:QueryError', queryError_errorCode -
-- Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:message:QueryError', queryError_message - A message
-- that explains the ErrorCode value. Messages might state that
-- the specified CloudFormation stack does not exist (or no longer
-- exists). For CLOUDFORMATION_STACK_INACTIVE, the message
-- typically states that the CloudFormation stack has a status that is
-- not (or no longer) active, such as CREATE_FAILED.
newQueryError :: QueryError
-- | Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
queryError_errorCode :: Lens' QueryError (Maybe QueryErrorCode)
-- | A message that explains the ErrorCode value. Messages might
-- state that the specified CloudFormation stack does not exist (or no
-- longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
-- message typically states that the CloudFormation stack has a status
-- that is not (or no longer) active, such as CREATE_FAILED.
queryError_message :: Lens' QueryError (Maybe Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.QueryError.QueryError
instance GHC.Show.Show Amazonka.ResourceGroups.Types.QueryError.QueryError
instance GHC.Read.Read Amazonka.ResourceGroups.Types.QueryError.QueryError
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.QueryError.QueryError
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.QueryError.QueryError
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.QueryError.QueryError
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.QueryError.QueryError
module Amazonka.ResourceGroups.Types.QueryType
newtype QueryType
QueryType' :: Text -> QueryType
[fromQueryType] :: QueryType -> Text
pattern QueryType_CLOUDFORMATION_STACK_1_0 :: QueryType
pattern QueryType_TAG_FILTERS_1_0 :: QueryType
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.QueryType.QueryType
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.QueryType.QueryType
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.QueryType.QueryType
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.QueryType.QueryType
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.QueryType.QueryType
instance GHC.Read.Read Amazonka.ResourceGroups.Types.QueryType.QueryType
instance GHC.Show.Show Amazonka.ResourceGroups.Types.QueryType.QueryType
module Amazonka.ResourceGroups.Types.ResourceFilterName
newtype ResourceFilterName
ResourceFilterName' :: Text -> ResourceFilterName
[fromResourceFilterName] :: ResourceFilterName -> Text
pattern ResourceFilterName_Resource_type :: ResourceFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceFilterName.ResourceFilterName
module Amazonka.ResourceGroups.Types.ResourceFilter
-- | A filter name and value pair that is used to obtain more specific
-- results from a list of resources.
--
-- See: newResourceFilter smart constructor.
data ResourceFilter
ResourceFilter' :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | The name of the filter. Filter names are case-sensitive.
[$sel:name:ResourceFilter'] :: ResourceFilter -> ResourceFilterName
-- | One or more filter values. Allowed filter values vary by resource
-- filter name, and are case-sensitive.
[$sel:values:ResourceFilter'] :: ResourceFilter -> NonEmpty Text
-- | Create a value of ResourceFilter 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:name:ResourceFilter', resourceFilter_name - The
-- name of the filter. Filter names are case-sensitive.
--
-- $sel:values:ResourceFilter', resourceFilter_values - One
-- or more filter values. Allowed filter values vary by resource filter
-- name, and are case-sensitive.
newResourceFilter :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | The name of the filter. Filter names are case-sensitive.
resourceFilter_name :: Lens' ResourceFilter ResourceFilterName
-- | One or more filter values. Allowed filter values vary by resource
-- filter name, and are case-sensitive.
resourceFilter_values :: Lens' ResourceFilter (NonEmpty Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.ResourceFilter.ResourceFilter
module Amazonka.ResourceGroups.Types.ResourceIdentifier
-- | A structure that contains the ARN of a resource and its resource type.
--
-- See: newResourceIdentifier smart constructor.
data ResourceIdentifier
ResourceIdentifier' :: Maybe Text -> Maybe Text -> ResourceIdentifier
-- | The ARN of a resource.
[$sel:resourceArn:ResourceIdentifier'] :: ResourceIdentifier -> Maybe Text
-- | The resource type of a resource, such as AWS::EC2::Instance.
[$sel:resourceType:ResourceIdentifier'] :: ResourceIdentifier -> Maybe Text
-- | Create a value of ResourceIdentifier 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:resourceArn:ResourceIdentifier',
-- resourceIdentifier_resourceArn - The ARN of a resource.
--
-- $sel:resourceType:ResourceIdentifier',
-- resourceIdentifier_resourceType - The resource type of a
-- resource, such as AWS::EC2::Instance.
newResourceIdentifier :: ResourceIdentifier
-- | The ARN of a resource.
resourceIdentifier_resourceArn :: Lens' ResourceIdentifier (Maybe Text)
-- | The resource type of a resource, such as AWS::EC2::Instance.
resourceIdentifier_resourceType :: Lens' ResourceIdentifier (Maybe Text)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceIdentifier.ResourceIdentifier
module Amazonka.ResourceGroups.Types.ResourceQuery
-- | The query that is used to define a resource group or a search for
-- resources. A query specifies both a query type and a query string as a
-- JSON object. See the examples section for example JSON strings.
--
-- The examples that follow are shown as standard JSON strings. If you
-- include such a string as a parameter to the AWS CLI or an SDK API, you
-- might need to 'escape' the string into a single line. For example, see
-- the Quoting strings in the AWS CLI User Guide.
--
-- Example 1
--
-- The following generic example shows a resource query JSON string that
-- includes only resources that meet the following criteria:
--
--
-- - The resource type must be either resource_type1 or
-- resource_type2.
-- - The resource must have a tag Key1 with a value of either
-- ValueA or ValueB.
-- - The resource must have a tag Key2 with a value of either
-- ValueC or ValueD.
--
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key": "Key1", "Values": ["ValueA","ValueB"] }, { "Key":"Key2", "Values":["ValueC","ValueD"] } ] } }
--
--
-- This has the equivalent "shortcut" syntax of the following:
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key1": ["ValueA","ValueB"] }, { "Key2": ["ValueC","ValueD"] } ] } }
--
--
-- Example 2
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances that are tagged Stage with a value
-- of Test.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": "{ "ResourceTypeFilters": "AWS::EC2::Instance", "TagFilters": { "Stage": "Test" } } }
--
--
-- Example 3
--
-- The following example shows a resource query JSON string that includes
-- resource of any supported type as long as it is tagged Stage
-- with a value of Prod.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": "AWS::AllSupported", "TagFilters": { "Stage": "Prod" } } }
--
--
-- Example 4
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances and Amazon S3 buckets that are part of the
-- specified AWS CloudFormation stack.
--
--
-- { "Type": "CLOUDFORMATION_STACK_1_0", "Query": { "ResourceTypeFilters": [ "AWS::EC2::Instance", "AWS::S3::Bucket" ], "StackIdentifier": "arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE" } }
--
--
-- See: newResourceQuery smart constructor.
data ResourceQuery
ResourceQuery' :: QueryType -> Text -> ResourceQuery
-- | The type of the query. You can use the following values:
--
--
[$sel:type':ResourceQuery'] :: ResourceQuery -> QueryType
-- | The query that defines a group or a search.
[$sel:query:ResourceQuery'] :: ResourceQuery -> Text
-- | Create a value of ResourceQuery 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:type':ResourceQuery', resourceQuery_type - The type
-- of the query. You can use the following values:
--
--
--
-- $sel:query:ResourceQuery', resourceQuery_searchQuery -
-- The query that defines a group or a search.
newResourceQuery :: QueryType -> Text -> ResourceQuery
-- | The type of the query. You can use the following values:
--
--
resourceQuery_type :: Lens' ResourceQuery QueryType
-- | The query that defines a group or a search.
resourceQuery_searchQuery :: Lens' ResourceQuery Text
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.ResourceQuery.ResourceQuery
module Amazonka.ResourceGroups.Types.GroupQuery
-- | A mapping of a query attached to a resource group that determines the
-- AWS resources that are members of the group.
--
-- See: newGroupQuery smart constructor.
data GroupQuery
GroupQuery' :: Text -> ResourceQuery -> GroupQuery
-- | The name of the resource group that is associated with the specified
-- resource query.
[$sel:groupName:GroupQuery'] :: GroupQuery -> Text
-- | The resource query that determines which AWS resources are members of
-- the associated resource group.
[$sel:resourceQuery:GroupQuery'] :: GroupQuery -> ResourceQuery
-- | Create a value of GroupQuery 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:groupName:GroupQuery', groupQuery_groupName - The
-- name of the resource group that is associated with the specified
-- resource query.
--
-- $sel:resourceQuery:GroupQuery', groupQuery_resourceQuery
-- - The resource query that determines which AWS resources are members
-- of the associated resource group.
newGroupQuery :: Text -> ResourceQuery -> GroupQuery
-- | The name of the resource group that is associated with the specified
-- resource query.
groupQuery_groupName :: Lens' GroupQuery Text
-- | The resource query that determines which AWS resources are members of
-- the associated resource group.
groupQuery_resourceQuery :: Lens' GroupQuery ResourceQuery
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance GHC.Show.Show Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance GHC.Read.Read Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.GroupQuery.GroupQuery
module Amazonka.ResourceGroups.Types.ResourceStatusValue
newtype ResourceStatusValue
ResourceStatusValue' :: Text -> ResourceStatusValue
[fromResourceStatusValue] :: ResourceStatusValue -> Text
pattern ResourceStatusValue_PENDING :: ResourceStatusValue
instance Amazonka.Data.XML.ToXML Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.XML.FromXML Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.Headers.ToHeader Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.Log.ToLog Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.ByteString.ToByteString Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.Text.ToText Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Amazonka.Data.Text.FromText Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance GHC.Classes.Ord Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceStatusValue.ResourceStatusValue
module Amazonka.ResourceGroups.Types.ResourceStatus
-- | A structure that identifies the current group membership status for a
-- resource. Adding a resource to a resource group is performed
-- asynchronously as a background task. A PENDING status
-- indicates, for this resource, that the process isn't completed yet.
--
-- See: newResourceStatus smart constructor.
data ResourceStatus
ResourceStatus' :: Maybe ResourceStatusValue -> ResourceStatus
-- | The current status.
[$sel:name:ResourceStatus'] :: ResourceStatus -> Maybe ResourceStatusValue
-- | Create a value of ResourceStatus 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:name:ResourceStatus', resourceStatus_name - The
-- current status.
newResourceStatus :: ResourceStatus
-- | The current status.
resourceStatus_name :: Lens' ResourceStatus (Maybe ResourceStatusValue)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ResourceStatus.ResourceStatus
module Amazonka.ResourceGroups.Types.ListGroupResourcesItem
-- | A structure returned by the ListGroupResources operation that contains
-- identity and group membership status information for one of the
-- resources in the group.
--
-- See: newListGroupResourcesItem smart constructor.
data ListGroupResourcesItem
ListGroupResourcesItem' :: Maybe ResourceIdentifier -> Maybe ResourceStatus -> ListGroupResourcesItem
[$sel:identifier:ListGroupResourcesItem'] :: ListGroupResourcesItem -> Maybe ResourceIdentifier
-- | A structure that contains the status of this resource's membership in
-- the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
[$sel:status:ListGroupResourcesItem'] :: ListGroupResourcesItem -> Maybe ResourceStatus
-- | Create a value of ListGroupResourcesItem 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:identifier:ListGroupResourcesItem',
-- listGroupResourcesItem_identifier - Undocumented member.
--
-- $sel:status:ListGroupResourcesItem',
-- listGroupResourcesItem_status - A structure that contains the
-- status of this resource's membership in the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
newListGroupResourcesItem :: ListGroupResourcesItem
-- | Undocumented member.
listGroupResourcesItem_identifier :: Lens' ListGroupResourcesItem (Maybe ResourceIdentifier)
-- | A structure that contains the status of this resource's membership in
-- the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
listGroupResourcesItem_status :: Lens' ListGroupResourcesItem (Maybe ResourceStatus)
instance GHC.Generics.Generic Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance GHC.Show.Show Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance GHC.Read.Read Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance GHC.Classes.Eq Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Types.ListGroupResourcesItem.ListGroupResourcesItem
module Amazonka.ResourceGroups.Types
-- | API version 2017-11-27 of the Amazon Resource Groups SDK
-- configuration.
defaultService :: Service
-- | The request includes one or more parameters that violate validation
-- rules.
_BadRequestException :: AsError a => Fold a ServiceError
-- | The caller isn't authorized to make the request. Check permissions.
_ForbiddenException :: AsError a => Fold a ServiceError
-- | An internal error occurred while processing the request. Try again
-- later.
_InternalServerErrorException :: AsError a => Fold a ServiceError
-- | The request uses an HTTP method that isn't allowed for the specified
-- resource.
_MethodNotAllowedException :: AsError a => Fold a ServiceError
-- | One or more of the specified resources don't exist.
_NotFoundException :: AsError a => Fold a ServiceError
-- | You've exceeded throttling limits by making too many requests in a
-- period of time.
_TooManyRequestsException :: AsError a => Fold a ServiceError
-- | The request was rejected because it doesn't have valid credentials for
-- the target resource.
_UnauthorizedException :: AsError a => Fold a ServiceError
newtype GroupConfigurationStatus
GroupConfigurationStatus' :: Text -> GroupConfigurationStatus
[fromGroupConfigurationStatus] :: GroupConfigurationStatus -> Text
pattern GroupConfigurationStatus_UPDATE_COMPLETE :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATE_FAILED :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATING :: GroupConfigurationStatus
newtype GroupFilterName
GroupFilterName' :: Text -> GroupFilterName
[fromGroupFilterName] :: GroupFilterName -> Text
pattern GroupFilterName_Configuration_type :: GroupFilterName
pattern GroupFilterName_Resource_type :: GroupFilterName
newtype QueryErrorCode
QueryErrorCode' :: Text -> QueryErrorCode
[fromQueryErrorCode] :: QueryErrorCode -> Text
pattern QueryErrorCode_CLOUDFORMATION_STACK_INACTIVE :: QueryErrorCode
pattern QueryErrorCode_CLOUDFORMATION_STACK_NOT_EXISTING :: QueryErrorCode
newtype QueryType
QueryType' :: Text -> QueryType
[fromQueryType] :: QueryType -> Text
pattern QueryType_CLOUDFORMATION_STACK_1_0 :: QueryType
pattern QueryType_TAG_FILTERS_1_0 :: QueryType
newtype ResourceFilterName
ResourceFilterName' :: Text -> ResourceFilterName
[fromResourceFilterName] :: ResourceFilterName -> Text
pattern ResourceFilterName_Resource_type :: ResourceFilterName
newtype ResourceStatusValue
ResourceStatusValue' :: Text -> ResourceStatusValue
[fromResourceStatusValue] :: ResourceStatusValue -> Text
pattern ResourceStatusValue_PENDING :: ResourceStatusValue
-- | A resource that failed to be added to or removed from a group.
--
-- See: newFailedResource smart constructor.
data FailedResource
FailedResource' :: Maybe Text -> Maybe Text -> Maybe Text -> FailedResource
-- | The error code associated with the failure.
[$sel:errorCode:FailedResource'] :: FailedResource -> Maybe Text
-- | The error message text associated with the failure.
[$sel:errorMessage:FailedResource'] :: FailedResource -> Maybe Text
-- | The ARN of the resource that failed to be added or removed.
[$sel:resourceArn:FailedResource'] :: FailedResource -> Maybe Text
-- | Create a value of FailedResource 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:FailedResource', failedResource_errorCode
-- - The error code associated with the failure.
--
-- $sel:errorMessage:FailedResource',
-- failedResource_errorMessage - The error message text associated
-- with the failure.
--
-- $sel:resourceArn:FailedResource',
-- failedResource_resourceArn - The ARN of the resource that
-- failed to be added or removed.
newFailedResource :: FailedResource
-- | The error code associated with the failure.
failedResource_errorCode :: Lens' FailedResource (Maybe Text)
-- | The error message text associated with the failure.
failedResource_errorMessage :: Lens' FailedResource (Maybe Text)
-- | The ARN of the resource that failed to be added or removed.
failedResource_resourceArn :: Lens' FailedResource (Maybe Text)
-- | A resource group that contains AWS resources. You can assign resources
-- to the group by associating either of the following elements with the
-- group:
--
--
-- - ResourceQuery - Use a resource query to specify a set of tag keys
-- and values. All resources in the same AWS Region and AWS account that
-- have those keys with the same values are included in the group. You
-- can add a resource query when you create the group, or later by using
-- the PutGroupConfiguration operation.
-- - GroupConfiguration - Use a service configuration to associate the
-- group with an AWS service. The configuration specifies which resource
-- types can be included in the group.
--
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe Text -> Text -> Text -> Group
-- | The description of the resource group.
[$sel:description:Group'] :: Group -> Maybe Text
-- | The ARN of the resource group.
[$sel:groupArn:Group'] :: Group -> Text
-- | The name of the resource group.
[$sel:name:Group'] :: Group -> Text
-- | Create a value of Group 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:description:Group', group_description - The
-- description of the resource group.
--
-- $sel:groupArn:Group', group_groupArn - The ARN of the
-- resource group.
--
-- $sel:name:Group', group_name - The name of the resource
-- group.
newGroup :: Text -> Text -> Group
-- | The description of the resource group.
group_description :: Lens' Group (Maybe Text)
-- | The ARN of the resource group.
group_groupArn :: Lens' Group Text
-- | The name of the resource group.
group_name :: Lens' Group Text
-- | A service configuration associated with a resource group. The
-- configuration options are determined by the AWS service that defines
-- the Type, and specifies which resources can be included in
-- the group. You can add a service configuration when you create the
-- group by using CreateGroup, or later by using the
-- PutGroupConfiguration operation. For details about group service
-- configuration syntax, see Service configurations for resource
-- groups.
--
-- See: newGroupConfiguration smart constructor.
data GroupConfiguration
GroupConfiguration' :: Maybe [GroupConfigurationItem] -> Maybe Text -> Maybe [GroupConfigurationItem] -> Maybe GroupConfigurationStatus -> GroupConfiguration
-- | The configuration currently associated with the group and in effect.
[$sel:configuration:GroupConfiguration'] :: GroupConfiguration -> Maybe [GroupConfigurationItem]
-- | If present, the reason why a request to update the group configuration
-- failed.
[$sel:failureReason:GroupConfiguration'] :: GroupConfiguration -> Maybe Text
-- | If present, the new configuration that is in the process of being
-- applied to the group.
[$sel:proposedConfiguration:GroupConfiguration'] :: GroupConfiguration -> Maybe [GroupConfigurationItem]
-- | The current status of an attempt to update the group configuration.
[$sel:status:GroupConfiguration'] :: GroupConfiguration -> Maybe GroupConfigurationStatus
-- | Create a value of GroupConfiguration 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:configuration:GroupConfiguration',
-- groupConfiguration_configuration - The configuration currently
-- associated with the group and in effect.
--
-- $sel:failureReason:GroupConfiguration',
-- groupConfiguration_failureReason - If present, the reason why a
-- request to update the group configuration failed.
--
-- $sel:proposedConfiguration:GroupConfiguration',
-- groupConfiguration_proposedConfiguration - If present, the new
-- configuration that is in the process of being applied to the group.
--
-- $sel:status:GroupConfiguration',
-- groupConfiguration_status - The current status of an attempt to
-- update the group configuration.
newGroupConfiguration :: GroupConfiguration
-- | The configuration currently associated with the group and in effect.
groupConfiguration_configuration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | If present, the reason why a request to update the group configuration
-- failed.
groupConfiguration_failureReason :: Lens' GroupConfiguration (Maybe Text)
-- | If present, the new configuration that is in the process of being
-- applied to the group.
groupConfiguration_proposedConfiguration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | The current status of an attempt to update the group configuration.
groupConfiguration_status :: Lens' GroupConfiguration (Maybe GroupConfigurationStatus)
-- | An item in a group configuration. A group service configuration can
-- have one or more items. For details about group service configuration
-- syntax, see Service configurations for resource groups.
--
-- See: newGroupConfigurationItem smart constructor.
data GroupConfigurationItem
GroupConfigurationItem' :: Maybe [GroupConfigurationParameter] -> Text -> GroupConfigurationItem
-- | A collection of parameters for this group configuration item. For the
-- list of parameters that you can use with each configuration item type,
-- see Supported resource types and parameters.
[$sel:parameters:GroupConfigurationItem'] :: GroupConfigurationItem -> Maybe [GroupConfigurationParameter]
-- | Specifies the type of group configuration item. Each item must have a
-- unique value for type. For the list of types that you can
-- specify for a configuration item, see Supported resource types and
-- parameters.
[$sel:type':GroupConfigurationItem'] :: GroupConfigurationItem -> Text
-- | Create a value of GroupConfigurationItem 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:parameters:GroupConfigurationItem',
-- groupConfigurationItem_parameters - A collection of parameters
-- for this group configuration item. For the list of parameters that you
-- can use with each configuration item type, see Supported resource
-- types and parameters.
--
-- $sel:type':GroupConfigurationItem',
-- groupConfigurationItem_type - Specifies the type of group
-- configuration item. Each item must have a unique value for
-- type. For the list of types that you can specify for a
-- configuration item, see Supported resource types and
-- parameters.
newGroupConfigurationItem :: Text -> GroupConfigurationItem
-- | A collection of parameters for this group configuration item. For the
-- list of parameters that you can use with each configuration item type,
-- see Supported resource types and parameters.
groupConfigurationItem_parameters :: Lens' GroupConfigurationItem (Maybe [GroupConfigurationParameter])
-- | Specifies the type of group configuration item. Each item must have a
-- unique value for type. For the list of types that you can
-- specify for a configuration item, see Supported resource types and
-- parameters.
groupConfigurationItem_type :: Lens' GroupConfigurationItem Text
-- | A parameter for a group configuration item. For details about group
-- service configuration syntax, see Service configurations for
-- resource groups.
--
-- See: newGroupConfigurationParameter smart constructor.
data GroupConfigurationParameter
GroupConfigurationParameter' :: Maybe [Text] -> Text -> GroupConfigurationParameter
-- | The value or values to be used for the specified parameter. For the
-- list of values you can use with each parameter, see Supported
-- resource types and parameters.
[$sel:values:GroupConfigurationParameter'] :: GroupConfigurationParameter -> Maybe [Text]
-- | The name of the group configuration parameter. For the list of
-- parameters that you can use with each configuration item type, see
-- Supported resource types and parameters.
[$sel:name:GroupConfigurationParameter'] :: GroupConfigurationParameter -> Text
-- | Create a value of GroupConfigurationParameter 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:values:GroupConfigurationParameter',
-- groupConfigurationParameter_values - The value or values to be
-- used for the specified parameter. For the list of values you can use
-- with each parameter, see Supported resource types and
-- parameters.
--
-- $sel:name:GroupConfigurationParameter',
-- groupConfigurationParameter_name - The name of the group
-- configuration parameter. For the list of parameters that you can use
-- with each configuration item type, see Supported resource types and
-- parameters.
newGroupConfigurationParameter :: Text -> GroupConfigurationParameter
-- | The value or values to be used for the specified parameter. For the
-- list of values you can use with each parameter, see Supported
-- resource types and parameters.
groupConfigurationParameter_values :: Lens' GroupConfigurationParameter (Maybe [Text])
-- | The name of the group configuration parameter. For the list of
-- parameters that you can use with each configuration item type, see
-- Supported resource types and parameters.
groupConfigurationParameter_name :: Lens' GroupConfigurationParameter Text
-- | A filter collection that you can use to restrict the results from a
-- List operation to only those you want to include.
--
-- See: newGroupFilter smart constructor.
data GroupFilter
GroupFilter' :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | The name of the filter. Filter names are case-sensitive.
[$sel:name:GroupFilter'] :: GroupFilter -> GroupFilterName
-- | One or more filter values. Allowed filter values vary by group filter
-- name, and are case-sensitive.
[$sel:values:GroupFilter'] :: GroupFilter -> NonEmpty Text
-- | Create a value of GroupFilter 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:name:GroupFilter', groupFilter_name - The name of
-- the filter. Filter names are case-sensitive.
--
-- $sel:values:GroupFilter', groupFilter_values - One or
-- more filter values. Allowed filter values vary by group filter name,
-- and are case-sensitive.
newGroupFilter :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | The name of the filter. Filter names are case-sensitive.
groupFilter_name :: Lens' GroupFilter GroupFilterName
-- | One or more filter values. Allowed filter values vary by group filter
-- name, and are case-sensitive.
groupFilter_values :: Lens' GroupFilter (NonEmpty Text)
-- | The unique identifiers for a resource group.
--
-- See: newGroupIdentifier smart constructor.
data GroupIdentifier
GroupIdentifier' :: Maybe Text -> Maybe Text -> GroupIdentifier
-- | The ARN of the resource group.
[$sel:groupArn:GroupIdentifier'] :: GroupIdentifier -> Maybe Text
-- | The name of the resource group.
[$sel:groupName:GroupIdentifier'] :: GroupIdentifier -> Maybe Text
-- | Create a value of GroupIdentifier 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:groupArn:GroupIdentifier', groupIdentifier_groupArn
-- - The ARN of the resource group.
--
-- $sel:groupName:GroupIdentifier',
-- groupIdentifier_groupName - The name of the resource group.
newGroupIdentifier :: GroupIdentifier
-- | The ARN of the resource group.
groupIdentifier_groupArn :: Lens' GroupIdentifier (Maybe Text)
-- | The name of the resource group.
groupIdentifier_groupName :: Lens' GroupIdentifier (Maybe Text)
-- | A mapping of a query attached to a resource group that determines the
-- AWS resources that are members of the group.
--
-- See: newGroupQuery smart constructor.
data GroupQuery
GroupQuery' :: Text -> ResourceQuery -> GroupQuery
-- | The name of the resource group that is associated with the specified
-- resource query.
[$sel:groupName:GroupQuery'] :: GroupQuery -> Text
-- | The resource query that determines which AWS resources are members of
-- the associated resource group.
[$sel:resourceQuery:GroupQuery'] :: GroupQuery -> ResourceQuery
-- | Create a value of GroupQuery 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:groupName:GroupQuery', groupQuery_groupName - The
-- name of the resource group that is associated with the specified
-- resource query.
--
-- $sel:resourceQuery:GroupQuery', groupQuery_resourceQuery
-- - The resource query that determines which AWS resources are members
-- of the associated resource group.
newGroupQuery :: Text -> ResourceQuery -> GroupQuery
-- | The name of the resource group that is associated with the specified
-- resource query.
groupQuery_groupName :: Lens' GroupQuery Text
-- | The resource query that determines which AWS resources are members of
-- the associated resource group.
groupQuery_resourceQuery :: Lens' GroupQuery ResourceQuery
-- | A structure returned by the ListGroupResources operation that contains
-- identity and group membership status information for one of the
-- resources in the group.
--
-- See: newListGroupResourcesItem smart constructor.
data ListGroupResourcesItem
ListGroupResourcesItem' :: Maybe ResourceIdentifier -> Maybe ResourceStatus -> ListGroupResourcesItem
[$sel:identifier:ListGroupResourcesItem'] :: ListGroupResourcesItem -> Maybe ResourceIdentifier
-- | A structure that contains the status of this resource's membership in
-- the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
[$sel:status:ListGroupResourcesItem'] :: ListGroupResourcesItem -> Maybe ResourceStatus
-- | Create a value of ListGroupResourcesItem 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:identifier:ListGroupResourcesItem',
-- listGroupResourcesItem_identifier - Undocumented member.
--
-- $sel:status:ListGroupResourcesItem',
-- listGroupResourcesItem_status - A structure that contains the
-- status of this resource's membership in the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
newListGroupResourcesItem :: ListGroupResourcesItem
-- | Undocumented member.
listGroupResourcesItem_identifier :: Lens' ListGroupResourcesItem (Maybe ResourceIdentifier)
-- | A structure that contains the status of this resource's membership in
-- the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
listGroupResourcesItem_status :: Lens' ListGroupResourcesItem (Maybe ResourceStatus)
-- | A structure that identifies a resource that is currently pending
-- addition to the group as a member. Adding a resource to a resource
-- group happens asynchronously as a background task and this one isn't
-- completed yet.
--
-- See: newPendingResource smart constructor.
data PendingResource
PendingResource' :: Maybe Text -> PendingResource
-- | The Amazon resource name (ARN) of the resource that's in a pending
-- state.
[$sel:resourceArn:PendingResource'] :: PendingResource -> Maybe Text
-- | Create a value of PendingResource 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:resourceArn:PendingResource',
-- pendingResource_resourceArn - The Amazon resource name (ARN) of
-- the resource that's in a pending state.
newPendingResource :: PendingResource
-- | The Amazon resource name (ARN) of the resource that's in a pending
-- state.
pendingResource_resourceArn :: Lens' PendingResource (Maybe Text)
-- | A two-part error structure that can occur in
-- ListGroupResources or SearchResources operations on
-- CloudFormation stack-based queries. The error occurs if the
-- CloudFormation stack on which the query is based either does not
-- exist, or has a status that renders the stack inactive. A
-- QueryError occurrence does not necessarily mean that AWS
-- Resource Groups could not complete the operation, but the resulting
-- group might have no member resources.
--
-- See: newQueryError smart constructor.
data QueryError
QueryError' :: Maybe QueryErrorCode -> Maybe Text -> QueryError
-- | Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
[$sel:errorCode:QueryError'] :: QueryError -> Maybe QueryErrorCode
-- | A message that explains the ErrorCode value. Messages might
-- state that the specified CloudFormation stack does not exist (or no
-- longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
-- message typically states that the CloudFormation stack has a status
-- that is not (or no longer) active, such as CREATE_FAILED.
[$sel:message:QueryError'] :: QueryError -> Maybe Text
-- | Create a value of QueryError 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:QueryError', queryError_errorCode -
-- Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:message:QueryError', queryError_message - A message
-- that explains the ErrorCode value. Messages might state that
-- the specified CloudFormation stack does not exist (or no longer
-- exists). For CLOUDFORMATION_STACK_INACTIVE, the message
-- typically states that the CloudFormation stack has a status that is
-- not (or no longer) active, such as CREATE_FAILED.
newQueryError :: QueryError
-- | Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
queryError_errorCode :: Lens' QueryError (Maybe QueryErrorCode)
-- | A message that explains the ErrorCode value. Messages might
-- state that the specified CloudFormation stack does not exist (or no
-- longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
-- message typically states that the CloudFormation stack has a status
-- that is not (or no longer) active, such as CREATE_FAILED.
queryError_message :: Lens' QueryError (Maybe Text)
-- | A filter name and value pair that is used to obtain more specific
-- results from a list of resources.
--
-- See: newResourceFilter smart constructor.
data ResourceFilter
ResourceFilter' :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | The name of the filter. Filter names are case-sensitive.
[$sel:name:ResourceFilter'] :: ResourceFilter -> ResourceFilterName
-- | One or more filter values. Allowed filter values vary by resource
-- filter name, and are case-sensitive.
[$sel:values:ResourceFilter'] :: ResourceFilter -> NonEmpty Text
-- | Create a value of ResourceFilter 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:name:ResourceFilter', resourceFilter_name - The
-- name of the filter. Filter names are case-sensitive.
--
-- $sel:values:ResourceFilter', resourceFilter_values - One
-- or more filter values. Allowed filter values vary by resource filter
-- name, and are case-sensitive.
newResourceFilter :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | The name of the filter. Filter names are case-sensitive.
resourceFilter_name :: Lens' ResourceFilter ResourceFilterName
-- | One or more filter values. Allowed filter values vary by resource
-- filter name, and are case-sensitive.
resourceFilter_values :: Lens' ResourceFilter (NonEmpty Text)
-- | A structure that contains the ARN of a resource and its resource type.
--
-- See: newResourceIdentifier smart constructor.
data ResourceIdentifier
ResourceIdentifier' :: Maybe Text -> Maybe Text -> ResourceIdentifier
-- | The ARN of a resource.
[$sel:resourceArn:ResourceIdentifier'] :: ResourceIdentifier -> Maybe Text
-- | The resource type of a resource, such as AWS::EC2::Instance.
[$sel:resourceType:ResourceIdentifier'] :: ResourceIdentifier -> Maybe Text
-- | Create a value of ResourceIdentifier 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:resourceArn:ResourceIdentifier',
-- resourceIdentifier_resourceArn - The ARN of a resource.
--
-- $sel:resourceType:ResourceIdentifier',
-- resourceIdentifier_resourceType - The resource type of a
-- resource, such as AWS::EC2::Instance.
newResourceIdentifier :: ResourceIdentifier
-- | The ARN of a resource.
resourceIdentifier_resourceArn :: Lens' ResourceIdentifier (Maybe Text)
-- | The resource type of a resource, such as AWS::EC2::Instance.
resourceIdentifier_resourceType :: Lens' ResourceIdentifier (Maybe Text)
-- | The query that is used to define a resource group or a search for
-- resources. A query specifies both a query type and a query string as a
-- JSON object. See the examples section for example JSON strings.
--
-- The examples that follow are shown as standard JSON strings. If you
-- include such a string as a parameter to the AWS CLI or an SDK API, you
-- might need to 'escape' the string into a single line. For example, see
-- the Quoting strings in the AWS CLI User Guide.
--
-- Example 1
--
-- The following generic example shows a resource query JSON string that
-- includes only resources that meet the following criteria:
--
--
-- - The resource type must be either resource_type1 or
-- resource_type2.
-- - The resource must have a tag Key1 with a value of either
-- ValueA or ValueB.
-- - The resource must have a tag Key2 with a value of either
-- ValueC or ValueD.
--
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key": "Key1", "Values": ["ValueA","ValueB"] }, { "Key":"Key2", "Values":["ValueC","ValueD"] } ] } }
--
--
-- This has the equivalent "shortcut" syntax of the following:
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key1": ["ValueA","ValueB"] }, { "Key2": ["ValueC","ValueD"] } ] } }
--
--
-- Example 2
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances that are tagged Stage with a value
-- of Test.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": "{ "ResourceTypeFilters": "AWS::EC2::Instance", "TagFilters": { "Stage": "Test" } } }
--
--
-- Example 3
--
-- The following example shows a resource query JSON string that includes
-- resource of any supported type as long as it is tagged Stage
-- with a value of Prod.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": "AWS::AllSupported", "TagFilters": { "Stage": "Prod" } } }
--
--
-- Example 4
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances and Amazon S3 buckets that are part of the
-- specified AWS CloudFormation stack.
--
--
-- { "Type": "CLOUDFORMATION_STACK_1_0", "Query": { "ResourceTypeFilters": [ "AWS::EC2::Instance", "AWS::S3::Bucket" ], "StackIdentifier": "arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE" } }
--
--
-- See: newResourceQuery smart constructor.
data ResourceQuery
ResourceQuery' :: QueryType -> Text -> ResourceQuery
-- | The type of the query. You can use the following values:
--
--
[$sel:type':ResourceQuery'] :: ResourceQuery -> QueryType
-- | The query that defines a group or a search.
[$sel:query:ResourceQuery'] :: ResourceQuery -> Text
-- | Create a value of ResourceQuery 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:type':ResourceQuery', resourceQuery_type - The type
-- of the query. You can use the following values:
--
--
--
-- $sel:query:ResourceQuery', resourceQuery_searchQuery -
-- The query that defines a group or a search.
newResourceQuery :: QueryType -> Text -> ResourceQuery
-- | The type of the query. You can use the following values:
--
--
resourceQuery_type :: Lens' ResourceQuery QueryType
-- | The query that defines a group or a search.
resourceQuery_searchQuery :: Lens' ResourceQuery Text
-- | A structure that identifies the current group membership status for a
-- resource. Adding a resource to a resource group is performed
-- asynchronously as a background task. A PENDING status
-- indicates, for this resource, that the process isn't completed yet.
--
-- See: newResourceStatus smart constructor.
data ResourceStatus
ResourceStatus' :: Maybe ResourceStatusValue -> ResourceStatus
-- | The current status.
[$sel:name:ResourceStatus'] :: ResourceStatus -> Maybe ResourceStatusValue
-- | Create a value of ResourceStatus 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:name:ResourceStatus', resourceStatus_name - The
-- current status.
newResourceStatus :: ResourceStatus
-- | The current status.
resourceStatus_name :: Lens' ResourceStatus (Maybe ResourceStatusValue)
-- | Adds tags to a resource group with the specified ARN. Existing tags on
-- a resource group are not changed if they are not specified in the
-- request parameters.
--
-- 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.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:Tag
--
module Amazonka.ResourceGroups.Tag
-- | See: newTag smart constructor.
data Tag
Tag' :: Text -> HashMap Text Text -> Tag
-- | The ARN of the resource group to which to add tags.
[$sel:arn:Tag'] :: Tag -> Text
-- | The tags to add to the specified resource group. A tag is a
-- string-to-string map of key-value pairs.
[$sel:tags:Tag'] :: Tag -> HashMap Text 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:
--
-- Tag, tag_arn - The ARN of the resource group to which to
-- add tags.
--
-- Tag, tag_tags - The tags to add to the specified
-- resource group. A tag is a string-to-string map of key-value pairs.
newTag :: Text -> Tag
-- | The ARN of the resource group to which to add tags.
tag_arn :: Lens' Tag Text
-- | The tags to add to the specified resource group. A tag is a
-- string-to-string map of key-value pairs.
tag_tags :: Lens' Tag (HashMap Text Text)
-- | See: newTagResponse smart constructor.
data TagResponse
TagResponse' :: Maybe Text -> Maybe (HashMap Text Text) -> Int -> TagResponse
-- | The ARN of the tagged resource.
[$sel:arn:TagResponse'] :: TagResponse -> Maybe Text
-- | The tags that have been added to the specified resource group.
[$sel:tags:TagResponse'] :: TagResponse -> Maybe (HashMap Text Text)
-- | The response's http status code.
[$sel:httpStatus:TagResponse'] :: TagResponse -> Int
-- | Create a value of TagResponse 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:
--
-- Tag, tagResponse_arn - The ARN of the tagged resource.
--
-- Tag, tagResponse_tags - The tags that have been added to
-- the specified resource group.
--
-- $sel:httpStatus:TagResponse', tagResponse_httpStatus -
-- The response's http status code.
newTagResponse :: Int -> TagResponse
-- | The ARN of the tagged resource.
tagResponse_arn :: Lens' TagResponse (Maybe Text)
-- | The tags that have been added to the specified resource group.
tagResponse_tags :: Lens' TagResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
tagResponse_httpStatus :: Lens' TagResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.Tag.Tag
instance GHC.Show.Show Amazonka.ResourceGroups.Tag.Tag
instance GHC.Read.Read Amazonka.ResourceGroups.Tag.Tag
instance GHC.Classes.Eq Amazonka.ResourceGroups.Tag.Tag
instance GHC.Generics.Generic Amazonka.ResourceGroups.Tag.TagResponse
instance GHC.Show.Show Amazonka.ResourceGroups.Tag.TagResponse
instance GHC.Read.Read Amazonka.ResourceGroups.Tag.TagResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.Tag.TagResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.Tag.Tag
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Tag.TagResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Tag.Tag
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Tag.Tag
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.Tag.Tag
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Tag.Tag
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.Tag.Tag
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Tag.Tag
-- | Returns a list of AWS resource identifiers that matches the specified
-- query. The query uses the same format as a resource query in a
-- CreateGroup or UpdateGroupQuery operation.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:SearchResources
-- cloudformation:DescribeStacks
-- cloudformation:ListStackResources
-- tag:GetResources
--
--
-- This operation returns paginated results.
module Amazonka.ResourceGroups.SearchResources
-- | See: newSearchResources smart constructor.
data SearchResources
SearchResources' :: Maybe Natural -> Maybe Text -> ResourceQuery -> SearchResources
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
[$sel:maxResults:SearchResources'] :: SearchResources -> Maybe Natural
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
[$sel:nextToken:SearchResources'] :: SearchResources -> Maybe Text
-- | The search query, using the same formats that are supported for
-- resource group definition. For more information, see CreateGroup.
[$sel:resourceQuery:SearchResources'] :: SearchResources -> ResourceQuery
-- | Create a value of SearchResources 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:maxResults:SearchResources',
-- searchResources_maxResults - The total number of results that
-- you want included on each page of the response. If you do not include
-- this parameter, it defaults to a value that is specific to the
-- operation. If additional items exist beyond the maximum you specify,
-- the NextToken response element is present and has a value (is
-- not null). Include that value as the NextToken request
-- parameter in the next call to the operation to get the next part of
-- the results. Note that the service might return fewer results than the
-- maximum even when there are more results available. You should check
-- NextToken after every operation to ensure that you receive
-- all of the results.
--
-- SearchResources, searchResources_nextToken - The
-- parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
--
-- SearchResources, searchResources_resourceQuery - The
-- search query, using the same formats that are supported for resource
-- group definition. For more information, see CreateGroup.
newSearchResources :: ResourceQuery -> SearchResources
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
searchResources_maxResults :: Lens' SearchResources (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
searchResources_nextToken :: Lens' SearchResources (Maybe Text)
-- | The search query, using the same formats that are supported for
-- resource group definition. For more information, see CreateGroup.
searchResources_resourceQuery :: Lens' SearchResources ResourceQuery
-- | See: newSearchResourcesResponse smart constructor.
data SearchResourcesResponse
SearchResourcesResponse' :: Maybe Text -> Maybe [QueryError] -> Maybe [ResourceIdentifier] -> Int -> SearchResourcesResponse
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
[$sel:nextToken:SearchResourcesResponse'] :: SearchResourcesResponse -> Maybe Text
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
[$sel:queryErrors:SearchResourcesResponse'] :: SearchResourcesResponse -> Maybe [QueryError]
-- | The ARNs and resource types of resources that are members of the group
-- that you specified.
[$sel:resourceIdentifiers:SearchResourcesResponse'] :: SearchResourcesResponse -> Maybe [ResourceIdentifier]
-- | The response's http status code.
[$sel:httpStatus:SearchResourcesResponse'] :: SearchResourcesResponse -> Int
-- | Create a value of SearchResourcesResponse 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:
--
-- SearchResources, searchResourcesResponse_nextToken - If
-- present, indicates that more output is available than is included in
-- the current response. Use this value in the NextToken request
-- parameter in a subsequent call to the operation to get the next part
-- of the output. You should repeat this until the NextToken
-- response element comes back as null.
--
-- $sel:queryErrors:SearchResourcesResponse',
-- searchResourcesResponse_queryErrors - A list of
-- QueryError objects. Each error is an object that contains
-- ErrorCode and Message structures. Possible values
-- for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:resourceIdentifiers:SearchResourcesResponse',
-- searchResourcesResponse_resourceIdentifiers - The ARNs and
-- resource types of resources that are members of the group that you
-- specified.
--
-- $sel:httpStatus:SearchResourcesResponse',
-- searchResourcesResponse_httpStatus - The response's http status
-- code.
newSearchResourcesResponse :: Int -> SearchResourcesResponse
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
searchResourcesResponse_nextToken :: Lens' SearchResourcesResponse (Maybe Text)
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
searchResourcesResponse_queryErrors :: Lens' SearchResourcesResponse (Maybe [QueryError])
-- | The ARNs and resource types of resources that are members of the group
-- that you specified.
searchResourcesResponse_resourceIdentifiers :: Lens' SearchResourcesResponse (Maybe [ResourceIdentifier])
-- | The response's http status code.
searchResourcesResponse_httpStatus :: Lens' SearchResourcesResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.SearchResources.SearchResources
instance GHC.Show.Show Amazonka.ResourceGroups.SearchResources.SearchResources
instance GHC.Read.Read Amazonka.ResourceGroups.SearchResources.SearchResources
instance GHC.Classes.Eq Amazonka.ResourceGroups.SearchResources.SearchResources
instance GHC.Generics.Generic Amazonka.ResourceGroups.SearchResources.SearchResourcesResponse
instance GHC.Show.Show Amazonka.ResourceGroups.SearchResources.SearchResourcesResponse
instance GHC.Read.Read Amazonka.ResourceGroups.SearchResources.SearchResourcesResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.SearchResources.SearchResourcesResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.SearchResources.SearchResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.SearchResources.SearchResourcesResponse
instance Amazonka.Pager.AWSPager Amazonka.ResourceGroups.SearchResources.SearchResources
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.SearchResources.SearchResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.SearchResources.SearchResources
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.SearchResources.SearchResources
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.SearchResources.SearchResources
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.SearchResources.SearchResources
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.SearchResources.SearchResources
-- | Attaches a service configuration to the specified group. This occurs
-- asynchronously, and can take time to complete. You can use
-- GetGroupConfiguration to check the status of the update.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.PutGroupConfiguration
-- | See: newPutGroupConfiguration smart constructor.
data PutGroupConfiguration
PutGroupConfiguration' :: Maybe [GroupConfigurationItem] -> Maybe Text -> PutGroupConfiguration
-- | The new configuration to associate with the specified group. A
-- configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
--
-- For information about the syntax of a service configuration, see
-- Service configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
[$sel:configuration:PutGroupConfiguration'] :: PutGroupConfiguration -> Maybe [GroupConfigurationItem]
-- | The name or ARN of the resource group with the configuration that you
-- want to update.
[$sel:group':PutGroupConfiguration'] :: PutGroupConfiguration -> Maybe Text
-- | Create a value of PutGroupConfiguration 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:
--
-- PutGroupConfiguration,
-- putGroupConfiguration_configuration - The new configuration to
-- associate with the specified group. A configuration associates the
-- resource group with an AWS service and specifies how the service can
-- interact with the resources in the group. A configuration is an array
-- of GroupConfigurationItem elements.
--
-- For information about the syntax of a service configuration, see
-- Service configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
--
-- $sel:group':PutGroupConfiguration',
-- putGroupConfiguration_group - The name or ARN of the resource
-- group with the configuration that you want to update.
newPutGroupConfiguration :: PutGroupConfiguration
-- | The new configuration to associate with the specified group. A
-- configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
--
-- For information about the syntax of a service configuration, see
-- Service configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
putGroupConfiguration_configuration :: Lens' PutGroupConfiguration (Maybe [GroupConfigurationItem])
-- | The name or ARN of the resource group with the configuration that you
-- want to update.
putGroupConfiguration_group :: Lens' PutGroupConfiguration (Maybe Text)
-- | See: newPutGroupConfigurationResponse smart constructor.
data PutGroupConfigurationResponse
PutGroupConfigurationResponse' :: Int -> PutGroupConfigurationResponse
-- | The response's http status code.
[$sel:httpStatus:PutGroupConfigurationResponse'] :: PutGroupConfigurationResponse -> Int
-- | Create a value of PutGroupConfigurationResponse 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:httpStatus:PutGroupConfigurationResponse',
-- putGroupConfigurationResponse_httpStatus - The response's http
-- status code.
newPutGroupConfigurationResponse :: Int -> PutGroupConfigurationResponse
-- | The response's http status code.
putGroupConfigurationResponse_httpStatus :: Lens' PutGroupConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance GHC.Show.Show Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance GHC.Read.Read Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance GHC.Classes.Eq Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance GHC.Generics.Generic Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfigurationResponse
instance GHC.Show.Show Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfigurationResponse
instance GHC.Read.Read Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfigurationResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.PutGroupConfiguration.PutGroupConfiguration
-- | Returns a list of existing resource groups in your account.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
--
-- This operation returns paginated results.
module Amazonka.ResourceGroups.ListGroups
-- | See: newListGroups smart constructor.
data ListGroups
ListGroups' :: Maybe [GroupFilter] -> Maybe Natural -> Maybe Text -> ListGroups
-- | Filters, formatted as GroupFilter objects, that you want to apply to a
-- ListGroups operation.
--
--
-- - resource-type - Filter the results to include only those
-- of the specified resource types. Specify up to five resource types in
-- the format
-- AWS::ServiceCode::ResourceType
-- . For example, AWS::EC2::Instance, or
-- AWS::S3::Bucket.
-- - configuration-type - Filter the results to include only
-- those groups that have the specified configuration types attached. The
-- current supported values
-- are:
--
[$sel:filters:ListGroups'] :: ListGroups -> Maybe [GroupFilter]
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
[$sel:maxResults:ListGroups'] :: ListGroups -> Maybe Natural
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
[$sel:nextToken:ListGroups'] :: ListGroups -> Maybe Text
-- | Create a value of ListGroups 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:filters:ListGroups', listGroups_filters - Filters,
-- formatted as GroupFilter objects, that you want to apply to a
-- ListGroups operation.
--
--
-- - resource-type - Filter the results to include only those
-- of the specified resource types. Specify up to five resource types in
-- the format
-- AWS::ServiceCode::ResourceType
-- . For example, AWS::EC2::Instance, or
-- AWS::S3::Bucket.
-- - configuration-type - Filter the results to include only
-- those groups that have the specified configuration types attached. The
-- current supported values
-- are:
--
--
-- $sel:maxResults:ListGroups', listGroups_maxResults - The
-- total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
--
-- ListGroups, listGroups_nextToken - The parameter for
-- receiving additional results if you receive a NextToken
-- response in a previous request. A NextToken response
-- indicates that more output is available. Set this parameter to the
-- value provided by a previous call's NextToken response to
-- indicate where the output should continue from.
newListGroups :: ListGroups
-- | Filters, formatted as GroupFilter objects, that you want to apply to a
-- ListGroups operation.
--
--
-- - resource-type - Filter the results to include only those
-- of the specified resource types. Specify up to five resource types in
-- the format
-- AWS::ServiceCode::ResourceType
-- . For example, AWS::EC2::Instance, or
-- AWS::S3::Bucket.
-- - configuration-type - Filter the results to include only
-- those groups that have the specified configuration types attached. The
-- current supported values
-- are:
--
listGroups_filters :: Lens' ListGroups (Maybe [GroupFilter])
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
listGroups_maxResults :: Lens' ListGroups (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
listGroups_nextToken :: Lens' ListGroups (Maybe Text)
-- | See: newListGroupsResponse smart constructor.
data ListGroupsResponse
ListGroupsResponse' :: Maybe [GroupIdentifier] -> Maybe [Group] -> Maybe Text -> Int -> ListGroupsResponse
-- | A list of GroupIdentifier objects. Each identifier is an object that
-- contains both the Name and the GroupArn.
[$sel:groupIdentifiers:ListGroupsResponse'] :: ListGroupsResponse -> Maybe [GroupIdentifier]
-- | /__Deprecated - don't use this field. Use the
-- GroupIdentifiers response field instead.__/
[$sel:groups:ListGroupsResponse'] :: ListGroupsResponse -> Maybe [Group]
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
[$sel:nextToken:ListGroupsResponse'] :: ListGroupsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:ListGroupsResponse'] :: ListGroupsResponse -> Int
-- | Create a value of ListGroupsResponse 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:groupIdentifiers:ListGroupsResponse',
-- listGroupsResponse_groupIdentifiers - A list of GroupIdentifier
-- objects. Each identifier is an object that contains both the
-- Name and the GroupArn.
--
-- $sel:groups:ListGroupsResponse',
-- listGroupsResponse_groups - /__Deprecated - don't use this
-- field. Use the GroupIdentifiers response field instead.__/
--
-- ListGroups, listGroupsResponse_nextToken - If present,
-- indicates that more output is available than is included in the
-- current response. Use this value in the NextToken request
-- parameter in a subsequent call to the operation to get the next part
-- of the output. You should repeat this until the NextToken
-- response element comes back as null.
--
-- $sel:httpStatus:ListGroupsResponse',
-- listGroupsResponse_httpStatus - The response's http status
-- code.
newListGroupsResponse :: Int -> ListGroupsResponse
-- | A list of GroupIdentifier objects. Each identifier is an object that
-- contains both the Name and the GroupArn.
listGroupsResponse_groupIdentifiers :: Lens' ListGroupsResponse (Maybe [GroupIdentifier])
-- | /__Deprecated - don't use this field. Use the
-- GroupIdentifiers response field instead.__/
listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [Group])
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text)
-- | The response's http status code.
listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.ListGroups.ListGroups
instance GHC.Show.Show Amazonka.ResourceGroups.ListGroups.ListGroups
instance GHC.Read.Read Amazonka.ResourceGroups.ListGroups.ListGroups
instance GHC.Classes.Eq Amazonka.ResourceGroups.ListGroups.ListGroups
instance GHC.Generics.Generic Amazonka.ResourceGroups.ListGroups.ListGroupsResponse
instance GHC.Show.Show Amazonka.ResourceGroups.ListGroups.ListGroupsResponse
instance GHC.Read.Read Amazonka.ResourceGroups.ListGroups.ListGroupsResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.ListGroups.ListGroupsResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.ListGroups.ListGroups
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.ListGroups.ListGroupsResponse
instance Amazonka.Pager.AWSPager Amazonka.ResourceGroups.ListGroups.ListGroups
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.ListGroups.ListGroups
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.ListGroups.ListGroups
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.ListGroups.ListGroups
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.ListGroups.ListGroups
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.ListGroups.ListGroups
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.ListGroups.ListGroups
-- | Returns a list of ARNs of the resources that are members of a
-- specified resource group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:ListGroupResources
-- cloudformation:DescribeStacks
-- cloudformation:ListStackResources
-- tag:GetResources
--
--
-- This operation returns paginated results.
module Amazonka.ResourceGroups.ListGroupResources
-- | See: newListGroupResources smart constructor.
data ListGroupResources
ListGroupResources' :: Maybe [ResourceFilter] -> Maybe Text -> Maybe Text -> Maybe Natural -> Maybe Text -> ListGroupResources
-- | Filters, formatted as ResourceFilter objects, that you want to apply
-- to a ListGroupResources operation. Filters the results to
-- include only those of the specified resource types.
--
--
-- - resource-type - Filter resources by their type. Specify
-- up to five resource types in the format
-- AWS::ServiceCode::ResourceType. For example,
-- AWS::EC2::Instance, or AWS::S3::Bucket.
--
--
-- When you specify a resource-type filter for
-- ListGroupResources, AWS Resource Groups validates your filter
-- resource types against the types that are defined in the query
-- associated with the group. For example, if a group contains only S3
-- buckets because its query specifies only that resource type, but your
-- resource-type filter includes EC2 instances, AWS Resource
-- Groups does not filter for EC2 instances. In this case, a
-- ListGroupResources request returns a
-- BadRequestException error with a message similar to the
-- following:
--
--
-- The resource types specified as filters in the request are not valid.
--
--
-- The error includes a list of resource types that failed the validation
-- because they are not part of the query associated with the group. This
-- validation doesn't occur when the group query specifies
-- AWS::AllSupported, because a group based on such a query can
-- contain any of the allowed resource types for the query type
-- (tag-based or AWS CloudFormation stack-based queries).
[$sel:filters:ListGroupResources'] :: ListGroupResources -> Maybe [ResourceFilter]
-- | The name or the ARN of the resource group
[$sel:group':ListGroupResources'] :: ListGroupResources -> Maybe Text
-- | /__Deprecated - don't use this parameter. Use the Group
-- request field instead.__/
[$sel:groupName:ListGroupResources'] :: ListGroupResources -> Maybe Text
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
[$sel:maxResults:ListGroupResources'] :: ListGroupResources -> Maybe Natural
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
[$sel:nextToken:ListGroupResources'] :: ListGroupResources -> Maybe Text
-- | Create a value of ListGroupResources 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:filters:ListGroupResources',
-- listGroupResources_filters - Filters, formatted as
-- ResourceFilter objects, that you want to apply to a
-- ListGroupResources operation. Filters the results to include
-- only those of the specified resource types.
--
--
-- - resource-type - Filter resources by their type. Specify
-- up to five resource types in the format
-- AWS::ServiceCode::ResourceType. For example,
-- AWS::EC2::Instance, or AWS::S3::Bucket.
--
--
-- When you specify a resource-type filter for
-- ListGroupResources, AWS Resource Groups validates your filter
-- resource types against the types that are defined in the query
-- associated with the group. For example, if a group contains only S3
-- buckets because its query specifies only that resource type, but your
-- resource-type filter includes EC2 instances, AWS Resource
-- Groups does not filter for EC2 instances. In this case, a
-- ListGroupResources request returns a
-- BadRequestException error with a message similar to the
-- following:
--
--
-- The resource types specified as filters in the request are not valid.
--
--
-- The error includes a list of resource types that failed the validation
-- because they are not part of the query associated with the group. This
-- validation doesn't occur when the group query specifies
-- AWS::AllSupported, because a group based on such a query can
-- contain any of the allowed resource types for the query type
-- (tag-based or AWS CloudFormation stack-based queries).
--
-- $sel:group':ListGroupResources',
-- listGroupResources_group - The name or the ARN of the resource
-- group
--
-- ListGroupResources, listGroupResources_groupName -
-- /__Deprecated - don't use this parameter. Use the Group
-- request field instead.__/
--
-- $sel:maxResults:ListGroupResources',
-- listGroupResources_maxResults - The total number of results
-- that you want included on each page of the response. If you do not
-- include this parameter, it defaults to a value that is specific to the
-- operation. If additional items exist beyond the maximum you specify,
-- the NextToken response element is present and has a value (is
-- not null). Include that value as the NextToken request
-- parameter in the next call to the operation to get the next part of
-- the results. Note that the service might return fewer results than the
-- maximum even when there are more results available. You should check
-- NextToken after every operation to ensure that you receive
-- all of the results.
--
-- ListGroupResources, listGroupResources_nextToken - The
-- parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
newListGroupResources :: ListGroupResources
-- | Filters, formatted as ResourceFilter objects, that you want to apply
-- to a ListGroupResources operation. Filters the results to
-- include only those of the specified resource types.
--
--
-- - resource-type - Filter resources by their type. Specify
-- up to five resource types in the format
-- AWS::ServiceCode::ResourceType. For example,
-- AWS::EC2::Instance, or AWS::S3::Bucket.
--
--
-- When you specify a resource-type filter for
-- ListGroupResources, AWS Resource Groups validates your filter
-- resource types against the types that are defined in the query
-- associated with the group. For example, if a group contains only S3
-- buckets because its query specifies only that resource type, but your
-- resource-type filter includes EC2 instances, AWS Resource
-- Groups does not filter for EC2 instances. In this case, a
-- ListGroupResources request returns a
-- BadRequestException error with a message similar to the
-- following:
--
--
-- The resource types specified as filters in the request are not valid.
--
--
-- The error includes a list of resource types that failed the validation
-- because they are not part of the query associated with the group. This
-- validation doesn't occur when the group query specifies
-- AWS::AllSupported, because a group based on such a query can
-- contain any of the allowed resource types for the query type
-- (tag-based or AWS CloudFormation stack-based queries).
listGroupResources_filters :: Lens' ListGroupResources (Maybe [ResourceFilter])
-- | The name or the ARN of the resource group
listGroupResources_group :: Lens' ListGroupResources (Maybe Text)
-- | /__Deprecated - don't use this parameter. Use the Group
-- request field instead.__/
listGroupResources_groupName :: Lens' ListGroupResources (Maybe Text)
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
listGroupResources_maxResults :: Lens' ListGroupResources (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
listGroupResources_nextToken :: Lens' ListGroupResources (Maybe Text)
-- | See: newListGroupResourcesResponse smart constructor.
data ListGroupResourcesResponse
ListGroupResourcesResponse' :: Maybe Text -> Maybe [QueryError] -> Maybe [ResourceIdentifier] -> Maybe [ListGroupResourcesItem] -> Int -> ListGroupResourcesResponse
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
[$sel:nextToken:ListGroupResourcesResponse'] :: ListGroupResourcesResponse -> Maybe Text
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
[$sel:queryErrors:ListGroupResourcesResponse'] :: ListGroupResourcesResponse -> Maybe [QueryError]
-- | __/Deprecated - don't use this parameter. Use the Resources
-- response field instead./__
[$sel:resourceIdentifiers:ListGroupResourcesResponse'] :: ListGroupResourcesResponse -> Maybe [ResourceIdentifier]
-- | An array of resources from which you can determine each resource's
-- identity, type, and group membership status.
[$sel:resources:ListGroupResourcesResponse'] :: ListGroupResourcesResponse -> Maybe [ListGroupResourcesItem]
-- | The response's http status code.
[$sel:httpStatus:ListGroupResourcesResponse'] :: ListGroupResourcesResponse -> Int
-- | Create a value of ListGroupResourcesResponse 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:
--
-- ListGroupResources, listGroupResourcesResponse_nextToken
-- - If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
--
-- $sel:queryErrors:ListGroupResourcesResponse',
-- listGroupResourcesResponse_queryErrors - A list of
-- QueryError objects. Each error is an object that contains
-- ErrorCode and Message structures. Possible values
-- for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:resourceIdentifiers:ListGroupResourcesResponse',
-- listGroupResourcesResponse_resourceIdentifiers - __/Deprecated
-- - don't use this parameter. Use the Resources response field
-- instead./__
--
-- $sel:resources:ListGroupResourcesResponse',
-- listGroupResourcesResponse_resources - An array of resources
-- from which you can determine each resource's identity, type, and group
-- membership status.
--
-- $sel:httpStatus:ListGroupResourcesResponse',
-- listGroupResourcesResponse_httpStatus - The response's http
-- status code.
newListGroupResourcesResponse :: Int -> ListGroupResourcesResponse
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
listGroupResourcesResponse_nextToken :: Lens' ListGroupResourcesResponse (Maybe Text)
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
listGroupResourcesResponse_queryErrors :: Lens' ListGroupResourcesResponse (Maybe [QueryError])
-- | __/Deprecated - don't use this parameter. Use the Resources
-- response field instead./__
listGroupResourcesResponse_resourceIdentifiers :: Lens' ListGroupResourcesResponse (Maybe [ResourceIdentifier])
-- | An array of resources from which you can determine each resource's
-- identity, type, and group membership status.
listGroupResourcesResponse_resources :: Lens' ListGroupResourcesResponse (Maybe [ListGroupResourcesItem])
-- | The response's http status code.
listGroupResourcesResponse_httpStatus :: Lens' ListGroupResourcesResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance GHC.Show.Show Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance GHC.Read.Read Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance GHC.Classes.Eq Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance GHC.Generics.Generic Amazonka.ResourceGroups.ListGroupResources.ListGroupResourcesResponse
instance GHC.Show.Show Amazonka.ResourceGroups.ListGroupResources.ListGroupResourcesResponse
instance GHC.Read.Read Amazonka.ResourceGroups.ListGroupResources.ListGroupResourcesResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.ListGroupResources.ListGroupResourcesResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.ListGroupResources.ListGroupResourcesResponse
instance Amazonka.Pager.AWSPager Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.ListGroupResources.ListGroupResources
-- | Adds the specified resources to the specified group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.GroupResources
-- | See: newGroupResources smart constructor.
data GroupResources
GroupResources' :: Text -> NonEmpty Text -> GroupResources
-- | The name or the ARN of the resource group to add resources to.
[$sel:group':GroupResources'] :: GroupResources -> Text
-- | The list of ARNs for resources to be added to the group.
[$sel:resourceArns:GroupResources'] :: GroupResources -> NonEmpty Text
-- | Create a value of GroupResources 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:group':GroupResources', groupResources_group - The
-- name or the ARN of the resource group to add resources to.
--
-- $sel:resourceArns:GroupResources',
-- groupResources_resourceArns - The list of ARNs for resources to
-- be added to the group.
newGroupResources :: Text -> NonEmpty Text -> GroupResources
-- | The name or the ARN of the resource group to add resources to.
groupResources_group :: Lens' GroupResources Text
-- | The list of ARNs for resources to be added to the group.
groupResources_resourceArns :: Lens' GroupResources (NonEmpty Text)
-- | See: newGroupResourcesResponse smart constructor.
data GroupResourcesResponse
GroupResourcesResponse' :: Maybe [FailedResource] -> Maybe [PendingResource] -> Maybe (NonEmpty Text) -> Int -> GroupResourcesResponse
-- | A list of ARNs of any resources that failed to be added to the group
-- by this operation.
[$sel:failed:GroupResourcesResponse'] :: GroupResourcesResponse -> Maybe [FailedResource]
-- | A list of ARNs of any resources that are still in the process of being
-- added to the group by this operation. These pending additions continue
-- asynchronously. You can check the status of pending additions by using
-- the ListGroupResources operation, and
-- checking the Resources array in the response and the
-- Status field of each object in that array.
[$sel:pending:GroupResourcesResponse'] :: GroupResourcesResponse -> Maybe [PendingResource]
-- | A list of ARNs of resources that were successfully added to the group
-- by this operation.
[$sel:succeeded:GroupResourcesResponse'] :: GroupResourcesResponse -> Maybe (NonEmpty Text)
-- | The response's http status code.
[$sel:httpStatus:GroupResourcesResponse'] :: GroupResourcesResponse -> Int
-- | Create a value of GroupResourcesResponse 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:failed:GroupResourcesResponse',
-- groupResourcesResponse_failed - A list of ARNs of any resources
-- that failed to be added to the group by this operation.
--
-- $sel:pending:GroupResourcesResponse',
-- groupResourcesResponse_pending - A list of ARNs of any
-- resources that are still in the process of being added to the group by
-- this operation. These pending additions continue asynchronously. You
-- can check the status of pending additions by using the
-- ListGroupResources operation, and checking the
-- Resources array in the response and the Status field
-- of each object in that array.
--
-- $sel:succeeded:GroupResourcesResponse',
-- groupResourcesResponse_succeeded - A list of ARNs of resources
-- that were successfully added to the group by this operation.
--
-- $sel:httpStatus:GroupResourcesResponse',
-- groupResourcesResponse_httpStatus - The response's http status
-- code.
newGroupResourcesResponse :: Int -> GroupResourcesResponse
-- | A list of ARNs of any resources that failed to be added to the group
-- by this operation.
groupResourcesResponse_failed :: Lens' GroupResourcesResponse (Maybe [FailedResource])
-- | A list of ARNs of any resources that are still in the process of being
-- added to the group by this operation. These pending additions continue
-- asynchronously. You can check the status of pending additions by using
-- the ListGroupResources operation, and
-- checking the Resources array in the response and the
-- Status field of each object in that array.
groupResourcesResponse_pending :: Lens' GroupResourcesResponse (Maybe [PendingResource])
-- | A list of ARNs of resources that were successfully added to the group
-- by this operation.
groupResourcesResponse_succeeded :: Lens' GroupResourcesResponse (Maybe (NonEmpty Text))
-- | The response's http status code.
groupResourcesResponse_httpStatus :: Lens' GroupResourcesResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.GroupResources.GroupResources
instance GHC.Show.Show Amazonka.ResourceGroups.GroupResources.GroupResources
instance GHC.Read.Read Amazonka.ResourceGroups.GroupResources.GroupResources
instance GHC.Classes.Eq Amazonka.ResourceGroups.GroupResources.GroupResources
instance GHC.Generics.Generic Amazonka.ResourceGroups.GroupResources.GroupResourcesResponse
instance GHC.Show.Show Amazonka.ResourceGroups.GroupResources.GroupResourcesResponse
instance GHC.Read.Read Amazonka.ResourceGroups.GroupResources.GroupResourcesResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.GroupResources.GroupResourcesResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.GroupResources.GroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GroupResources.GroupResourcesResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.GroupResources.GroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GroupResources.GroupResources
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.GroupResources.GroupResources
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.GroupResources.GroupResources
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.GroupResources.GroupResources
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.GroupResources.GroupResources
-- | Returns a list of tags that are associated with a resource group,
-- specified by an ARN.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:GetTags
--
module Amazonka.ResourceGroups.GetTags
-- | See: newGetTags smart constructor.
data GetTags
GetTags' :: Text -> GetTags
-- | The ARN of the resource group whose tags you want to retrieve.
[$sel:arn:GetTags'] :: GetTags -> Text
-- | Create a value of GetTags 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:
--
-- GetTags, getTags_arn - The ARN of the resource group
-- whose tags you want to retrieve.
newGetTags :: Text -> GetTags
-- | The ARN of the resource group whose tags you want to retrieve.
getTags_arn :: Lens' GetTags Text
-- | See: newGetTagsResponse smart constructor.
data GetTagsResponse
GetTagsResponse' :: Maybe Text -> Maybe (HashMap Text Text) -> Int -> GetTagsResponse
-- | The ARN of the tagged resource group.
[$sel:arn:GetTagsResponse'] :: GetTagsResponse -> Maybe Text
-- | The tags associated with the specified resource group.
[$sel:tags:GetTagsResponse'] :: GetTagsResponse -> Maybe (HashMap Text Text)
-- | The response's http status code.
[$sel:httpStatus:GetTagsResponse'] :: GetTagsResponse -> Int
-- | Create a value of GetTagsResponse 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:
--
-- GetTags, getTagsResponse_arn - The ARN of the tagged
-- resource group.
--
-- $sel:tags:GetTagsResponse', getTagsResponse_tags - The
-- tags associated with the specified resource group.
--
-- $sel:httpStatus:GetTagsResponse',
-- getTagsResponse_httpStatus - The response's http status code.
newGetTagsResponse :: Int -> GetTagsResponse
-- | The ARN of the tagged resource group.
getTagsResponse_arn :: Lens' GetTagsResponse (Maybe Text)
-- | The tags associated with the specified resource group.
getTagsResponse_tags :: Lens' GetTagsResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
getTagsResponse_httpStatus :: Lens' GetTagsResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetTags.GetTags
instance GHC.Show.Show Amazonka.ResourceGroups.GetTags.GetTags
instance GHC.Read.Read Amazonka.ResourceGroups.GetTags.GetTags
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetTags.GetTags
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetTags.GetTagsResponse
instance GHC.Show.Show Amazonka.ResourceGroups.GetTags.GetTagsResponse
instance GHC.Read.Read Amazonka.ResourceGroups.GetTags.GetTagsResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetTags.GetTagsResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.GetTags.GetTags
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetTags.GetTagsResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.GetTags.GetTags
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetTags.GetTags
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.GetTags.GetTags
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.GetTags.GetTags
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.GetTags.GetTags
-- | Retrieves the resource query associated with the specified resource
-- group. For more information about resource queries, see Create a
-- tag-based group in Resource Groups.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.GetGroupQuery
-- | See: newGetGroupQuery smart constructor.
data GetGroupQuery
GetGroupQuery' :: Maybe Text -> Maybe Text -> GetGroupQuery
-- | The name or the ARN of the resource group to query.
[$sel:group':GetGroupQuery'] :: GetGroupQuery -> Maybe Text
-- | Don't use this parameter. Use Group instead.
[$sel:groupName:GetGroupQuery'] :: GetGroupQuery -> Maybe Text
-- | Create a value of GetGroupQuery 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:group':GetGroupQuery', getGroupQuery_group - The
-- name or the ARN of the resource group to query.
--
-- GetGroupQuery, getGroupQuery_groupName - Don't use this
-- parameter. Use Group instead.
newGetGroupQuery :: GetGroupQuery
-- | The name or the ARN of the resource group to query.
getGroupQuery_group :: Lens' GetGroupQuery (Maybe Text)
-- | Don't use this parameter. Use Group instead.
getGroupQuery_groupName :: Lens' GetGroupQuery (Maybe Text)
-- | See: newGetGroupQueryResponse smart constructor.
data GetGroupQueryResponse
GetGroupQueryResponse' :: Maybe GroupQuery -> Int -> GetGroupQueryResponse
-- | The resource query associated with the specified group. For more
-- information about resource queries, see Create a tag-based group in
-- Resource Groups.
[$sel:groupQuery:GetGroupQueryResponse'] :: GetGroupQueryResponse -> Maybe GroupQuery
-- | The response's http status code.
[$sel:httpStatus:GetGroupQueryResponse'] :: GetGroupQueryResponse -> Int
-- | Create a value of GetGroupQueryResponse 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:groupQuery:GetGroupQueryResponse',
-- getGroupQueryResponse_groupQuery - The resource query
-- associated with the specified group. For more information about
-- resource queries, see Create a tag-based group in Resource
-- Groups.
--
-- $sel:httpStatus:GetGroupQueryResponse',
-- getGroupQueryResponse_httpStatus - The response's http status
-- code.
newGetGroupQueryResponse :: Int -> GetGroupQueryResponse
-- | The resource query associated with the specified group. For more
-- information about resource queries, see Create a tag-based group in
-- Resource Groups.
getGroupQueryResponse_groupQuery :: Lens' GetGroupQueryResponse (Maybe GroupQuery)
-- | The response's http status code.
getGroupQueryResponse_httpStatus :: Lens' GetGroupQueryResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroupQuery.GetGroupQueryResponse
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroupQuery.GetGroupQueryResponse
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroupQuery.GetGroupQueryResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroupQuery.GetGroupQueryResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroupQuery.GetGroupQueryResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.GetGroupQuery.GetGroupQuery
-- | Returns the service configuration associated with the specified
-- resource group. For details about the service configuration syntax,
-- see Service configurations for resource groups.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.GetGroupConfiguration
-- | See: newGetGroupConfiguration smart constructor.
data GetGroupConfiguration
GetGroupConfiguration' :: Maybe Text -> GetGroupConfiguration
-- | The name or the ARN of the resource group.
[$sel:group':GetGroupConfiguration'] :: GetGroupConfiguration -> Maybe Text
-- | Create a value of GetGroupConfiguration 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:group':GetGroupConfiguration',
-- getGroupConfiguration_group - The name or the ARN of the
-- resource group.
newGetGroupConfiguration :: GetGroupConfiguration
-- | The name or the ARN of the resource group.
getGroupConfiguration_group :: Lens' GetGroupConfiguration (Maybe Text)
-- | See: newGetGroupConfigurationResponse smart constructor.
data GetGroupConfigurationResponse
GetGroupConfigurationResponse' :: Maybe GroupConfiguration -> Int -> GetGroupConfigurationResponse
-- | The service configuration associated with the specified group. For
-- details about the service configuration syntax, see Service
-- configurations for resource groups.
[$sel:groupConfiguration:GetGroupConfigurationResponse'] :: GetGroupConfigurationResponse -> Maybe GroupConfiguration
-- | The response's http status code.
[$sel:httpStatus:GetGroupConfigurationResponse'] :: GetGroupConfigurationResponse -> Int
-- | Create a value of GetGroupConfigurationResponse 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:groupConfiguration:GetGroupConfigurationResponse',
-- getGroupConfigurationResponse_groupConfiguration - The service
-- configuration associated with the specified group. For details about
-- the service configuration syntax, see Service configurations for
-- resource groups.
--
-- $sel:httpStatus:GetGroupConfigurationResponse',
-- getGroupConfigurationResponse_httpStatus - The response's http
-- status code.
newGetGroupConfigurationResponse :: Int -> GetGroupConfigurationResponse
-- | The service configuration associated with the specified group. For
-- details about the service configuration syntax, see Service
-- configurations for resource groups.
getGroupConfigurationResponse_groupConfiguration :: Lens' GetGroupConfigurationResponse (Maybe GroupConfiguration)
-- | The response's http status code.
getGroupConfigurationResponse_httpStatus :: Lens' GetGroupConfigurationResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfigurationResponse
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfigurationResponse
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfigurationResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfigurationResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfigurationResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.GetGroupConfiguration.GetGroupConfiguration
-- | Returns information about a specified resource group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:GetGroup
--
module Amazonka.ResourceGroups.GetGroup
-- | See: newGetGroup smart constructor.
data GetGroup
GetGroup' :: Maybe Text -> Maybe Text -> GetGroup
-- | The name or the ARN of the resource group to retrieve.
[$sel:group':GetGroup'] :: GetGroup -> Maybe Text
-- | Deprecated - don't use this parameter. Use Group instead.
[$sel:groupName:GetGroup'] :: GetGroup -> Maybe Text
-- | Create a value of GetGroup 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:
--
-- GetGroup, getGroup_group - The name or the ARN of the
-- resource group to retrieve.
--
-- GetGroup, getGroup_groupName - Deprecated - don't use
-- this parameter. Use Group instead.
newGetGroup :: GetGroup
-- | The name or the ARN of the resource group to retrieve.
getGroup_group :: Lens' GetGroup (Maybe Text)
-- | Deprecated - don't use this parameter. Use Group instead.
getGroup_groupName :: Lens' GetGroup (Maybe Text)
-- | See: newGetGroupResponse smart constructor.
data GetGroupResponse
GetGroupResponse' :: Maybe Group -> Int -> GetGroupResponse
-- | A full description of the resource group.
[$sel:group':GetGroupResponse'] :: GetGroupResponse -> Maybe Group
-- | The response's http status code.
[$sel:httpStatus:GetGroupResponse'] :: GetGroupResponse -> Int
-- | Create a value of GetGroupResponse 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:
--
-- GetGroup, getGroupResponse_group - A full description of
-- the resource group.
--
-- $sel:httpStatus:GetGroupResponse',
-- getGroupResponse_httpStatus - The response's http status code.
newGetGroupResponse :: Int -> GetGroupResponse
-- | A full description of the resource group.
getGroupResponse_group :: Lens' GetGroupResponse (Maybe Group)
-- | The response's http status code.
getGroupResponse_httpStatus :: Lens' GetGroupResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroup.GetGroup
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroup.GetGroup
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroup.GetGroup
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroup.GetGroup
instance GHC.Generics.Generic Amazonka.ResourceGroups.GetGroup.GetGroupResponse
instance GHC.Show.Show Amazonka.ResourceGroups.GetGroup.GetGroupResponse
instance GHC.Read.Read Amazonka.ResourceGroups.GetGroup.GetGroupResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.GetGroup.GetGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.GetGroup.GetGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroup.GetGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.GetGroup.GetGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.GetGroup.GetGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.GetGroup.GetGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.GetGroup.GetGroup
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.GetGroup.GetGroup
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.GetGroup.GetGroup
-- | Deletes the specified resource group. Deleting a resource group does
-- not delete any resources that are members of the group; it only
-- deletes the group structure.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.DeleteGroup
-- | See: newDeleteGroup smart constructor.
data DeleteGroup
DeleteGroup' :: Maybe Text -> Maybe Text -> DeleteGroup
-- | The name or the ARN of the resource group to delete.
[$sel:group':DeleteGroup'] :: DeleteGroup -> Maybe Text
-- | Deprecated - don't use this parameter. Use Group instead.
[$sel:groupName:DeleteGroup'] :: DeleteGroup -> Maybe Text
-- | Create a value of DeleteGroup 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:
--
-- DeleteGroup, deleteGroup_group - The name or the ARN of
-- the resource group to delete.
--
-- DeleteGroup, deleteGroup_groupName - Deprecated - don't
-- use this parameter. Use Group instead.
newDeleteGroup :: DeleteGroup
-- | The name or the ARN of the resource group to delete.
deleteGroup_group :: Lens' DeleteGroup (Maybe Text)
-- | Deprecated - don't use this parameter. Use Group instead.
deleteGroup_groupName :: Lens' DeleteGroup (Maybe Text)
-- | See: newDeleteGroupResponse smart constructor.
data DeleteGroupResponse
DeleteGroupResponse' :: Maybe Group -> Int -> DeleteGroupResponse
-- | A full description of the deleted resource group.
[$sel:group':DeleteGroupResponse'] :: DeleteGroupResponse -> Maybe Group
-- | The response's http status code.
[$sel:httpStatus:DeleteGroupResponse'] :: DeleteGroupResponse -> Int
-- | Create a value of DeleteGroupResponse 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:
--
-- DeleteGroup, deleteGroupResponse_group - A full
-- description of the deleted resource group.
--
-- $sel:httpStatus:DeleteGroupResponse',
-- deleteGroupResponse_httpStatus - The response's http status
-- code.
newDeleteGroupResponse :: Int -> DeleteGroupResponse
-- | A full description of the deleted resource group.
deleteGroupResponse_group :: Lens' DeleteGroupResponse (Maybe Group)
-- | The response's http status code.
deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance GHC.Show.Show Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance GHC.Read.Read Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance GHC.Classes.Eq Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance GHC.Generics.Generic Amazonka.ResourceGroups.DeleteGroup.DeleteGroupResponse
instance GHC.Show.Show Amazonka.ResourceGroups.DeleteGroup.DeleteGroupResponse
instance GHC.Read.Read Amazonka.ResourceGroups.DeleteGroup.DeleteGroupResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.DeleteGroup.DeleteGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.DeleteGroup.DeleteGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.DeleteGroup.DeleteGroup
-- | Creates a resource group with the specified name and description. You
-- can optionally include a resource query, or a service configuration.
-- For more information about constructing a resource query, see
-- Create a tag-based group in Resource Groups. For more
-- information about service configurations, see Service
-- configurations for resource groups.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.CreateGroup
-- | See: newCreateGroup smart constructor.
data CreateGroup
CreateGroup' :: Maybe [GroupConfigurationItem] -> Maybe Text -> Maybe ResourceQuery -> Maybe (HashMap Text Text) -> Text -> CreateGroup
-- | A configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
-- For details about the syntax of service configurations, see Service
-- configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
[$sel:configuration:CreateGroup'] :: CreateGroup -> Maybe [GroupConfigurationItem]
-- | The description of the resource group. Descriptions can consist of
-- letters, numbers, hyphens, underscores, periods, and spaces.
[$sel:description:CreateGroup'] :: CreateGroup -> Maybe Text
-- | The resource query that determines which AWS resources are members of
-- this group. For more information about resource queries, see Create
-- a tag-based group in Resource Groups.
--
-- A resource group can contain either a ResourceQuery or a
-- Configuration, but not both.
[$sel:resourceQuery:CreateGroup'] :: CreateGroup -> Maybe ResourceQuery
-- | The tags to add to the group. A tag is key-value pair string.
[$sel:tags:CreateGroup'] :: CreateGroup -> Maybe (HashMap Text Text)
-- | The name of the group, which is the identifier of the group in other
-- operations. You can't change the name of a resource group after you
-- create it. A resource group name can consist of letters, numbers,
-- hyphens, periods, and underscores. The name cannot start with
-- AWS or aws; these are reserved. A resource group
-- name must be unique within each AWS Region in your AWS account.
[$sel:name:CreateGroup'] :: CreateGroup -> Text
-- | Create a value of CreateGroup 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:
--
-- CreateGroup, createGroup_configuration - A configuration
-- associates the resource group with an AWS service and specifies how
-- the service can interact with the resources in the group. A
-- configuration is an array of GroupConfigurationItem elements. For
-- details about the syntax of service configurations, see Service
-- configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
--
-- CreateGroup, createGroup_description - The description
-- of the resource group. Descriptions can consist of letters, numbers,
-- hyphens, underscores, periods, and spaces.
--
-- CreateGroup, createGroup_resourceQuery - The resource
-- query that determines which AWS resources are members of this group.
-- For more information about resource queries, see Create a tag-based
-- group in Resource Groups.
--
-- A resource group can contain either a ResourceQuery or a
-- Configuration, but not both.
--
-- CreateGroup, createGroup_tags - The tags to add to the
-- group. A tag is key-value pair string.
--
-- CreateGroup, createGroup_name - The name of the group,
-- which is the identifier of the group in other operations. You can't
-- change the name of a resource group after you create it. A resource
-- group name can consist of letters, numbers, hyphens, periods, and
-- underscores. The name cannot start with AWS or aws;
-- these are reserved. A resource group name must be unique within each
-- AWS Region in your AWS account.
newCreateGroup :: Text -> CreateGroup
-- | A configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
-- For details about the syntax of service configurations, see Service
-- configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
createGroup_configuration :: Lens' CreateGroup (Maybe [GroupConfigurationItem])
-- | The description of the resource group. Descriptions can consist of
-- letters, numbers, hyphens, underscores, periods, and spaces.
createGroup_description :: Lens' CreateGroup (Maybe Text)
-- | The resource query that determines which AWS resources are members of
-- this group. For more information about resource queries, see Create
-- a tag-based group in Resource Groups.
--
-- A resource group can contain either a ResourceQuery or a
-- Configuration, but not both.
createGroup_resourceQuery :: Lens' CreateGroup (Maybe ResourceQuery)
-- | The tags to add to the group. A tag is key-value pair string.
createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text))
-- | The name of the group, which is the identifier of the group in other
-- operations. You can't change the name of a resource group after you
-- create it. A resource group name can consist of letters, numbers,
-- hyphens, periods, and underscores. The name cannot start with
-- AWS or aws; these are reserved. A resource group
-- name must be unique within each AWS Region in your AWS account.
createGroup_name :: Lens' CreateGroup Text
-- | See: newCreateGroupResponse smart constructor.
data CreateGroupResponse
CreateGroupResponse' :: Maybe Group -> Maybe GroupConfiguration -> Maybe ResourceQuery -> Maybe (HashMap Text Text) -> Int -> CreateGroupResponse
-- | The description of the resource group.
[$sel:group':CreateGroupResponse'] :: CreateGroupResponse -> Maybe Group
-- | The service configuration associated with the resource group. For
-- details about the syntax of a service configuration, see Service
-- configurations for resource groups.
[$sel:groupConfiguration:CreateGroupResponse'] :: CreateGroupResponse -> Maybe GroupConfiguration
-- | The resource query associated with the group. For more information
-- about resource queries, see Create a tag-based group in Resource
-- Groups.
[$sel:resourceQuery:CreateGroupResponse'] :: CreateGroupResponse -> Maybe ResourceQuery
-- | The tags associated with the group.
[$sel:tags:CreateGroupResponse'] :: CreateGroupResponse -> Maybe (HashMap Text Text)
-- | The response's http status code.
[$sel:httpStatus:CreateGroupResponse'] :: CreateGroupResponse -> Int
-- | Create a value of CreateGroupResponse 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:group':CreateGroupResponse',
-- createGroupResponse_group - The description of the resource
-- group.
--
-- $sel:groupConfiguration:CreateGroupResponse',
-- createGroupResponse_groupConfiguration - The service
-- configuration associated with the resource group. For details about
-- the syntax of a service configuration, see Service configurations
-- for resource groups.
--
-- CreateGroup, createGroupResponse_resourceQuery - The
-- resource query associated with the group. For more information about
-- resource queries, see Create a tag-based group in Resource
-- Groups.
--
-- CreateGroup, createGroupResponse_tags - The tags
-- associated with the group.
--
-- $sel:httpStatus:CreateGroupResponse',
-- createGroupResponse_httpStatus - The response's http status
-- code.
newCreateGroupResponse :: Int -> CreateGroupResponse
-- | The description of the resource group.
createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group)
-- | The service configuration associated with the resource group. For
-- details about the syntax of a service configuration, see Service
-- configurations for resource groups.
createGroupResponse_groupConfiguration :: Lens' CreateGroupResponse (Maybe GroupConfiguration)
-- | The resource query associated with the group. For more information
-- about resource queries, see Create a tag-based group in Resource
-- Groups.
createGroupResponse_resourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery)
-- | The tags associated with the group.
createGroupResponse_tags :: Lens' CreateGroupResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance GHC.Show.Show Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance GHC.Read.Read Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance GHC.Classes.Eq Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance GHC.Generics.Generic Amazonka.ResourceGroups.CreateGroup.CreateGroupResponse
instance GHC.Show.Show Amazonka.ResourceGroups.CreateGroup.CreateGroupResponse
instance GHC.Read.Read Amazonka.ResourceGroups.CreateGroup.CreateGroupResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.CreateGroup.CreateGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.CreateGroup.CreateGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.CreateGroup.CreateGroup
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.CreateGroup.CreateGroup
-- | Removes the specified resources from the specified group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.UngroupResources
-- | See: newUngroupResources smart constructor.
data UngroupResources
UngroupResources' :: Text -> NonEmpty Text -> UngroupResources
-- | The name or the ARN of the resource group from which to remove the
-- resources.
[$sel:group':UngroupResources'] :: UngroupResources -> Text
-- | The ARNs of the resources to be removed from the group.
[$sel:resourceArns:UngroupResources'] :: UngroupResources -> NonEmpty Text
-- | Create a value of UngroupResources 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:group':UngroupResources', ungroupResources_group -
-- The name or the ARN of the resource group from which to remove the
-- resources.
--
-- $sel:resourceArns:UngroupResources',
-- ungroupResources_resourceArns - The ARNs of the resources to be
-- removed from the group.
newUngroupResources :: Text -> NonEmpty Text -> UngroupResources
-- | The name or the ARN of the resource group from which to remove the
-- resources.
ungroupResources_group :: Lens' UngroupResources Text
-- | The ARNs of the resources to be removed from the group.
ungroupResources_resourceArns :: Lens' UngroupResources (NonEmpty Text)
-- | See: newUngroupResourcesResponse smart constructor.
data UngroupResourcesResponse
UngroupResourcesResponse' :: Maybe [FailedResource] -> Maybe [PendingResource] -> Maybe (NonEmpty Text) -> Int -> UngroupResourcesResponse
-- | A list of any resources that failed to be removed from the group by
-- this operation.
[$sel:failed:UngroupResourcesResponse'] :: UngroupResourcesResponse -> Maybe [FailedResource]
-- | A list of any resources that are still in the process of being removed
-- from the group by this operation. These pending removals continue
-- asynchronously. You can check the status of pending removals by using
-- the ListGroupResources operation. After
-- the resource is successfully removed, it no longer appears in the
-- response.
[$sel:pending:UngroupResourcesResponse'] :: UngroupResourcesResponse -> Maybe [PendingResource]
-- | A list of resources that were successfully removed from the group by
-- this operation.
[$sel:succeeded:UngroupResourcesResponse'] :: UngroupResourcesResponse -> Maybe (NonEmpty Text)
-- | The response's http status code.
[$sel:httpStatus:UngroupResourcesResponse'] :: UngroupResourcesResponse -> Int
-- | Create a value of UngroupResourcesResponse 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:failed:UngroupResourcesResponse',
-- ungroupResourcesResponse_failed - A list of any resources that
-- failed to be removed from the group by this operation.
--
-- $sel:pending:UngroupResourcesResponse',
-- ungroupResourcesResponse_pending - A list of any resources that
-- are still in the process of being removed from the group by this
-- operation. These pending removals continue asynchronously. You can
-- check the status of pending removals by using the
-- ListGroupResources operation. After the
-- resource is successfully removed, it no longer appears in the
-- response.
--
-- $sel:succeeded:UngroupResourcesResponse',
-- ungroupResourcesResponse_succeeded - A list of resources that
-- were successfully removed from the group by this operation.
--
-- $sel:httpStatus:UngroupResourcesResponse',
-- ungroupResourcesResponse_httpStatus - The response's http
-- status code.
newUngroupResourcesResponse :: Int -> UngroupResourcesResponse
-- | A list of any resources that failed to be removed from the group by
-- this operation.
ungroupResourcesResponse_failed :: Lens' UngroupResourcesResponse (Maybe [FailedResource])
-- | A list of any resources that are still in the process of being removed
-- from the group by this operation. These pending removals continue
-- asynchronously. You can check the status of pending removals by using
-- the ListGroupResources operation. After
-- the resource is successfully removed, it no longer appears in the
-- response.
ungroupResourcesResponse_pending :: Lens' UngroupResourcesResponse (Maybe [PendingResource])
-- | A list of resources that were successfully removed from the group by
-- this operation.
ungroupResourcesResponse_succeeded :: Lens' UngroupResourcesResponse (Maybe (NonEmpty Text))
-- | The response's http status code.
ungroupResourcesResponse_httpStatus :: Lens' UngroupResourcesResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance GHC.Show.Show Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance GHC.Read.Read Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance GHC.Classes.Eq Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance GHC.Generics.Generic Amazonka.ResourceGroups.UngroupResources.UngroupResourcesResponse
instance GHC.Show.Show Amazonka.ResourceGroups.UngroupResources.UngroupResourcesResponse
instance GHC.Read.Read Amazonka.ResourceGroups.UngroupResources.UngroupResourcesResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.UngroupResources.UngroupResourcesResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UngroupResources.UngroupResourcesResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.UngroupResources.UngroupResources
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.UngroupResources.UngroupResources
-- | Deletes tags from a specified resource group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
-- resource-groups:Untag
--
module Amazonka.ResourceGroups.Untag
-- | See: newUntag smart constructor.
data Untag
Untag' :: Text -> [Text] -> Untag
-- | The ARN of the resource group from which to remove tags. The command
-- removed both the specified keys and any values associated with those
-- keys.
[$sel:arn:Untag'] :: Untag -> Text
-- | The keys of the tags to be removed.
[$sel:keys:Untag'] :: Untag -> [Text]
-- | Create a value of Untag 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:
--
-- Untag, untag_arn - The ARN of the resource group from
-- which to remove tags. The command removed both the specified keys and
-- any values associated with those keys.
--
-- Untag, untag_keys - The keys of the tags to be removed.
newUntag :: Text -> Untag
-- | The ARN of the resource group from which to remove tags. The command
-- removed both the specified keys and any values associated with those
-- keys.
untag_arn :: Lens' Untag Text
-- | The keys of the tags to be removed.
untag_keys :: Lens' Untag [Text]
-- | See: newUntagResponse smart constructor.
data UntagResponse
UntagResponse' :: Maybe Text -> Maybe [Text] -> Int -> UntagResponse
-- | The ARN of the resource group from which tags have been removed.
[$sel:arn:UntagResponse'] :: UntagResponse -> Maybe Text
-- | The keys of the tags that were removed.
[$sel:keys:UntagResponse'] :: UntagResponse -> Maybe [Text]
-- | The response's http status code.
[$sel:httpStatus:UntagResponse'] :: UntagResponse -> Int
-- | Create a value of UntagResponse 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:
--
-- Untag, untagResponse_arn - The ARN of the resource group
-- from which tags have been removed.
--
-- Untag, untagResponse_keys - The keys of the tags that
-- were removed.
--
-- $sel:httpStatus:UntagResponse', untagResponse_httpStatus
-- - The response's http status code.
newUntagResponse :: Int -> UntagResponse
-- | The ARN of the resource group from which tags have been removed.
untagResponse_arn :: Lens' UntagResponse (Maybe Text)
-- | The keys of the tags that were removed.
untagResponse_keys :: Lens' UntagResponse (Maybe [Text])
-- | The response's http status code.
untagResponse_httpStatus :: Lens' UntagResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.Untag.Untag
instance GHC.Show.Show Amazonka.ResourceGroups.Untag.Untag
instance GHC.Read.Read Amazonka.ResourceGroups.Untag.Untag
instance GHC.Classes.Eq Amazonka.ResourceGroups.Untag.Untag
instance GHC.Generics.Generic Amazonka.ResourceGroups.Untag.UntagResponse
instance GHC.Show.Show Amazonka.ResourceGroups.Untag.UntagResponse
instance GHC.Read.Read Amazonka.ResourceGroups.Untag.UntagResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.Untag.UntagResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.Untag.Untag
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Untag.UntagResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.Untag.Untag
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.Untag.Untag
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.Untag.Untag
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.Untag.Untag
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.Untag.Untag
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.Untag.Untag
-- | Updates the description for an existing group. You cannot update the
-- name of a resource group.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.UpdateGroup
-- | See: newUpdateGroup smart constructor.
data UpdateGroup
UpdateGroup' :: Maybe Text -> Maybe Text -> Maybe Text -> UpdateGroup
-- | The new description that you want to update the resource group with.
-- Descriptions can contain letters, numbers, hyphens, underscores,
-- periods, and spaces.
[$sel:description:UpdateGroup'] :: UpdateGroup -> Maybe Text
-- | The name or the ARN of the resource group to modify.
[$sel:group':UpdateGroup'] :: UpdateGroup -> Maybe Text
-- | Don't use this parameter. Use Group instead.
[$sel:groupName:UpdateGroup'] :: UpdateGroup -> Maybe Text
-- | Create a value of UpdateGroup 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:
--
-- UpdateGroup, updateGroup_description - The new
-- description that you want to update the resource group with.
-- Descriptions can contain letters, numbers, hyphens, underscores,
-- periods, and spaces.
--
-- UpdateGroup, updateGroup_group - The name or the ARN of
-- the resource group to modify.
--
-- UpdateGroup, updateGroup_groupName - Don't use this
-- parameter. Use Group instead.
newUpdateGroup :: UpdateGroup
-- | The new description that you want to update the resource group with.
-- Descriptions can contain letters, numbers, hyphens, underscores,
-- periods, and spaces.
updateGroup_description :: Lens' UpdateGroup (Maybe Text)
-- | The name or the ARN of the resource group to modify.
updateGroup_group :: Lens' UpdateGroup (Maybe Text)
-- | Don't use this parameter. Use Group instead.
updateGroup_groupName :: Lens' UpdateGroup (Maybe Text)
-- | See: newUpdateGroupResponse smart constructor.
data UpdateGroupResponse
UpdateGroupResponse' :: Maybe Group -> Int -> UpdateGroupResponse
-- | The update description of the resource group.
[$sel:group':UpdateGroupResponse'] :: UpdateGroupResponse -> Maybe Group
-- | The response's http status code.
[$sel:httpStatus:UpdateGroupResponse'] :: UpdateGroupResponse -> Int
-- | Create a value of UpdateGroupResponse 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:
--
-- UpdateGroup, updateGroupResponse_group - The update
-- description of the resource group.
--
-- $sel:httpStatus:UpdateGroupResponse',
-- updateGroupResponse_httpStatus - The response's http status
-- code.
newUpdateGroupResponse :: Int -> UpdateGroupResponse
-- | The update description of the resource group.
updateGroupResponse_group :: Lens' UpdateGroupResponse (Maybe Group)
-- | The response's http status code.
updateGroupResponse_httpStatus :: Lens' UpdateGroupResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance GHC.Show.Show Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance GHC.Read.Read Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance GHC.Classes.Eq Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance GHC.Generics.Generic Amazonka.ResourceGroups.UpdateGroup.UpdateGroupResponse
instance GHC.Show.Show Amazonka.ResourceGroups.UpdateGroup.UpdateGroupResponse
instance GHC.Read.Read Amazonka.ResourceGroups.UpdateGroup.UpdateGroupResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.UpdateGroup.UpdateGroupResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UpdateGroup.UpdateGroupResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.UpdateGroup.UpdateGroup
-- | Updates the resource query of a group. For more information about
-- resource queries, see Create a tag-based group in Resource
-- Groups.
--
-- Minimum permissions
--
-- To run this command, you must have the following permissions:
--
--
module Amazonka.ResourceGroups.UpdateGroupQuery
-- | See: newUpdateGroupQuery smart constructor.
data UpdateGroupQuery
UpdateGroupQuery' :: Maybe Text -> Maybe Text -> ResourceQuery -> UpdateGroupQuery
-- | The name or the ARN of the resource group to query.
[$sel:group':UpdateGroupQuery'] :: UpdateGroupQuery -> Maybe Text
-- | Don't use this parameter. Use Group instead.
[$sel:groupName:UpdateGroupQuery'] :: UpdateGroupQuery -> Maybe Text
-- | The resource query to determine which AWS resources are members of
-- this resource group.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
[$sel:resourceQuery:UpdateGroupQuery'] :: UpdateGroupQuery -> ResourceQuery
-- | Create a value of UpdateGroupQuery 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:group':UpdateGroupQuery', updateGroupQuery_group -
-- The name or the ARN of the resource group to query.
--
-- UpdateGroupQuery, updateGroupQuery_groupName - Don't use
-- this parameter. Use Group instead.
--
-- UpdateGroupQuery, updateGroupQuery_resourceQuery - The
-- resource query to determine which AWS resources are members of this
-- resource group.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
newUpdateGroupQuery :: ResourceQuery -> UpdateGroupQuery
-- | The name or the ARN of the resource group to query.
updateGroupQuery_group :: Lens' UpdateGroupQuery (Maybe Text)
-- | Don't use this parameter. Use Group instead.
updateGroupQuery_groupName :: Lens' UpdateGroupQuery (Maybe Text)
-- | The resource query to determine which AWS resources are members of
-- this resource group.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
updateGroupQuery_resourceQuery :: Lens' UpdateGroupQuery ResourceQuery
-- | See: newUpdateGroupQueryResponse smart constructor.
data UpdateGroupQueryResponse
UpdateGroupQueryResponse' :: Maybe GroupQuery -> Int -> UpdateGroupQueryResponse
-- | The updated resource query associated with the resource group after
-- the update.
[$sel:groupQuery:UpdateGroupQueryResponse'] :: UpdateGroupQueryResponse -> Maybe GroupQuery
-- | The response's http status code.
[$sel:httpStatus:UpdateGroupQueryResponse'] :: UpdateGroupQueryResponse -> Int
-- | Create a value of UpdateGroupQueryResponse 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:groupQuery:UpdateGroupQueryResponse',
-- updateGroupQueryResponse_groupQuery - The updated resource
-- query associated with the resource group after the update.
--
-- $sel:httpStatus:UpdateGroupQueryResponse',
-- updateGroupQueryResponse_httpStatus - The response's http
-- status code.
newUpdateGroupQueryResponse :: Int -> UpdateGroupQueryResponse
-- | The updated resource query associated with the resource group after
-- the update.
updateGroupQueryResponse_groupQuery :: Lens' UpdateGroupQueryResponse (Maybe GroupQuery)
-- | The response's http status code.
updateGroupQueryResponse_httpStatus :: Lens' UpdateGroupQueryResponse Int
instance GHC.Generics.Generic Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance GHC.Show.Show Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance GHC.Read.Read Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance GHC.Classes.Eq Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance GHC.Generics.Generic Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQueryResponse
instance GHC.Show.Show Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQueryResponse
instance GHC.Read.Read Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQueryResponse
instance GHC.Classes.Eq Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQueryResponse
instance Amazonka.Types.AWSRequest Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQueryResponse
instance Data.Hashable.Class.Hashable Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Control.DeepSeq.NFData Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Amazonka.Data.Headers.ToHeaders Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Amazonka.Data.Path.ToPath Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
instance Amazonka.Data.Query.ToQuery Amazonka.ResourceGroups.UpdateGroupQuery.UpdateGroupQuery
module Amazonka.ResourceGroups.Lens
-- | A configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
-- For details about the syntax of service configurations, see Service
-- configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
createGroup_configuration :: Lens' CreateGroup (Maybe [GroupConfigurationItem])
-- | The description of the resource group. Descriptions can consist of
-- letters, numbers, hyphens, underscores, periods, and spaces.
createGroup_description :: Lens' CreateGroup (Maybe Text)
-- | The resource query that determines which AWS resources are members of
-- this group. For more information about resource queries, see Create
-- a tag-based group in Resource Groups.
--
-- A resource group can contain either a ResourceQuery or a
-- Configuration, but not both.
createGroup_resourceQuery :: Lens' CreateGroup (Maybe ResourceQuery)
-- | The tags to add to the group. A tag is key-value pair string.
createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text))
-- | The name of the group, which is the identifier of the group in other
-- operations. You can't change the name of a resource group after you
-- create it. A resource group name can consist of letters, numbers,
-- hyphens, periods, and underscores. The name cannot start with
-- AWS or aws; these are reserved. A resource group
-- name must be unique within each AWS Region in your AWS account.
createGroup_name :: Lens' CreateGroup Text
-- | The description of the resource group.
createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group)
-- | The service configuration associated with the resource group. For
-- details about the syntax of a service configuration, see Service
-- configurations for resource groups.
createGroupResponse_groupConfiguration :: Lens' CreateGroupResponse (Maybe GroupConfiguration)
-- | The resource query associated with the group. For more information
-- about resource queries, see Create a tag-based group in Resource
-- Groups.
createGroupResponse_resourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery)
-- | The tags associated with the group.
createGroupResponse_tags :: Lens' CreateGroupResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
-- | The name or the ARN of the resource group to delete.
deleteGroup_group :: Lens' DeleteGroup (Maybe Text)
-- | Deprecated - don't use this parameter. Use Group instead.
deleteGroup_groupName :: Lens' DeleteGroup (Maybe Text)
-- | A full description of the deleted resource group.
deleteGroupResponse_group :: Lens' DeleteGroupResponse (Maybe Group)
-- | The response's http status code.
deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int
-- | The name or the ARN of the resource group to retrieve.
getGroup_group :: Lens' GetGroup (Maybe Text)
-- | Deprecated - don't use this parameter. Use Group instead.
getGroup_groupName :: Lens' GetGroup (Maybe Text)
-- | A full description of the resource group.
getGroupResponse_group :: Lens' GetGroupResponse (Maybe Group)
-- | The response's http status code.
getGroupResponse_httpStatus :: Lens' GetGroupResponse Int
-- | The name or the ARN of the resource group.
getGroupConfiguration_group :: Lens' GetGroupConfiguration (Maybe Text)
-- | The service configuration associated with the specified group. For
-- details about the service configuration syntax, see Service
-- configurations for resource groups.
getGroupConfigurationResponse_groupConfiguration :: Lens' GetGroupConfigurationResponse (Maybe GroupConfiguration)
-- | The response's http status code.
getGroupConfigurationResponse_httpStatus :: Lens' GetGroupConfigurationResponse Int
-- | The name or the ARN of the resource group to query.
getGroupQuery_group :: Lens' GetGroupQuery (Maybe Text)
-- | Don't use this parameter. Use Group instead.
getGroupQuery_groupName :: Lens' GetGroupQuery (Maybe Text)
-- | The resource query associated with the specified group. For more
-- information about resource queries, see Create a tag-based group in
-- Resource Groups.
getGroupQueryResponse_groupQuery :: Lens' GetGroupQueryResponse (Maybe GroupQuery)
-- | The response's http status code.
getGroupQueryResponse_httpStatus :: Lens' GetGroupQueryResponse Int
-- | The ARN of the resource group whose tags you want to retrieve.
getTags_arn :: Lens' GetTags Text
-- | The ARN of the tagged resource group.
getTagsResponse_arn :: Lens' GetTagsResponse (Maybe Text)
-- | The tags associated with the specified resource group.
getTagsResponse_tags :: Lens' GetTagsResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
getTagsResponse_httpStatus :: Lens' GetTagsResponse Int
-- | The name or the ARN of the resource group to add resources to.
groupResources_group :: Lens' GroupResources Text
-- | The list of ARNs for resources to be added to the group.
groupResources_resourceArns :: Lens' GroupResources (NonEmpty Text)
-- | A list of ARNs of any resources that failed to be added to the group
-- by this operation.
groupResourcesResponse_failed :: Lens' GroupResourcesResponse (Maybe [FailedResource])
-- | A list of ARNs of any resources that are still in the process of being
-- added to the group by this operation. These pending additions continue
-- asynchronously. You can check the status of pending additions by using
-- the ListGroupResources operation, and
-- checking the Resources array in the response and the
-- Status field of each object in that array.
groupResourcesResponse_pending :: Lens' GroupResourcesResponse (Maybe [PendingResource])
-- | A list of ARNs of resources that were successfully added to the group
-- by this operation.
groupResourcesResponse_succeeded :: Lens' GroupResourcesResponse (Maybe (NonEmpty Text))
-- | The response's http status code.
groupResourcesResponse_httpStatus :: Lens' GroupResourcesResponse Int
-- | Filters, formatted as ResourceFilter objects, that you want to apply
-- to a ListGroupResources operation. Filters the results to
-- include only those of the specified resource types.
--
--
-- - resource-type - Filter resources by their type. Specify
-- up to five resource types in the format
-- AWS::ServiceCode::ResourceType. For example,
-- AWS::EC2::Instance, or AWS::S3::Bucket.
--
--
-- When you specify a resource-type filter for
-- ListGroupResources, AWS Resource Groups validates your filter
-- resource types against the types that are defined in the query
-- associated with the group. For example, if a group contains only S3
-- buckets because its query specifies only that resource type, but your
-- resource-type filter includes EC2 instances, AWS Resource
-- Groups does not filter for EC2 instances. In this case, a
-- ListGroupResources request returns a
-- BadRequestException error with a message similar to the
-- following:
--
--
-- The resource types specified as filters in the request are not valid.
--
--
-- The error includes a list of resource types that failed the validation
-- because they are not part of the query associated with the group. This
-- validation doesn't occur when the group query specifies
-- AWS::AllSupported, because a group based on such a query can
-- contain any of the allowed resource types for the query type
-- (tag-based or AWS CloudFormation stack-based queries).
listGroupResources_filters :: Lens' ListGroupResources (Maybe [ResourceFilter])
-- | The name or the ARN of the resource group
listGroupResources_group :: Lens' ListGroupResources (Maybe Text)
-- | /__Deprecated - don't use this parameter. Use the Group
-- request field instead.__/
listGroupResources_groupName :: Lens' ListGroupResources (Maybe Text)
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
listGroupResources_maxResults :: Lens' ListGroupResources (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
listGroupResources_nextToken :: Lens' ListGroupResources (Maybe Text)
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
listGroupResourcesResponse_nextToken :: Lens' ListGroupResourcesResponse (Maybe Text)
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
listGroupResourcesResponse_queryErrors :: Lens' ListGroupResourcesResponse (Maybe [QueryError])
-- | __/Deprecated - don't use this parameter. Use the Resources
-- response field instead./__
listGroupResourcesResponse_resourceIdentifiers :: Lens' ListGroupResourcesResponse (Maybe [ResourceIdentifier])
-- | An array of resources from which you can determine each resource's
-- identity, type, and group membership status.
listGroupResourcesResponse_resources :: Lens' ListGroupResourcesResponse (Maybe [ListGroupResourcesItem])
-- | The response's http status code.
listGroupResourcesResponse_httpStatus :: Lens' ListGroupResourcesResponse Int
-- | Filters, formatted as GroupFilter objects, that you want to apply to a
-- ListGroups operation.
--
--
-- - resource-type - Filter the results to include only those
-- of the specified resource types. Specify up to five resource types in
-- the format
-- AWS::ServiceCode::ResourceType
-- . For example, AWS::EC2::Instance, or
-- AWS::S3::Bucket.
-- - configuration-type - Filter the results to include only
-- those groups that have the specified configuration types attached. The
-- current supported values
-- are:
--
listGroups_filters :: Lens' ListGroups (Maybe [GroupFilter])
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
listGroups_maxResults :: Lens' ListGroups (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
listGroups_nextToken :: Lens' ListGroups (Maybe Text)
-- | A list of GroupIdentifier objects. Each identifier is an object that
-- contains both the Name and the GroupArn.
listGroupsResponse_groupIdentifiers :: Lens' ListGroupsResponse (Maybe [GroupIdentifier])
-- | /__Deprecated - don't use this field. Use the
-- GroupIdentifiers response field instead.__/
listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [Group])
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text)
-- | The response's http status code.
listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int
-- | The new configuration to associate with the specified group. A
-- configuration associates the resource group with an AWS service and
-- specifies how the service can interact with the resources in the
-- group. A configuration is an array of GroupConfigurationItem elements.
--
-- For information about the syntax of a service configuration, see
-- Service configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
putGroupConfiguration_configuration :: Lens' PutGroupConfiguration (Maybe [GroupConfigurationItem])
-- | The name or ARN of the resource group with the configuration that you
-- want to update.
putGroupConfiguration_group :: Lens' PutGroupConfiguration (Maybe Text)
-- | The response's http status code.
putGroupConfigurationResponse_httpStatus :: Lens' PutGroupConfigurationResponse Int
-- | The total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
searchResources_maxResults :: Lens' SearchResources (Maybe Natural)
-- | The parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
searchResources_nextToken :: Lens' SearchResources (Maybe Text)
-- | The search query, using the same formats that are supported for
-- resource group definition. For more information, see CreateGroup.
searchResources_resourceQuery :: Lens' SearchResources ResourceQuery
-- | If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
searchResourcesResponse_nextToken :: Lens' SearchResourcesResponse (Maybe Text)
-- | A list of QueryError objects. Each error is an object that
-- contains ErrorCode and Message structures. Possible
-- values for ErrorCode are
-- CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
searchResourcesResponse_queryErrors :: Lens' SearchResourcesResponse (Maybe [QueryError])
-- | The ARNs and resource types of resources that are members of the group
-- that you specified.
searchResourcesResponse_resourceIdentifiers :: Lens' SearchResourcesResponse (Maybe [ResourceIdentifier])
-- | The response's http status code.
searchResourcesResponse_httpStatus :: Lens' SearchResourcesResponse Int
-- | The ARN of the resource group to which to add tags.
tag_arn :: Lens' Tag Text
-- | The tags to add to the specified resource group. A tag is a
-- string-to-string map of key-value pairs.
tag_tags :: Lens' Tag (HashMap Text Text)
-- | The ARN of the tagged resource.
tagResponse_arn :: Lens' TagResponse (Maybe Text)
-- | The tags that have been added to the specified resource group.
tagResponse_tags :: Lens' TagResponse (Maybe (HashMap Text Text))
-- | The response's http status code.
tagResponse_httpStatus :: Lens' TagResponse Int
-- | The name or the ARN of the resource group from which to remove the
-- resources.
ungroupResources_group :: Lens' UngroupResources Text
-- | The ARNs of the resources to be removed from the group.
ungroupResources_resourceArns :: Lens' UngroupResources (NonEmpty Text)
-- | A list of any resources that failed to be removed from the group by
-- this operation.
ungroupResourcesResponse_failed :: Lens' UngroupResourcesResponse (Maybe [FailedResource])
-- | A list of any resources that are still in the process of being removed
-- from the group by this operation. These pending removals continue
-- asynchronously. You can check the status of pending removals by using
-- the ListGroupResources operation. After
-- the resource is successfully removed, it no longer appears in the
-- response.
ungroupResourcesResponse_pending :: Lens' UngroupResourcesResponse (Maybe [PendingResource])
-- | A list of resources that were successfully removed from the group by
-- this operation.
ungroupResourcesResponse_succeeded :: Lens' UngroupResourcesResponse (Maybe (NonEmpty Text))
-- | The response's http status code.
ungroupResourcesResponse_httpStatus :: Lens' UngroupResourcesResponse Int
-- | The ARN of the resource group from which to remove tags. The command
-- removed both the specified keys and any values associated with those
-- keys.
untag_arn :: Lens' Untag Text
-- | The keys of the tags to be removed.
untag_keys :: Lens' Untag [Text]
-- | The ARN of the resource group from which tags have been removed.
untagResponse_arn :: Lens' UntagResponse (Maybe Text)
-- | The keys of the tags that were removed.
untagResponse_keys :: Lens' UntagResponse (Maybe [Text])
-- | The response's http status code.
untagResponse_httpStatus :: Lens' UntagResponse Int
-- | The new description that you want to update the resource group with.
-- Descriptions can contain letters, numbers, hyphens, underscores,
-- periods, and spaces.
updateGroup_description :: Lens' UpdateGroup (Maybe Text)
-- | The name or the ARN of the resource group to modify.
updateGroup_group :: Lens' UpdateGroup (Maybe Text)
-- | Don't use this parameter. Use Group instead.
updateGroup_groupName :: Lens' UpdateGroup (Maybe Text)
-- | The update description of the resource group.
updateGroupResponse_group :: Lens' UpdateGroupResponse (Maybe Group)
-- | The response's http status code.
updateGroupResponse_httpStatus :: Lens' UpdateGroupResponse Int
-- | The name or the ARN of the resource group to query.
updateGroupQuery_group :: Lens' UpdateGroupQuery (Maybe Text)
-- | Don't use this parameter. Use Group instead.
updateGroupQuery_groupName :: Lens' UpdateGroupQuery (Maybe Text)
-- | The resource query to determine which AWS resources are members of
-- this resource group.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
updateGroupQuery_resourceQuery :: Lens' UpdateGroupQuery ResourceQuery
-- | The updated resource query associated with the resource group after
-- the update.
updateGroupQueryResponse_groupQuery :: Lens' UpdateGroupQueryResponse (Maybe GroupQuery)
-- | The response's http status code.
updateGroupQueryResponse_httpStatus :: Lens' UpdateGroupQueryResponse Int
-- | The error code associated with the failure.
failedResource_errorCode :: Lens' FailedResource (Maybe Text)
-- | The error message text associated with the failure.
failedResource_errorMessage :: Lens' FailedResource (Maybe Text)
-- | The ARN of the resource that failed to be added or removed.
failedResource_resourceArn :: Lens' FailedResource (Maybe Text)
-- | The description of the resource group.
group_description :: Lens' Group (Maybe Text)
-- | The ARN of the resource group.
group_groupArn :: Lens' Group Text
-- | The name of the resource group.
group_name :: Lens' Group Text
-- | The configuration currently associated with the group and in effect.
groupConfiguration_configuration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | If present, the reason why a request to update the group configuration
-- failed.
groupConfiguration_failureReason :: Lens' GroupConfiguration (Maybe Text)
-- | If present, the new configuration that is in the process of being
-- applied to the group.
groupConfiguration_proposedConfiguration :: Lens' GroupConfiguration (Maybe [GroupConfigurationItem])
-- | The current status of an attempt to update the group configuration.
groupConfiguration_status :: Lens' GroupConfiguration (Maybe GroupConfigurationStatus)
-- | A collection of parameters for this group configuration item. For the
-- list of parameters that you can use with each configuration item type,
-- see Supported resource types and parameters.
groupConfigurationItem_parameters :: Lens' GroupConfigurationItem (Maybe [GroupConfigurationParameter])
-- | Specifies the type of group configuration item. Each item must have a
-- unique value for type. For the list of types that you can
-- specify for a configuration item, see Supported resource types and
-- parameters.
groupConfigurationItem_type :: Lens' GroupConfigurationItem Text
-- | The value or values to be used for the specified parameter. For the
-- list of values you can use with each parameter, see Supported
-- resource types and parameters.
groupConfigurationParameter_values :: Lens' GroupConfigurationParameter (Maybe [Text])
-- | The name of the group configuration parameter. For the list of
-- parameters that you can use with each configuration item type, see
-- Supported resource types and parameters.
groupConfigurationParameter_name :: Lens' GroupConfigurationParameter Text
-- | The name of the filter. Filter names are case-sensitive.
groupFilter_name :: Lens' GroupFilter GroupFilterName
-- | One or more filter values. Allowed filter values vary by group filter
-- name, and are case-sensitive.
groupFilter_values :: Lens' GroupFilter (NonEmpty Text)
-- | The ARN of the resource group.
groupIdentifier_groupArn :: Lens' GroupIdentifier (Maybe Text)
-- | The name of the resource group.
groupIdentifier_groupName :: Lens' GroupIdentifier (Maybe Text)
-- | The name of the resource group that is associated with the specified
-- resource query.
groupQuery_groupName :: Lens' GroupQuery Text
-- | The resource query that determines which AWS resources are members of
-- the associated resource group.
groupQuery_resourceQuery :: Lens' GroupQuery ResourceQuery
-- | Undocumented member.
listGroupResourcesItem_identifier :: Lens' ListGroupResourcesItem (Maybe ResourceIdentifier)
-- | A structure that contains the status of this resource's membership in
-- the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
listGroupResourcesItem_status :: Lens' ListGroupResourcesItem (Maybe ResourceStatus)
-- | The Amazon resource name (ARN) of the resource that's in a pending
-- state.
pendingResource_resourceArn :: Lens' PendingResource (Maybe Text)
-- | Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
queryError_errorCode :: Lens' QueryError (Maybe QueryErrorCode)
-- | A message that explains the ErrorCode value. Messages might
-- state that the specified CloudFormation stack does not exist (or no
-- longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
-- message typically states that the CloudFormation stack has a status
-- that is not (or no longer) active, such as CREATE_FAILED.
queryError_message :: Lens' QueryError (Maybe Text)
-- | The name of the filter. Filter names are case-sensitive.
resourceFilter_name :: Lens' ResourceFilter ResourceFilterName
-- | One or more filter values. Allowed filter values vary by resource
-- filter name, and are case-sensitive.
resourceFilter_values :: Lens' ResourceFilter (NonEmpty Text)
-- | The ARN of a resource.
resourceIdentifier_resourceArn :: Lens' ResourceIdentifier (Maybe Text)
-- | The resource type of a resource, such as AWS::EC2::Instance.
resourceIdentifier_resourceType :: Lens' ResourceIdentifier (Maybe Text)
-- | The type of the query. You can use the following values:
--
--
resourceQuery_type :: Lens' ResourceQuery QueryType
-- | The query that defines a group or a search.
resourceQuery_searchQuery :: Lens' ResourceQuery Text
-- | The current status.
resourceStatus_name :: Lens' ResourceStatus (Maybe ResourceStatusValue)
module Amazonka.ResourceGroups.Waiters
-- | Derived from API version 2017-11-27 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- AWS Resource Groups
--
-- AWS Resource Groups lets you organize AWS resources such as Amazon EC2
-- instances, Amazon Relational Database Service databases, and Amazon S3
-- buckets into groups using criteria that you define as tags. A resource
-- group is a collection of resources that match the resource types
-- specified in a query, and share one or more tags or portions of tags.
-- You can create a group of resources based on their roles in your cloud
-- infrastructure, lifecycle stages, regions, application layers, or
-- virtually any criteria. Resource Groups enable you to automate
-- management tasks, such as those in AWS Systems Manager Automation
-- documents, on tag-related resources in AWS Systems Manager. Groups of
-- tagged resources also let you quickly view a custom console in AWS
-- Systems Manager that shows AWS Config compliance and other monitoring
-- data about member resources.
--
-- To create a resource group, build a resource query, and specify tags
-- that identify the criteria that members of the group have in common.
-- Tags are key-value pairs.
--
-- For more information about Resource Groups, see the AWS Resource
-- Groups User Guide.
--
-- AWS Resource Groups uses a REST-compliant API that you can use to
-- perform the following types of operations.
--
--
-- - Create, Read, Update, and Delete (CRUD) operations on resource
-- groups and resource query entities
-- - Applying, editing, and removing tags from resource groups
-- - Resolving resource group member ARNs so they can be returned as
-- search results
-- - Getting data about resources that are members of a group
-- - Searching AWS resources based on a resource query
--
module Amazonka.ResourceGroups
-- | API version 2017-11-27 of the Amazon Resource Groups SDK
-- configuration.
defaultService :: Service
-- | The request includes one or more parameters that violate validation
-- rules.
_BadRequestException :: AsError a => Fold a ServiceError
-- | The caller isn't authorized to make the request. Check permissions.
_ForbiddenException :: AsError a => Fold a ServiceError
-- | An internal error occurred while processing the request. Try again
-- later.
_InternalServerErrorException :: AsError a => Fold a ServiceError
-- | The request uses an HTTP method that isn't allowed for the specified
-- resource.
_MethodNotAllowedException :: AsError a => Fold a ServiceError
-- | One or more of the specified resources don't exist.
_NotFoundException :: AsError a => Fold a ServiceError
-- | You've exceeded throttling limits by making too many requests in a
-- period of time.
_TooManyRequestsException :: AsError a => Fold a ServiceError
-- | The request was rejected because it doesn't have valid credentials for
-- the target resource.
_UnauthorizedException :: AsError a => Fold a ServiceError
-- | See: newCreateGroup smart constructor.
data CreateGroup
CreateGroup' :: Maybe [GroupConfigurationItem] -> Maybe Text -> Maybe ResourceQuery -> Maybe (HashMap Text Text) -> Text -> CreateGroup
-- | Create a value of CreateGroup 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:
--
-- CreateGroup, createGroup_configuration - A configuration
-- associates the resource group with an AWS service and specifies how
-- the service can interact with the resources in the group. A
-- configuration is an array of GroupConfigurationItem elements. For
-- details about the syntax of service configurations, see Service
-- configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
--
-- CreateGroup, createGroup_description - The description
-- of the resource group. Descriptions can consist of letters, numbers,
-- hyphens, underscores, periods, and spaces.
--
-- CreateGroup, createGroup_resourceQuery - The resource
-- query that determines which AWS resources are members of this group.
-- For more information about resource queries, see Create a tag-based
-- group in Resource Groups.
--
-- A resource group can contain either a ResourceQuery or a
-- Configuration, but not both.
--
-- CreateGroup, createGroup_tags - The tags to add to the
-- group. A tag is key-value pair string.
--
-- CreateGroup, createGroup_name - The name of the group,
-- which is the identifier of the group in other operations. You can't
-- change the name of a resource group after you create it. A resource
-- group name can consist of letters, numbers, hyphens, periods, and
-- underscores. The name cannot start with AWS or aws;
-- these are reserved. A resource group name must be unique within each
-- AWS Region in your AWS account.
newCreateGroup :: Text -> CreateGroup
-- | See: newCreateGroupResponse smart constructor.
data CreateGroupResponse
CreateGroupResponse' :: Maybe Group -> Maybe GroupConfiguration -> Maybe ResourceQuery -> Maybe (HashMap Text Text) -> Int -> CreateGroupResponse
-- | Create a value of CreateGroupResponse 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:group':CreateGroupResponse',
-- createGroupResponse_group - The description of the resource
-- group.
--
-- $sel:groupConfiguration:CreateGroupResponse',
-- createGroupResponse_groupConfiguration - The service
-- configuration associated with the resource group. For details about
-- the syntax of a service configuration, see Service configurations
-- for resource groups.
--
-- CreateGroup, createGroupResponse_resourceQuery - The
-- resource query associated with the group. For more information about
-- resource queries, see Create a tag-based group in Resource
-- Groups.
--
-- CreateGroup, createGroupResponse_tags - The tags
-- associated with the group.
--
-- $sel:httpStatus:CreateGroupResponse',
-- createGroupResponse_httpStatus - The response's http status
-- code.
newCreateGroupResponse :: Int -> CreateGroupResponse
-- | See: newDeleteGroup smart constructor.
data DeleteGroup
DeleteGroup' :: Maybe Text -> Maybe Text -> DeleteGroup
-- | Create a value of DeleteGroup 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:
--
-- DeleteGroup, deleteGroup_group - The name or the ARN of
-- the resource group to delete.
--
-- DeleteGroup, deleteGroup_groupName - Deprecated - don't
-- use this parameter. Use Group instead.
newDeleteGroup :: DeleteGroup
-- | See: newDeleteGroupResponse smart constructor.
data DeleteGroupResponse
DeleteGroupResponse' :: Maybe Group -> Int -> DeleteGroupResponse
-- | Create a value of DeleteGroupResponse 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:
--
-- DeleteGroup, deleteGroupResponse_group - A full
-- description of the deleted resource group.
--
-- $sel:httpStatus:DeleteGroupResponse',
-- deleteGroupResponse_httpStatus - The response's http status
-- code.
newDeleteGroupResponse :: Int -> DeleteGroupResponse
-- | See: newGetGroup smart constructor.
data GetGroup
GetGroup' :: Maybe Text -> Maybe Text -> GetGroup
-- | Create a value of GetGroup 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:
--
-- GetGroup, getGroup_group - The name or the ARN of the
-- resource group to retrieve.
--
-- GetGroup, getGroup_groupName - Deprecated - don't use
-- this parameter. Use Group instead.
newGetGroup :: GetGroup
-- | See: newGetGroupResponse smart constructor.
data GetGroupResponse
GetGroupResponse' :: Maybe Group -> Int -> GetGroupResponse
-- | Create a value of GetGroupResponse 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:
--
-- GetGroup, getGroupResponse_group - A full description of
-- the resource group.
--
-- $sel:httpStatus:GetGroupResponse',
-- getGroupResponse_httpStatus - The response's http status code.
newGetGroupResponse :: Int -> GetGroupResponse
-- | See: newGetGroupConfiguration smart constructor.
data GetGroupConfiguration
GetGroupConfiguration' :: Maybe Text -> GetGroupConfiguration
-- | Create a value of GetGroupConfiguration 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:group':GetGroupConfiguration',
-- getGroupConfiguration_group - The name or the ARN of the
-- resource group.
newGetGroupConfiguration :: GetGroupConfiguration
-- | See: newGetGroupConfigurationResponse smart constructor.
data GetGroupConfigurationResponse
GetGroupConfigurationResponse' :: Maybe GroupConfiguration -> Int -> GetGroupConfigurationResponse
-- | Create a value of GetGroupConfigurationResponse 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:groupConfiguration:GetGroupConfigurationResponse',
-- getGroupConfigurationResponse_groupConfiguration - The service
-- configuration associated with the specified group. For details about
-- the service configuration syntax, see Service configurations for
-- resource groups.
--
-- $sel:httpStatus:GetGroupConfigurationResponse',
-- getGroupConfigurationResponse_httpStatus - The response's http
-- status code.
newGetGroupConfigurationResponse :: Int -> GetGroupConfigurationResponse
-- | See: newGetGroupQuery smart constructor.
data GetGroupQuery
GetGroupQuery' :: Maybe Text -> Maybe Text -> GetGroupQuery
-- | Create a value of GetGroupQuery 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:group':GetGroupQuery', getGroupQuery_group - The
-- name or the ARN of the resource group to query.
--
-- GetGroupQuery, getGroupQuery_groupName - Don't use this
-- parameter. Use Group instead.
newGetGroupQuery :: GetGroupQuery
-- | See: newGetGroupQueryResponse smart constructor.
data GetGroupQueryResponse
GetGroupQueryResponse' :: Maybe GroupQuery -> Int -> GetGroupQueryResponse
-- | Create a value of GetGroupQueryResponse 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:groupQuery:GetGroupQueryResponse',
-- getGroupQueryResponse_groupQuery - The resource query
-- associated with the specified group. For more information about
-- resource queries, see Create a tag-based group in Resource
-- Groups.
--
-- $sel:httpStatus:GetGroupQueryResponse',
-- getGroupQueryResponse_httpStatus - The response's http status
-- code.
newGetGroupQueryResponse :: Int -> GetGroupQueryResponse
-- | See: newGetTags smart constructor.
data GetTags
GetTags' :: Text -> GetTags
-- | Create a value of GetTags 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:
--
-- GetTags, getTags_arn - The ARN of the resource group
-- whose tags you want to retrieve.
newGetTags :: Text -> GetTags
-- | See: newGetTagsResponse smart constructor.
data GetTagsResponse
GetTagsResponse' :: Maybe Text -> Maybe (HashMap Text Text) -> Int -> GetTagsResponse
-- | Create a value of GetTagsResponse 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:
--
-- GetTags, getTagsResponse_arn - The ARN of the tagged
-- resource group.
--
-- $sel:tags:GetTagsResponse', getTagsResponse_tags - The
-- tags associated with the specified resource group.
--
-- $sel:httpStatus:GetTagsResponse',
-- getTagsResponse_httpStatus - The response's http status code.
newGetTagsResponse :: Int -> GetTagsResponse
-- | See: newGroupResources smart constructor.
data GroupResources
GroupResources' :: Text -> NonEmpty Text -> GroupResources
-- | Create a value of GroupResources 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:group':GroupResources', groupResources_group - The
-- name or the ARN of the resource group to add resources to.
--
-- $sel:resourceArns:GroupResources',
-- groupResources_resourceArns - The list of ARNs for resources to
-- be added to the group.
newGroupResources :: Text -> NonEmpty Text -> GroupResources
-- | See: newGroupResourcesResponse smart constructor.
data GroupResourcesResponse
GroupResourcesResponse' :: Maybe [FailedResource] -> Maybe [PendingResource] -> Maybe (NonEmpty Text) -> Int -> GroupResourcesResponse
-- | Create a value of GroupResourcesResponse 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:failed:GroupResourcesResponse',
-- groupResourcesResponse_failed - A list of ARNs of any resources
-- that failed to be added to the group by this operation.
--
-- $sel:pending:GroupResourcesResponse',
-- groupResourcesResponse_pending - A list of ARNs of any
-- resources that are still in the process of being added to the group by
-- this operation. These pending additions continue asynchronously. You
-- can check the status of pending additions by using the
-- ListGroupResources operation, and checking the
-- Resources array in the response and the Status field
-- of each object in that array.
--
-- $sel:succeeded:GroupResourcesResponse',
-- groupResourcesResponse_succeeded - A list of ARNs of resources
-- that were successfully added to the group by this operation.
--
-- $sel:httpStatus:GroupResourcesResponse',
-- groupResourcesResponse_httpStatus - The response's http status
-- code.
newGroupResourcesResponse :: Int -> GroupResourcesResponse
-- | See: newListGroupResources smart constructor.
data ListGroupResources
ListGroupResources' :: Maybe [ResourceFilter] -> Maybe Text -> Maybe Text -> Maybe Natural -> Maybe Text -> ListGroupResources
-- | Create a value of ListGroupResources 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:filters:ListGroupResources',
-- listGroupResources_filters - Filters, formatted as
-- ResourceFilter objects, that you want to apply to a
-- ListGroupResources operation. Filters the results to include
-- only those of the specified resource types.
--
--
-- - resource-type - Filter resources by their type. Specify
-- up to five resource types in the format
-- AWS::ServiceCode::ResourceType. For example,
-- AWS::EC2::Instance, or AWS::S3::Bucket.
--
--
-- When you specify a resource-type filter for
-- ListGroupResources, AWS Resource Groups validates your filter
-- resource types against the types that are defined in the query
-- associated with the group. For example, if a group contains only S3
-- buckets because its query specifies only that resource type, but your
-- resource-type filter includes EC2 instances, AWS Resource
-- Groups does not filter for EC2 instances. In this case, a
-- ListGroupResources request returns a
-- BadRequestException error with a message similar to the
-- following:
--
--
-- The resource types specified as filters in the request are not valid.
--
--
-- The error includes a list of resource types that failed the validation
-- because they are not part of the query associated with the group. This
-- validation doesn't occur when the group query specifies
-- AWS::AllSupported, because a group based on such a query can
-- contain any of the allowed resource types for the query type
-- (tag-based or AWS CloudFormation stack-based queries).
--
-- $sel:group':ListGroupResources',
-- listGroupResources_group - The name or the ARN of the resource
-- group
--
-- ListGroupResources, listGroupResources_groupName -
-- /__Deprecated - don't use this parameter. Use the Group
-- request field instead.__/
--
-- $sel:maxResults:ListGroupResources',
-- listGroupResources_maxResults - The total number of results
-- that you want included on each page of the response. If you do not
-- include this parameter, it defaults to a value that is specific to the
-- operation. If additional items exist beyond the maximum you specify,
-- the NextToken response element is present and has a value (is
-- not null). Include that value as the NextToken request
-- parameter in the next call to the operation to get the next part of
-- the results. Note that the service might return fewer results than the
-- maximum even when there are more results available. You should check
-- NextToken after every operation to ensure that you receive
-- all of the results.
--
-- ListGroupResources, listGroupResources_nextToken - The
-- parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
newListGroupResources :: ListGroupResources
-- | See: newListGroupResourcesResponse smart constructor.
data ListGroupResourcesResponse
ListGroupResourcesResponse' :: Maybe Text -> Maybe [QueryError] -> Maybe [ResourceIdentifier] -> Maybe [ListGroupResourcesItem] -> Int -> ListGroupResourcesResponse
-- | Create a value of ListGroupResourcesResponse 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:
--
-- ListGroupResources, listGroupResourcesResponse_nextToken
-- - If present, indicates that more output is available than is included
-- in the current response. Use this value in the NextToken
-- request parameter in a subsequent call to the operation to get the
-- next part of the output. You should repeat this until the
-- NextToken response element comes back as null.
--
-- $sel:queryErrors:ListGroupResourcesResponse',
-- listGroupResourcesResponse_queryErrors - A list of
-- QueryError objects. Each error is an object that contains
-- ErrorCode and Message structures. Possible values
-- for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:resourceIdentifiers:ListGroupResourcesResponse',
-- listGroupResourcesResponse_resourceIdentifiers - __/Deprecated
-- - don't use this parameter. Use the Resources response field
-- instead./__
--
-- $sel:resources:ListGroupResourcesResponse',
-- listGroupResourcesResponse_resources - An array of resources
-- from which you can determine each resource's identity, type, and group
-- membership status.
--
-- $sel:httpStatus:ListGroupResourcesResponse',
-- listGroupResourcesResponse_httpStatus - The response's http
-- status code.
newListGroupResourcesResponse :: Int -> ListGroupResourcesResponse
-- | See: newListGroups smart constructor.
data ListGroups
ListGroups' :: Maybe [GroupFilter] -> Maybe Natural -> Maybe Text -> ListGroups
-- | Create a value of ListGroups 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:filters:ListGroups', listGroups_filters - Filters,
-- formatted as GroupFilter objects, that you want to apply to a
-- ListGroups operation.
--
--
-- - resource-type - Filter the results to include only those
-- of the specified resource types. Specify up to five resource types in
-- the format
-- AWS::ServiceCode::ResourceType
-- . For example, AWS::EC2::Instance, or
-- AWS::S3::Bucket.
-- - configuration-type - Filter the results to include only
-- those groups that have the specified configuration types attached. The
-- current supported values
-- are:
--
--
-- $sel:maxResults:ListGroups', listGroups_maxResults - The
-- total number of results that you want included on each page of the
-- response. If you do not include this parameter, it defaults to a value
-- that is specific to the operation. If additional items exist beyond
-- the maximum you specify, the NextToken response element is
-- present and has a value (is not null). Include that value as the
-- NextToken request parameter in the next call to the operation
-- to get the next part of the results. Note that the service might
-- return fewer results than the maximum even when there are more results
-- available. You should check NextToken after every operation
-- to ensure that you receive all of the results.
--
-- ListGroups, listGroups_nextToken - The parameter for
-- receiving additional results if you receive a NextToken
-- response in a previous request. A NextToken response
-- indicates that more output is available. Set this parameter to the
-- value provided by a previous call's NextToken response to
-- indicate where the output should continue from.
newListGroups :: ListGroups
-- | See: newListGroupsResponse smart constructor.
data ListGroupsResponse
ListGroupsResponse' :: Maybe [GroupIdentifier] -> Maybe [Group] -> Maybe Text -> Int -> ListGroupsResponse
-- | Create a value of ListGroupsResponse 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:groupIdentifiers:ListGroupsResponse',
-- listGroupsResponse_groupIdentifiers - A list of GroupIdentifier
-- objects. Each identifier is an object that contains both the
-- Name and the GroupArn.
--
-- $sel:groups:ListGroupsResponse',
-- listGroupsResponse_groups - /__Deprecated - don't use this
-- field. Use the GroupIdentifiers response field instead.__/
--
-- ListGroups, listGroupsResponse_nextToken - If present,
-- indicates that more output is available than is included in the
-- current response. Use this value in the NextToken request
-- parameter in a subsequent call to the operation to get the next part
-- of the output. You should repeat this until the NextToken
-- response element comes back as null.
--
-- $sel:httpStatus:ListGroupsResponse',
-- listGroupsResponse_httpStatus - The response's http status
-- code.
newListGroupsResponse :: Int -> ListGroupsResponse
-- | See: newPutGroupConfiguration smart constructor.
data PutGroupConfiguration
PutGroupConfiguration' :: Maybe [GroupConfigurationItem] -> Maybe Text -> PutGroupConfiguration
-- | Create a value of PutGroupConfiguration 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:
--
-- PutGroupConfiguration,
-- putGroupConfiguration_configuration - The new configuration to
-- associate with the specified group. A configuration associates the
-- resource group with an AWS service and specifies how the service can
-- interact with the resources in the group. A configuration is an array
-- of GroupConfigurationItem elements.
--
-- For information about the syntax of a service configuration, see
-- Service configurations for resource groups.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
--
-- $sel:group':PutGroupConfiguration',
-- putGroupConfiguration_group - The name or ARN of the resource
-- group with the configuration that you want to update.
newPutGroupConfiguration :: PutGroupConfiguration
-- | See: newPutGroupConfigurationResponse smart constructor.
data PutGroupConfigurationResponse
PutGroupConfigurationResponse' :: Int -> PutGroupConfigurationResponse
-- | Create a value of PutGroupConfigurationResponse 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:httpStatus:PutGroupConfigurationResponse',
-- putGroupConfigurationResponse_httpStatus - The response's http
-- status code.
newPutGroupConfigurationResponse :: Int -> PutGroupConfigurationResponse
-- | See: newSearchResources smart constructor.
data SearchResources
SearchResources' :: Maybe Natural -> Maybe Text -> ResourceQuery -> SearchResources
-- | Create a value of SearchResources 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:maxResults:SearchResources',
-- searchResources_maxResults - The total number of results that
-- you want included on each page of the response. If you do not include
-- this parameter, it defaults to a value that is specific to the
-- operation. If additional items exist beyond the maximum you specify,
-- the NextToken response element is present and has a value (is
-- not null). Include that value as the NextToken request
-- parameter in the next call to the operation to get the next part of
-- the results. Note that the service might return fewer results than the
-- maximum even when there are more results available. You should check
-- NextToken after every operation to ensure that you receive
-- all of the results.
--
-- SearchResources, searchResources_nextToken - The
-- parameter for receiving additional results if you receive a
-- NextToken response in a previous request. A
-- NextToken response indicates that more output is available.
-- Set this parameter to the value provided by a previous call's
-- NextToken response to indicate where the output should
-- continue from.
--
-- SearchResources, searchResources_resourceQuery - The
-- search query, using the same formats that are supported for resource
-- group definition. For more information, see CreateGroup.
newSearchResources :: ResourceQuery -> SearchResources
-- | See: newSearchResourcesResponse smart constructor.
data SearchResourcesResponse
SearchResourcesResponse' :: Maybe Text -> Maybe [QueryError] -> Maybe [ResourceIdentifier] -> Int -> SearchResourcesResponse
-- | Create a value of SearchResourcesResponse 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:
--
-- SearchResources, searchResourcesResponse_nextToken - If
-- present, indicates that more output is available than is included in
-- the current response. Use this value in the NextToken request
-- parameter in a subsequent call to the operation to get the next part
-- of the output. You should repeat this until the NextToken
-- response element comes back as null.
--
-- $sel:queryErrors:SearchResourcesResponse',
-- searchResourcesResponse_queryErrors - A list of
-- QueryError objects. Each error is an object that contains
-- ErrorCode and Message structures. Possible values
-- for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:resourceIdentifiers:SearchResourcesResponse',
-- searchResourcesResponse_resourceIdentifiers - The ARNs and
-- resource types of resources that are members of the group that you
-- specified.
--
-- $sel:httpStatus:SearchResourcesResponse',
-- searchResourcesResponse_httpStatus - The response's http status
-- code.
newSearchResourcesResponse :: Int -> SearchResourcesResponse
-- | See: newTag smart constructor.
data Tag
Tag' :: Text -> HashMap Text Text -> Tag
-- | 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:
--
-- Tag, tag_arn - The ARN of the resource group to which to
-- add tags.
--
-- Tag, tag_tags - The tags to add to the specified
-- resource group. A tag is a string-to-string map of key-value pairs.
newTag :: Text -> Tag
-- | See: newTagResponse smart constructor.
data TagResponse
TagResponse' :: Maybe Text -> Maybe (HashMap Text Text) -> Int -> TagResponse
-- | Create a value of TagResponse 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:
--
-- Tag, tagResponse_arn - The ARN of the tagged resource.
--
-- Tag, tagResponse_tags - The tags that have been added to
-- the specified resource group.
--
-- $sel:httpStatus:TagResponse', tagResponse_httpStatus -
-- The response's http status code.
newTagResponse :: Int -> TagResponse
-- | See: newUngroupResources smart constructor.
data UngroupResources
UngroupResources' :: Text -> NonEmpty Text -> UngroupResources
-- | Create a value of UngroupResources 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:group':UngroupResources', ungroupResources_group -
-- The name or the ARN of the resource group from which to remove the
-- resources.
--
-- $sel:resourceArns:UngroupResources',
-- ungroupResources_resourceArns - The ARNs of the resources to be
-- removed from the group.
newUngroupResources :: Text -> NonEmpty Text -> UngroupResources
-- | See: newUngroupResourcesResponse smart constructor.
data UngroupResourcesResponse
UngroupResourcesResponse' :: Maybe [FailedResource] -> Maybe [PendingResource] -> Maybe (NonEmpty Text) -> Int -> UngroupResourcesResponse
-- | Create a value of UngroupResourcesResponse 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:failed:UngroupResourcesResponse',
-- ungroupResourcesResponse_failed - A list of any resources that
-- failed to be removed from the group by this operation.
--
-- $sel:pending:UngroupResourcesResponse',
-- ungroupResourcesResponse_pending - A list of any resources that
-- are still in the process of being removed from the group by this
-- operation. These pending removals continue asynchronously. You can
-- check the status of pending removals by using the
-- ListGroupResources operation. After the
-- resource is successfully removed, it no longer appears in the
-- response.
--
-- $sel:succeeded:UngroupResourcesResponse',
-- ungroupResourcesResponse_succeeded - A list of resources that
-- were successfully removed from the group by this operation.
--
-- $sel:httpStatus:UngroupResourcesResponse',
-- ungroupResourcesResponse_httpStatus - The response's http
-- status code.
newUngroupResourcesResponse :: Int -> UngroupResourcesResponse
-- | See: newUntag smart constructor.
data Untag
Untag' :: Text -> [Text] -> Untag
-- | Create a value of Untag 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:
--
-- Untag, untag_arn - The ARN of the resource group from
-- which to remove tags. The command removed both the specified keys and
-- any values associated with those keys.
--
-- Untag, untag_keys - The keys of the tags to be removed.
newUntag :: Text -> Untag
-- | See: newUntagResponse smart constructor.
data UntagResponse
UntagResponse' :: Maybe Text -> Maybe [Text] -> Int -> UntagResponse
-- | Create a value of UntagResponse 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:
--
-- Untag, untagResponse_arn - The ARN of the resource group
-- from which tags have been removed.
--
-- Untag, untagResponse_keys - The keys of the tags that
-- were removed.
--
-- $sel:httpStatus:UntagResponse', untagResponse_httpStatus
-- - The response's http status code.
newUntagResponse :: Int -> UntagResponse
-- | See: newUpdateGroup smart constructor.
data UpdateGroup
UpdateGroup' :: Maybe Text -> Maybe Text -> Maybe Text -> UpdateGroup
-- | Create a value of UpdateGroup 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:
--
-- UpdateGroup, updateGroup_description - The new
-- description that you want to update the resource group with.
-- Descriptions can contain letters, numbers, hyphens, underscores,
-- periods, and spaces.
--
-- UpdateGroup, updateGroup_group - The name or the ARN of
-- the resource group to modify.
--
-- UpdateGroup, updateGroup_groupName - Don't use this
-- parameter. Use Group instead.
newUpdateGroup :: UpdateGroup
-- | See: newUpdateGroupResponse smart constructor.
data UpdateGroupResponse
UpdateGroupResponse' :: Maybe Group -> Int -> UpdateGroupResponse
-- | Create a value of UpdateGroupResponse 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:
--
-- UpdateGroup, updateGroupResponse_group - The update
-- description of the resource group.
--
-- $sel:httpStatus:UpdateGroupResponse',
-- updateGroupResponse_httpStatus - The response's http status
-- code.
newUpdateGroupResponse :: Int -> UpdateGroupResponse
-- | See: newUpdateGroupQuery smart constructor.
data UpdateGroupQuery
UpdateGroupQuery' :: Maybe Text -> Maybe Text -> ResourceQuery -> UpdateGroupQuery
-- | Create a value of UpdateGroupQuery 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:group':UpdateGroupQuery', updateGroupQuery_group -
-- The name or the ARN of the resource group to query.
--
-- UpdateGroupQuery, updateGroupQuery_groupName - Don't use
-- this parameter. Use Group instead.
--
-- UpdateGroupQuery, updateGroupQuery_resourceQuery - The
-- resource query to determine which AWS resources are members of this
-- resource group.
--
-- A resource group can contain either a Configuration or a
-- ResourceQuery, but not both.
newUpdateGroupQuery :: ResourceQuery -> UpdateGroupQuery
-- | See: newUpdateGroupQueryResponse smart constructor.
data UpdateGroupQueryResponse
UpdateGroupQueryResponse' :: Maybe GroupQuery -> Int -> UpdateGroupQueryResponse
-- | Create a value of UpdateGroupQueryResponse 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:groupQuery:UpdateGroupQueryResponse',
-- updateGroupQueryResponse_groupQuery - The updated resource
-- query associated with the resource group after the update.
--
-- $sel:httpStatus:UpdateGroupQueryResponse',
-- updateGroupQueryResponse_httpStatus - The response's http
-- status code.
newUpdateGroupQueryResponse :: Int -> UpdateGroupQueryResponse
newtype GroupConfigurationStatus
GroupConfigurationStatus' :: Text -> GroupConfigurationStatus
[fromGroupConfigurationStatus] :: GroupConfigurationStatus -> Text
pattern GroupConfigurationStatus_UPDATE_COMPLETE :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATE_FAILED :: GroupConfigurationStatus
pattern GroupConfigurationStatus_UPDATING :: GroupConfigurationStatus
newtype GroupFilterName
GroupFilterName' :: Text -> GroupFilterName
[fromGroupFilterName] :: GroupFilterName -> Text
pattern GroupFilterName_Configuration_type :: GroupFilterName
pattern GroupFilterName_Resource_type :: GroupFilterName
newtype QueryErrorCode
QueryErrorCode' :: Text -> QueryErrorCode
[fromQueryErrorCode] :: QueryErrorCode -> Text
pattern QueryErrorCode_CLOUDFORMATION_STACK_INACTIVE :: QueryErrorCode
pattern QueryErrorCode_CLOUDFORMATION_STACK_NOT_EXISTING :: QueryErrorCode
newtype QueryType
QueryType' :: Text -> QueryType
[fromQueryType] :: QueryType -> Text
pattern QueryType_CLOUDFORMATION_STACK_1_0 :: QueryType
pattern QueryType_TAG_FILTERS_1_0 :: QueryType
newtype ResourceFilterName
ResourceFilterName' :: Text -> ResourceFilterName
[fromResourceFilterName] :: ResourceFilterName -> Text
pattern ResourceFilterName_Resource_type :: ResourceFilterName
newtype ResourceStatusValue
ResourceStatusValue' :: Text -> ResourceStatusValue
[fromResourceStatusValue] :: ResourceStatusValue -> Text
pattern ResourceStatusValue_PENDING :: ResourceStatusValue
-- | A resource that failed to be added to or removed from a group.
--
-- See: newFailedResource smart constructor.
data FailedResource
FailedResource' :: Maybe Text -> Maybe Text -> Maybe Text -> FailedResource
-- | Create a value of FailedResource 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:FailedResource', failedResource_errorCode
-- - The error code associated with the failure.
--
-- $sel:errorMessage:FailedResource',
-- failedResource_errorMessage - The error message text associated
-- with the failure.
--
-- $sel:resourceArn:FailedResource',
-- failedResource_resourceArn - The ARN of the resource that
-- failed to be added or removed.
newFailedResource :: FailedResource
-- | A resource group that contains AWS resources. You can assign resources
-- to the group by associating either of the following elements with the
-- group:
--
--
-- - ResourceQuery - Use a resource query to specify a set of tag keys
-- and values. All resources in the same AWS Region and AWS account that
-- have those keys with the same values are included in the group. You
-- can add a resource query when you create the group, or later by using
-- the PutGroupConfiguration operation.
-- - GroupConfiguration - Use a service configuration to associate the
-- group with an AWS service. The configuration specifies which resource
-- types can be included in the group.
--
--
-- See: newGroup smart constructor.
data Group
Group' :: Maybe Text -> Text -> Text -> Group
-- | Create a value of Group 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:description:Group', group_description - The
-- description of the resource group.
--
-- $sel:groupArn:Group', group_groupArn - The ARN of the
-- resource group.
--
-- $sel:name:Group', group_name - The name of the resource
-- group.
newGroup :: Text -> Text -> Group
-- | A service configuration associated with a resource group. The
-- configuration options are determined by the AWS service that defines
-- the Type, and specifies which resources can be included in
-- the group. You can add a service configuration when you create the
-- group by using CreateGroup, or later by using the
-- PutGroupConfiguration operation. For details about group service
-- configuration syntax, see Service configurations for resource
-- groups.
--
-- See: newGroupConfiguration smart constructor.
data GroupConfiguration
GroupConfiguration' :: Maybe [GroupConfigurationItem] -> Maybe Text -> Maybe [GroupConfigurationItem] -> Maybe GroupConfigurationStatus -> GroupConfiguration
-- | Create a value of GroupConfiguration 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:configuration:GroupConfiguration',
-- groupConfiguration_configuration - The configuration currently
-- associated with the group and in effect.
--
-- $sel:failureReason:GroupConfiguration',
-- groupConfiguration_failureReason - If present, the reason why a
-- request to update the group configuration failed.
--
-- $sel:proposedConfiguration:GroupConfiguration',
-- groupConfiguration_proposedConfiguration - If present, the new
-- configuration that is in the process of being applied to the group.
--
-- $sel:status:GroupConfiguration',
-- groupConfiguration_status - The current status of an attempt to
-- update the group configuration.
newGroupConfiguration :: GroupConfiguration
-- | An item in a group configuration. A group service configuration can
-- have one or more items. For details about group service configuration
-- syntax, see Service configurations for resource groups.
--
-- See: newGroupConfigurationItem smart constructor.
data GroupConfigurationItem
GroupConfigurationItem' :: Maybe [GroupConfigurationParameter] -> Text -> GroupConfigurationItem
-- | Create a value of GroupConfigurationItem 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:parameters:GroupConfigurationItem',
-- groupConfigurationItem_parameters - A collection of parameters
-- for this group configuration item. For the list of parameters that you
-- can use with each configuration item type, see Supported resource
-- types and parameters.
--
-- $sel:type':GroupConfigurationItem',
-- groupConfigurationItem_type - Specifies the type of group
-- configuration item. Each item must have a unique value for
-- type. For the list of types that you can specify for a
-- configuration item, see Supported resource types and
-- parameters.
newGroupConfigurationItem :: Text -> GroupConfigurationItem
-- | A parameter for a group configuration item. For details about group
-- service configuration syntax, see Service configurations for
-- resource groups.
--
-- See: newGroupConfigurationParameter smart constructor.
data GroupConfigurationParameter
GroupConfigurationParameter' :: Maybe [Text] -> Text -> GroupConfigurationParameter
-- | Create a value of GroupConfigurationParameter 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:values:GroupConfigurationParameter',
-- groupConfigurationParameter_values - The value or values to be
-- used for the specified parameter. For the list of values you can use
-- with each parameter, see Supported resource types and
-- parameters.
--
-- $sel:name:GroupConfigurationParameter',
-- groupConfigurationParameter_name - The name of the group
-- configuration parameter. For the list of parameters that you can use
-- with each configuration item type, see Supported resource types and
-- parameters.
newGroupConfigurationParameter :: Text -> GroupConfigurationParameter
-- | A filter collection that you can use to restrict the results from a
-- List operation to only those you want to include.
--
-- See: newGroupFilter smart constructor.
data GroupFilter
GroupFilter' :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | Create a value of GroupFilter 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:name:GroupFilter', groupFilter_name - The name of
-- the filter. Filter names are case-sensitive.
--
-- $sel:values:GroupFilter', groupFilter_values - One or
-- more filter values. Allowed filter values vary by group filter name,
-- and are case-sensitive.
newGroupFilter :: GroupFilterName -> NonEmpty Text -> GroupFilter
-- | The unique identifiers for a resource group.
--
-- See: newGroupIdentifier smart constructor.
data GroupIdentifier
GroupIdentifier' :: Maybe Text -> Maybe Text -> GroupIdentifier
-- | Create a value of GroupIdentifier 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:groupArn:GroupIdentifier', groupIdentifier_groupArn
-- - The ARN of the resource group.
--
-- $sel:groupName:GroupIdentifier',
-- groupIdentifier_groupName - The name of the resource group.
newGroupIdentifier :: GroupIdentifier
-- | A mapping of a query attached to a resource group that determines the
-- AWS resources that are members of the group.
--
-- See: newGroupQuery smart constructor.
data GroupQuery
GroupQuery' :: Text -> ResourceQuery -> GroupQuery
-- | Create a value of GroupQuery 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:groupName:GroupQuery', groupQuery_groupName - The
-- name of the resource group that is associated with the specified
-- resource query.
--
-- $sel:resourceQuery:GroupQuery', groupQuery_resourceQuery
-- - The resource query that determines which AWS resources are members
-- of the associated resource group.
newGroupQuery :: Text -> ResourceQuery -> GroupQuery
-- | A structure returned by the ListGroupResources operation that contains
-- identity and group membership status information for one of the
-- resources in the group.
--
-- See: newListGroupResourcesItem smart constructor.
data ListGroupResourcesItem
ListGroupResourcesItem' :: Maybe ResourceIdentifier -> Maybe ResourceStatus -> ListGroupResourcesItem
-- | Create a value of ListGroupResourcesItem 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:identifier:ListGroupResourcesItem',
-- listGroupResourcesItem_identifier - Undocumented member.
--
-- $sel:status:ListGroupResourcesItem',
-- listGroupResourcesItem_status - A structure that contains the
-- status of this resource's membership in the group.
--
-- This field is present in the response only if the group is of type
-- AWS::EC2::HostManagement.
newListGroupResourcesItem :: ListGroupResourcesItem
-- | A structure that identifies a resource that is currently pending
-- addition to the group as a member. Adding a resource to a resource
-- group happens asynchronously as a background task and this one isn't
-- completed yet.
--
-- See: newPendingResource smart constructor.
data PendingResource
PendingResource' :: Maybe Text -> PendingResource
-- | Create a value of PendingResource 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:resourceArn:PendingResource',
-- pendingResource_resourceArn - The Amazon resource name (ARN) of
-- the resource that's in a pending state.
newPendingResource :: PendingResource
-- | A two-part error structure that can occur in
-- ListGroupResources or SearchResources operations on
-- CloudFormation stack-based queries. The error occurs if the
-- CloudFormation stack on which the query is based either does not
-- exist, or has a status that renders the stack inactive. A
-- QueryError occurrence does not necessarily mean that AWS
-- Resource Groups could not complete the operation, but the resulting
-- group might have no member resources.
--
-- See: newQueryError smart constructor.
data QueryError
QueryError' :: Maybe QueryErrorCode -> Maybe Text -> QueryError
-- | Create a value of QueryError 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:QueryError', queryError_errorCode -
-- Possible values are CLOUDFORMATION_STACK_INACTIVE and
-- CLOUDFORMATION_STACK_NOT_EXISTING.
--
-- $sel:message:QueryError', queryError_message - A message
-- that explains the ErrorCode value. Messages might state that
-- the specified CloudFormation stack does not exist (or no longer
-- exists). For CLOUDFORMATION_STACK_INACTIVE, the message
-- typically states that the CloudFormation stack has a status that is
-- not (or no longer) active, such as CREATE_FAILED.
newQueryError :: QueryError
-- | A filter name and value pair that is used to obtain more specific
-- results from a list of resources.
--
-- See: newResourceFilter smart constructor.
data ResourceFilter
ResourceFilter' :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | Create a value of ResourceFilter 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:name:ResourceFilter', resourceFilter_name - The
-- name of the filter. Filter names are case-sensitive.
--
-- $sel:values:ResourceFilter', resourceFilter_values - One
-- or more filter values. Allowed filter values vary by resource filter
-- name, and are case-sensitive.
newResourceFilter :: ResourceFilterName -> NonEmpty Text -> ResourceFilter
-- | A structure that contains the ARN of a resource and its resource type.
--
-- See: newResourceIdentifier smart constructor.
data ResourceIdentifier
ResourceIdentifier' :: Maybe Text -> Maybe Text -> ResourceIdentifier
-- | Create a value of ResourceIdentifier 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:resourceArn:ResourceIdentifier',
-- resourceIdentifier_resourceArn - The ARN of a resource.
--
-- $sel:resourceType:ResourceIdentifier',
-- resourceIdentifier_resourceType - The resource type of a
-- resource, such as AWS::EC2::Instance.
newResourceIdentifier :: ResourceIdentifier
-- | The query that is used to define a resource group or a search for
-- resources. A query specifies both a query type and a query string as a
-- JSON object. See the examples section for example JSON strings.
--
-- The examples that follow are shown as standard JSON strings. If you
-- include such a string as a parameter to the AWS CLI or an SDK API, you
-- might need to 'escape' the string into a single line. For example, see
-- the Quoting strings in the AWS CLI User Guide.
--
-- Example 1
--
-- The following generic example shows a resource query JSON string that
-- includes only resources that meet the following criteria:
--
--
-- - The resource type must be either resource_type1 or
-- resource_type2.
-- - The resource must have a tag Key1 with a value of either
-- ValueA or ValueB.
-- - The resource must have a tag Key2 with a value of either
-- ValueC or ValueD.
--
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key": "Key1", "Values": ["ValueA","ValueB"] }, { "Key":"Key2", "Values":["ValueC","ValueD"] } ] } }
--
--
-- This has the equivalent "shortcut" syntax of the following:
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key1": ["ValueA","ValueB"] }, { "Key2": ["ValueC","ValueD"] } ] } }
--
--
-- Example 2
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances that are tagged Stage with a value
-- of Test.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": "{ "ResourceTypeFilters": "AWS::EC2::Instance", "TagFilters": { "Stage": "Test" } } }
--
--
-- Example 3
--
-- The following example shows a resource query JSON string that includes
-- resource of any supported type as long as it is tagged Stage
-- with a value of Prod.
--
--
-- { "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": "AWS::AllSupported", "TagFilters": { "Stage": "Prod" } } }
--
--
-- Example 4
--
-- The following example shows a resource query JSON string that includes
-- only Amazon EC2 instances and Amazon S3 buckets that are part of the
-- specified AWS CloudFormation stack.
--
--
-- { "Type": "CLOUDFORMATION_STACK_1_0", "Query": { "ResourceTypeFilters": [ "AWS::EC2::Instance", "AWS::S3::Bucket" ], "StackIdentifier": "arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE" } }
--
--
-- See: newResourceQuery smart constructor.
data ResourceQuery
ResourceQuery' :: QueryType -> Text -> ResourceQuery
-- | Create a value of ResourceQuery 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:type':ResourceQuery', resourceQuery_type - The type
-- of the query. You can use the following values:
--
--
--
-- $sel:query:ResourceQuery', resourceQuery_searchQuery -
-- The query that defines a group or a search.
newResourceQuery :: QueryType -> Text -> ResourceQuery
-- | A structure that identifies the current group membership status for a
-- resource. Adding a resource to a resource group is performed
-- asynchronously as a background task. A PENDING status
-- indicates, for this resource, that the process isn't completed yet.
--
-- See: newResourceStatus smart constructor.
data ResourceStatus
ResourceStatus' :: Maybe ResourceStatusValue -> ResourceStatus
-- | Create a value of ResourceStatus 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:name:ResourceStatus', resourceStatus_name - The
-- current status.
newResourceStatus :: ResourceStatus