| 1 | |||
| 2 | package Paws::MQ::CreateUser; | ||
| 3 | use Moose; | ||
| 4 | has BrokerId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'broker-id', required => 1); | ||
| 5 | has ConsoleAccess => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'consoleAccess'); | ||
| 6 | has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'groups'); | ||
| 7 | has Password => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'password'); | ||
| 8 | has Username => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'username', required => 1); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateUser'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/brokers/{broker-id}/users/{username}'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MQ::CreateUserResponse'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::MQ::CreateUser - Arguments for method CreateUser on L<Paws::MQ> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateUser on the | ||
| 27 | L<AmazonMQ|Paws::MQ> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateUser. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUser. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $mq = Paws->service('MQ'); | ||
| 35 | my $CreateUserResponse = $mq->CreateUser( | ||
| 36 | BrokerId => 'My__string', | ||
| 37 | Username => 'My__string', | ||
| 38 | ConsoleAccess => 1, # OPTIONAL | ||
| 39 | Groups => [ 'My__string', ... ], # OPTIONAL | ||
| 40 | Password => 'My__string', # OPTIONAL | ||
| 41 | ); | ||
| 42 | |||
| 43 | 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. | ||
| 44 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mq/CreateUser> | ||
| 45 | |||
| 46 | =head1 ATTRIBUTES | ||
| 47 | |||
| 48 | |||
| 49 | =head2 B<REQUIRED> BrokerId => Str | ||
| 50 | |||
| 51 | The unique ID that Amazon MQ generates for the broker. | ||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | =head2 ConsoleAccess => Bool | ||
| 56 | |||
| 57 | Enables access to the the ActiveMQ Web Console for the ActiveMQ user. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 Groups => ArrayRef[Str|Undef] | ||
| 62 | |||
| 63 | The list of groups (20 maximum) to which the ActiveMQ user belongs. | ||
| 64 | This value can contain only alphanumeric characters, dashes, periods, | ||
| 65 | underscores, and tildes (- . _ ~). This value must be 2-100 characters | ||
| 66 | long. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 Password => Str | ||
| 71 | |||
| 72 | Required. The password of the user. This value must be at least 12 | ||
| 73 | characters long, must contain at least 4 unique characters, and must | ||
| 74 | not contain commas. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> Username => Str | ||
| 79 | |||
| 80 | The username of the ActiveMQ user. This value can contain only | ||
| 81 | alphanumeric characters, dashes, periods, underscores, and tildes (- . | ||
| 82 | _ ~). This value must be 2-100 characters long. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head1 SEE ALSO | ||
| 88 | |||
| 89 | This class forms part of L<Paws>, documenting arguments for method CreateUser in L<Paws::MQ> | ||
| 90 | |||
| 91 | =head1 BUGS and CONTRIBUTIONS | ||
| 92 | |||
| 93 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 94 | |||
| 95 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 96 | |||
| 97 | =cut | ||
| 98 |