« blib/lib/Paws/MigrationHub/Task.pm
↑ Summary
blib/lib/Paws/MigrationHubConfig/CreateHomeRegionControl.pm »
| 1 | package Paws::MigrationHubConfig; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'migrationhub-config' } | ||
| 4 | sub signing_name { 'mgh' } | ||
| 5 | sub version { '2019-06-30' } | ||
| 6 | sub target_prefix { 'AWSMigrationHubMultiAccountService' } | ||
| 7 | sub json_version { "1.1" } | ||
| 8 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 9 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 10 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 11 | }); | ||
| 12 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 13 | ] }); | ||
| 14 | |||
| 15 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; | ||
| 16 | |||
| 17 | |||
| 18 | sub CreateHomeRegionControl { | ||
| 19 | my $self = shift; | ||
| 20 | my $call_object = $self->new_with_coercions('Paws::MigrationHubConfig::CreateHomeRegionControl', @_); | ||
| 21 | return $self->caller->do_call($self, $call_object); | ||
| 22 | } | ||
| 23 | sub DescribeHomeRegionControls { | ||
| 24 | my $self = shift; | ||
| 25 | my $call_object = $self->new_with_coercions('Paws::MigrationHubConfig::DescribeHomeRegionControls', @_); | ||
| 26 | return $self->caller->do_call($self, $call_object); | ||
| 27 | } | ||
| 28 | sub GetHomeRegion { | ||
| 29 | my $self = shift; | ||
| 30 | my $call_object = $self->new_with_coercions('Paws::MigrationHubConfig::GetHomeRegion', @_); | ||
| 31 | return $self->caller->do_call($self, $call_object); | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | sub operations { qw/CreateHomeRegionControl DescribeHomeRegionControls GetHomeRegion / } | ||
| 37 | |||
| 38 | 1; | ||
| 39 | |||
| 40 | ### main pod documentation begin ### | ||
| 41 | |||
| 42 | =head1 NAME | ||
| 43 | |||
| 44 | Paws::MigrationHubConfig - Perl Interface to AWS AWS Migration Hub Config | ||
| 45 | |||
| 46 | =head1 SYNOPSIS | ||
| 47 | |||
| 48 | use Paws; | ||
| 49 | |||
| 50 | my $obj = Paws->service('MigrationHubConfig'); | ||
| 51 | my $res = $obj->Method( | ||
| 52 | Arg1 => $val1, | ||
| 53 | Arg2 => [ 'V1', 'V2' ], | ||
| 54 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 55 | # of the arguments type | ||
| 56 | Arg3 => { Att1 => 'Val1' }, | ||
| 57 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 58 | # the constructor of the arguments type | ||
| 59 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 60 | ); | ||
| 61 | |||
| 62 | =head1 DESCRIPTION | ||
| 63 | |||
| 64 | The AWS Migration Hub home region APIs are available specifically for | ||
| 65 | working with your Migration Hub home region. You can use these APIs to | ||
| 66 | determine a home region, as well as to create and work with controls | ||
| 67 | that describe the home region. | ||
| 68 | |||
| 69 | =over | ||
| 70 | |||
| 71 | =item * | ||
| 72 | |||
| 73 | You must make API calls for write actions (create, notify, associate, | ||
| 74 | disassociate, import, or put) while in your home region, or a | ||
| 75 | C<HomeRegionNotSetException> error is returned. | ||
| 76 | |||
| 77 | =item * | ||
| 78 | |||
| 79 | API calls for read actions (list, describe, stop, and delete) are | ||
| 80 | permitted outside of your home region. | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | If you call a write API outside the home region, an | ||
| 85 | C<InvalidInputException> is returned. | ||
| 86 | |||
| 87 | =item * | ||
| 88 | |||
| 89 | You can call C<GetHomeRegion> action to obtain the account's Migration | ||
| 90 | Hub home region. | ||
| 91 | |||
| 92 | =back | ||
| 93 | |||
| 94 | For specific API usage, see the sections that follow in this AWS | ||
| 95 | Migration Hub Home Region API reference. | ||
| 96 | |||
| 97 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30> | ||
| 98 | |||
| 99 | |||
| 100 | =head1 METHODS | ||
| 101 | |||
| 102 | =head2 CreateHomeRegionControl | ||
| 103 | |||
| 104 | =over | ||
| 105 | |||
| 106 | =item HomeRegion => Str | ||
| 107 | |||
| 108 | =item Target => L<Paws::MigrationHubConfig::Target> | ||
| 109 | |||
| 110 | =item [DryRun => Bool] | ||
| 111 | |||
| 112 | |||
| 113 | =back | ||
| 114 | |||
| 115 | Each argument is described in detail in: L<Paws::MigrationHubConfig::CreateHomeRegionControl> | ||
| 116 | |||
| 117 | Returns: a L<Paws::MigrationHubConfig::CreateHomeRegionControlResult> instance | ||
| 118 | |||
| 119 | This API sets up the home region for the calling account only. | ||
| 120 | |||
| 121 | |||
| 122 | =head2 DescribeHomeRegionControls | ||
| 123 | |||
| 124 | =over | ||
| 125 | |||
| 126 | =item [ControlId => Str] | ||
| 127 | |||
| 128 | =item [HomeRegion => Str] | ||
| 129 | |||
| 130 | =item [MaxResults => Int] | ||
| 131 | |||
| 132 | =item [NextToken => Str] | ||
| 133 | |||
| 134 | =item [Target => L<Paws::MigrationHubConfig::Target>] | ||
| 135 | |||
| 136 | |||
| 137 | =back | ||
| 138 | |||
| 139 | Each argument is described in detail in: L<Paws::MigrationHubConfig::DescribeHomeRegionControls> | ||
| 140 | |||
| 141 | Returns: a L<Paws::MigrationHubConfig::DescribeHomeRegionControlsResult> instance | ||
| 142 | |||
| 143 | This API permits filtering on the C<ControlId> and C<HomeRegion> | ||
| 144 | fields. | ||
| 145 | |||
| 146 | |||
| 147 | =head2 GetHomeRegion | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | Each argument is described in detail in: L<Paws::MigrationHubConfig::GetHomeRegion> | ||
| 155 | |||
| 156 | Returns: a L<Paws::MigrationHubConfig::GetHomeRegionResult> instance | ||
| 157 | |||
| 158 | Returns the calling accountE<rsquo>s home region, if configured. This | ||
| 159 | API is used by other AWS services to determine the regional endpoint | ||
| 160 | for calling AWS Application Discovery Service and Migration Hub. You | ||
| 161 | must call C<GetHomeRegion> at least once before you call any other AWS | ||
| 162 | Application Discovery Service and AWS Migration Hub APIs, to obtain the | ||
| 163 | account's Migration Hub home region. | ||
| 164 | |||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | =head1 PAGINATORS | ||
| 169 | |||
| 170 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 171 | |||
| 172 | |||
| 173 | |||
| 174 | |||
| 175 | =head1 SEE ALSO | ||
| 176 | |||
| 177 | This service class forms part of L<Paws> | ||
| 178 | |||
| 179 | =head1 BUGS and CONTRIBUTIONS | ||
| 180 | |||
| 181 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 182 | |||
| 183 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 184 | |||
| 185 | =cut | ||
| 186 |