« blib/lib/Paws/Connect/CreateUser.pm
↑ Summary
blib/lib/Paws/Connect/CreateUserHierarchyGroupResponse.pm »
| 1 | |||
| 2 | package Paws::Connect::CreateUserHierarchyGroup; | ||
| 3 | use Moose; | ||
| 4 | has InstanceId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'InstanceId', required => 1); | ||
| 5 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has ParentGroupId => (is => 'ro', isa => 'Str'); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateUserHierarchyGroup'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/user-hierarchy-groups/{InstanceId}'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Connect::CreateUserHierarchyGroupResponse'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::Connect::CreateUserHierarchyGroup - Arguments for method CreateUserHierarchyGroup on L<Paws::Connect> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method CreateUserHierarchyGroup on the | ||
| 25 | L<Amazon Connect Service|Paws::Connect> service. Use the attributes of this class | ||
| 26 | as arguments to method CreateUserHierarchyGroup. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUserHierarchyGroup. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $connect = Paws->service('Connect'); | ||
| 33 | my $CreateUserHierarchyGroupResponse = $connect->CreateUserHierarchyGroup( | ||
| 34 | InstanceId => 'MyInstanceId', | ||
| 35 | Name => 'MyHierarchyGroupName', | ||
| 36 | ParentGroupId => 'MyHierarchyGroupId', # OPTIONAL | ||
| 37 | ); | ||
| 38 | |||
| 39 | # Results: | ||
| 40 | my $HierarchyGroupArn = | ||
| 41 | $CreateUserHierarchyGroupResponse->HierarchyGroupArn; | ||
| 42 | my $HierarchyGroupId = $CreateUserHierarchyGroupResponse->HierarchyGroupId; | ||
| 43 | |||
| 44 | # Returns a L<Paws::Connect::CreateUserHierarchyGroupResponse> object. | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/connect/CreateUserHierarchyGroup> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 B<REQUIRED> InstanceId => Str | ||
| 53 | |||
| 54 | The identifier of the Amazon Connect instance. You can find the | ||
| 55 | instanceId in the ARN of the instance. | ||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | =head2 B<REQUIRED> Name => Str | ||
| 60 | |||
| 61 | The name of the user hierarchy group. Must not be more than 100 | ||
| 62 | characters. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 ParentGroupId => Str | ||
| 67 | |||
| 68 | The identifier for the parent hierarchy group. The user hierarchy is | ||
| 69 | created at level one if the parent group ID is null. | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head1 SEE ALSO | ||
| 75 | |||
| 76 | This class forms part of L<Paws>, documenting arguments for method CreateUserHierarchyGroup in L<Paws::Connect> | ||
| 77 | |||
| 78 | =head1 BUGS and CONTRIBUTIONS | ||
| 79 | |||
| 80 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 81 | |||
| 82 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 83 | |||
| 84 | =cut | ||
| 85 |