Paws::ResourceGroups::CreateGroup - Arguments for method CreateGroup on Paws::ResourceGroups


This class represents the parameters used for calling the method CreateGroup on the AWS Resource Groups service. Use the attributes of this class as arguments to method CreateGroup.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGroup.


    my $resource-groups = Paws->service('ResourceGroups');
    my $CreateGroupOutput = $resource -groups->CreateGroup(
      Name          => 'MyGroupName',
      ResourceQuery => {
        Query => 'MyQuery',          # max: 4096
        Type  => 'TAG_FILTERS_1_0'
        ,    # values: TAG_FILTERS_1_0, CLOUDFORMATION_STACK_1_0min: 1, max: 128

      Description => 'MyGroupDescription',    # OPTIONAL
      Tags        => {
        'MyTagKey' => 'MyTagValue',    # key: min: 1, max: 128, value: max: 256
      },    # OPTIONAL

    # Results:
    my $Group         = $CreateGroupOutput->Group;
    my $ResourceQuery = $CreateGroupOutput->ResourceQuery;
    my $Tags          = $CreateGroupOutput->Tags;

    # Returns a L<Paws::ResourceGroups::CreateGroupOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


Description => Str

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

REQUIRED Name => Str

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 128 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.

REQUIRED ResourceQuery => Paws::ResourceGroups::ResourceQuery

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

Tags => Paws::ResourceGroups::Tags

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 128 characters, and tag values can have a maximum length of 256 characters.


This class forms part of Paws, documenting arguments for method CreateGroup in Paws::ResourceGroups


The source code is located here:

Please report bugs to: