| 1 | |||
| 2 | package Paws::SMS::CreateApp; | ||
| 3 | use Moose; | ||
| 4 | has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' ); | ||
| 5 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' ); | ||
| 6 | has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' ); | ||
| 7 | has RoleName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleName' ); | ||
| 8 | has ServerGroups => (is => 'ro', isa => 'ArrayRef[Paws::SMS::ServerGroup]', traits => ['NameInRequest'], request_name => 'serverGroups' ); | ||
| 9 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SMS::Tag]', traits => ['NameInRequest'], request_name => 'tags' ); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApp'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SMS::CreateAppResponse'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::SMS::CreateApp - Arguments for method CreateApp on L<Paws::SMS> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateApp on the | ||
| 27 | L<AWS Server Migration Service|Paws::SMS> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateApp. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApp. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $sms = Paws->service('SMS'); | ||
| 35 | my $CreateAppResponse = $sms->CreateApp( | ||
| 36 | ClientToken => 'MyClientToken', # OPTIONAL | ||
| 37 | Description => 'MyAppDescription', # OPTIONAL | ||
| 38 | Name => 'MyAppName', # OPTIONAL | ||
| 39 | RoleName => 'MyRoleName', # OPTIONAL | ||
| 40 | ServerGroups => [ | ||
| 41 | { | ||
| 42 | Name => 'MyServerGroupName', # OPTIONAL | ||
| 43 | ServerGroupId => 'MyServerGroupId', # OPTIONAL | ||
| 44 | ServerList => [ | ||
| 45 | { | ||
| 46 | ReplicationJobId => 'MyReplicationJobId', # OPTIONAL | ||
| 47 | ReplicationJobTerminated => 1, # OPTIONAL | ||
| 48 | ServerId => 'MyServerId', # OPTIONAL | ||
| 49 | ServerType => | ||
| 50 | 'VIRTUAL_MACHINE', # values: VIRTUAL_MACHINE; OPTIONAL | ||
| 51 | VmServer => { | ||
| 52 | VmManagerName => 'MyVmManagerName', # OPTIONAL | ||
| 53 | VmManagerType => | ||
| 54 | 'VSPHERE', # values: VSPHERE, SCVMM, HYPERV-MANAGER; OPTIONAL | ||
| 55 | VmName => 'MyVmName', # OPTIONAL | ||
| 56 | VmPath => 'MyVmPath', # OPTIONAL | ||
| 57 | VmServerAddress => { | ||
| 58 | VmId => 'MyVmId', # OPTIONAL | ||
| 59 | VmManagerId => 'MyVmManagerId', # OPTIONAL | ||
| 60 | }, # OPTIONAL | ||
| 61 | }, # OPTIONAL | ||
| 62 | }, | ||
| 63 | ... | ||
| 64 | ], # OPTIONAL | ||
| 65 | }, | ||
| 66 | ... | ||
| 67 | ], # OPTIONAL | ||
| 68 | Tags => [ | ||
| 69 | { | ||
| 70 | Key => 'MyTagKey', # OPTIONAL | ||
| 71 | Value => 'MyTagValue', # OPTIONAL | ||
| 72 | }, | ||
| 73 | ... | ||
| 74 | ], # OPTIONAL | ||
| 75 | ); | ||
| 76 | |||
| 77 | # Results: | ||
| 78 | my $AppSummary = $CreateAppResponse->AppSummary; | ||
| 79 | my $ServerGroups = $CreateAppResponse->ServerGroups; | ||
| 80 | my $Tags = $CreateAppResponse->Tags; | ||
| 81 | |||
| 82 | # Returns a L<Paws::SMS::CreateAppResponse> object. | ||
| 83 | |||
| 84 | 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. | ||
| 85 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sms/CreateApp> | ||
| 86 | |||
| 87 | =head1 ATTRIBUTES | ||
| 88 | |||
| 89 | |||
| 90 | =head2 ClientToken => Str | ||
| 91 | |||
| 92 | A unique, case-sensitive identifier that you provide to ensure the | ||
| 93 | idempotency of application creation. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 Description => Str | ||
| 98 | |||
| 99 | The description of the new application | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 Name => Str | ||
| 104 | |||
| 105 | The name of the new application. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =head2 RoleName => Str | ||
| 110 | |||
| 111 | The name of the service role in the customer's account to be used by | ||
| 112 | AWS SMS. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 ServerGroups => ArrayRef[L<Paws::SMS::ServerGroup>] | ||
| 117 | |||
| 118 | The server groups to include in the application. | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head2 Tags => ArrayRef[L<Paws::SMS::Tag>] | ||
| 123 | |||
| 124 | The tags to be associated with the application. | ||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head1 SEE ALSO | ||
| 130 | |||
| 131 | This class forms part of L<Paws>, documenting arguments for method CreateApp in L<Paws::SMS> | ||
| 132 | |||
| 133 | =head1 BUGS and CONTRIBUTIONS | ||
| 134 | |||
| 135 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 136 | |||
| 137 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 138 | |||
| 139 | =cut | ||
| 140 |