« blib/lib/Paws/AppConfig/CreateEnvironment.pm
↑ Summary
blib/lib/Paws/AppConfig/DeleteApplication.pm »
| 1 | |||
| 2 | package Paws::AppConfig::CreateHostedConfigurationVersion; | ||
| 3 | use Moose; | ||
| 4 | has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'ApplicationId', required => 1); | ||
| 5 | has ConfigurationProfileId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'ConfigurationProfileId', required => 1); | ||
| 6 | has Content => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has ContentType => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Content-Type', required => 1); | ||
| 8 | has Description => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Description'); | ||
| 9 | has LatestVersionNumber => (is => 'ro', isa => 'Int', traits => ['ParamInHeader'], header_name => 'Latest-Version-Number'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | class_has _stream_param => (is => 'ro', default => 'Content'); | ||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHostedConfigurationVersion'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppConfig::HostedConfigurationVersion'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::AppConfig::CreateHostedConfigurationVersion - Arguments for method CreateHostedConfigurationVersion on L<Paws::AppConfig> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateHostedConfigurationVersion on the | ||
| 28 | L<Amazon AppConfig|Paws::AppConfig> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateHostedConfigurationVersion. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHostedConfigurationVersion. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $appconfig = Paws->service('AppConfig'); | ||
| 36 | my $HostedConfigurationVersion = | ||
| 37 | $appconfig->CreateHostedConfigurationVersion( | ||
| 38 | ApplicationId => 'MyId', | ||
| 39 | ConfigurationProfileId => 'MyId', | ||
| 40 | Content => 'BlobBlob', | ||
| 41 | ContentType => 'MyStringWithLengthBetween1And255', | ||
| 42 | Description => 'MyDescription', # OPTIONAL | ||
| 43 | LatestVersionNumber => 1, # OPTIONAL | ||
| 44 | ); | ||
| 45 | |||
| 46 | # Results: | ||
| 47 | my $ApplicationId = $HostedConfigurationVersion->ApplicationId; | ||
| 48 | my $ConfigurationProfileId = | ||
| 49 | $HostedConfigurationVersion->ConfigurationProfileId; | ||
| 50 | my $Content = $HostedConfigurationVersion->Content; | ||
| 51 | my $ContentType = $HostedConfigurationVersion->ContentType; | ||
| 52 | my $Description = $HostedConfigurationVersion->Description; | ||
| 53 | my $VersionNumber = $HostedConfigurationVersion->VersionNumber; | ||
| 54 | |||
| 55 | # Returns a L<Paws::AppConfig::HostedConfigurationVersion> object. | ||
| 56 | |||
| 57 | 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. | ||
| 58 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appconfig/CreateHostedConfigurationVersion> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> ApplicationId => Str | ||
| 64 | |||
| 65 | The application ID. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> ConfigurationProfileId => Str | ||
| 70 | |||
| 71 | The configuration profile ID. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 B<REQUIRED> Content => Str | ||
| 76 | |||
| 77 | The content of the configuration or the configuration data. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 B<REQUIRED> ContentType => Str | ||
| 82 | |||
| 83 | A standard MIME type describing the format of the configuration | ||
| 84 | content. For more information, see Content-Type | ||
| 85 | (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17). | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 Description => Str | ||
| 90 | |||
| 91 | A description of the configuration. | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head2 LatestVersionNumber => Int | ||
| 96 | |||
| 97 | An optional locking token used to prevent race conditions from | ||
| 98 | overwriting configuration updates when creating a new version. To | ||
| 99 | ensure your data is not overwritten when creating multiple hosted | ||
| 100 | configuration versions in rapid succession, specify the version of the | ||
| 101 | latest hosted configuration version. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head1 SEE ALSO | ||
| 107 | |||
| 108 | This class forms part of L<Paws>, documenting arguments for method CreateHostedConfigurationVersion in L<Paws::AppConfig> | ||
| 109 | |||
| 110 | =head1 BUGS and CONTRIBUTIONS | ||
| 111 | |||
| 112 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 113 | |||
| 114 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 115 | |||
| 116 | =cut | ||
| 117 |