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

Amazonka.ResourceGroups.CreateGroup

Description

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:

  • resource-groups:CreateGroup
Synopsis

Creating a Request

data CreateGroup Source #

See: newCreateGroup smart constructor.

Constructors

CreateGroup' 

Fields

  • resourceQuery :: Maybe 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.

  • configuration :: Maybe [GroupConfigurationItem]

    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.

  • description :: Maybe Text

    The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.

  • tags :: Maybe (HashMap Text Text)

    The tags to add to the group. A tag is key-value pair string.

  • name :: 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.

Instances

Instances details
Eq CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Read CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Show CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Generic CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Associated Types

type Rep CreateGroup :: Type -> Type #

NFData CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Methods

rnf :: CreateGroup -> () #

Hashable CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

ToJSON CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

AWSRequest CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Associated Types

type AWSResponse CreateGroup #

ToHeaders CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Methods

toHeaders :: CreateGroup -> [Header] #

ToPath CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

ToQuery CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

type Rep CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

type Rep CreateGroup = D1 ('MetaData "CreateGroup" "Amazonka.ResourceGroups.CreateGroup" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "CreateGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceQuery)) :*: S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupConfigurationItem]))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateGroup Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

newCreateGroup Source #

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:

$sel:resourceQuery: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.

$sel:configuration: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.

$sel:description:CreateGroup', createGroup_description - The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.

$sel:tags:CreateGroup', createGroup_tags - The tags to add to the group. A tag is key-value pair string.

$sel:name: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.

Request Lenses

createGroup_resourceQuery :: Lens' CreateGroup (Maybe ResourceQuery) Source #

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_configuration :: Lens' CreateGroup (Maybe [GroupConfigurationItem]) Source #

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_description :: Lens' CreateGroup (Maybe Text) Source #

The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.

createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text)) Source #

The tags to add to the group. A tag is key-value pair string.

createGroup_name :: Lens' CreateGroup Text Source #

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.

Destructuring the Response

data CreateGroupResponse Source #

See: newCreateGroupResponse smart constructor.

Constructors

CreateGroupResponse' 

Fields

Instances

Instances details
Eq CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Read CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Show CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Generic CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Associated Types

type Rep CreateGroupResponse :: Type -> Type #

NFData CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

Methods

rnf :: CreateGroupResponse -> () #

type Rep CreateGroupResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.CreateGroup

type Rep CreateGroupResponse = D1 ('MetaData "CreateGroupResponse" "Amazonka.ResourceGroups.CreateGroup" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "CreateGroupResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Group)) :*: S1 ('MetaSel ('Just "groupConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GroupConfiguration))) :*: (S1 ('MetaSel ('Just "resourceQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceQuery)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateGroupResponse Source #

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.

$sel:resourceQuery: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.

$sel:tags:CreateGroup', createGroupResponse_tags - The tags associated with the group.

$sel:httpStatus:CreateGroupResponse', createGroupResponse_httpStatus - The response's http status code.

Response Lenses

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

The description of the resource group.

createGroupResponse_groupConfiguration :: Lens' CreateGroupResponse (Maybe GroupConfiguration) Source #

The service configuration associated with the resource group. For details about the syntax of a service configuration, see Service configurations for resource groups.

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

The resource query associated with the group. For more information about resource queries, see Create a tag-based group in Resource Groups.

createGroupResponse_tags :: Lens' CreateGroupResponse (Maybe (HashMap Text Text)) Source #

The tags associated with the group.