amazonka-resourcegroups-1.6.1: Amazon Resource Groups SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ResourceGroups.CreateGroup

Contents

Description

Creates a group with a specified name, description, and resource query.

Synopsis

Creating a Request

createGroup Source #

Creates a value of CreateGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cgDescription - The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.
  • cgTags - The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.
  • cgName - The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws ; these are reserved. A resource group name must be unique within your account.
  • cgResourceQuery - The resource query that determines which AWS resources are members of this group.

data CreateGroup Source #

See: createGroup smart constructor.

Instances
Eq CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Data CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateGroup -> c CreateGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateGroup #

toConstr :: CreateGroup -> Constr #

dataTypeOf :: CreateGroup -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateGroup) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateGroup) #

gmapT :: (forall b. Data b => b -> b) -> CreateGroup -> CreateGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateGroup -> m CreateGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateGroup -> m CreateGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateGroup -> m CreateGroup #

Read CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Show CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Generic CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Associated Types

type Rep CreateGroup :: Type -> Type #

Hashable CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

ToJSON CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

AWSRequest CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Associated Types

type Rs CreateGroup :: Type #

ToHeaders CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Methods

toHeaders :: CreateGroup -> [Header] #

ToPath CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

ToQuery CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

NFData CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Methods

rnf :: CreateGroup -> () #

type Rep CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

type Rep CreateGroup = D1 (MetaData "CreateGroup" "Network.AWS.ResourceGroups.CreateGroup" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "CreateGroup'" PrefixI True) ((S1 (MetaSel (Just "_cgDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cgTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) :*: (S1 (MetaSel (Just "_cgName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cgResourceQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceQuery))))
type Rs CreateGroup Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Request Lenses

cgDescription :: Lens' CreateGroup (Maybe Text) Source #

The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.

cgTags :: Lens' CreateGroup (HashMap Text Text) Source #

The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

cgName :: Lens' CreateGroup Text Source #

The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws ; these are reserved. A resource group name must be unique within your account.

cgResourceQuery :: Lens' CreateGroup ResourceQuery Source #

The resource query that determines which AWS resources are members of this group.

Destructuring the Response

createGroupResponse Source #

Creates a value of CreateGroupResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateGroupResponse Source #

See: createGroupResponse smart constructor.

Instances
Eq CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Data CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateGroupResponse -> c CreateGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateGroupResponse #

toConstr :: CreateGroupResponse -> Constr #

dataTypeOf :: CreateGroupResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateGroupResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateGroupResponse -> CreateGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateGroupResponse -> m CreateGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateGroupResponse -> m CreateGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateGroupResponse -> m CreateGroupResponse #

Read CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Show CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Generic CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Associated Types

type Rep CreateGroupResponse :: Type -> Type #

NFData CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

Methods

rnf :: CreateGroupResponse -> () #

type Rep CreateGroupResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.CreateGroup

type Rep CreateGroupResponse = D1 (MetaData "CreateGroupResponse" "Network.AWS.ResourceGroups.CreateGroup" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "CreateGroupResponse'" PrefixI True) ((S1 (MetaSel (Just "_cgrsGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Group)) :*: S1 (MetaSel (Just "_cgrsResourceQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResourceQuery))) :*: (S1 (MetaSel (Just "_cgrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_cgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cgrsGroup :: Lens' CreateGroupResponse (Maybe Group) Source #

A full description of the resource group after it is created.

cgrsResourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery) Source #

The resource query associated with the group.

cgrsTags :: Lens' CreateGroupResponse (HashMap Text Text) Source #

The tags associated with the group.

cgrsResponseStatus :: Lens' CreateGroupResponse Int Source #

  • - | The response status code.