« blib/lib/Paws/ElasticBeanstalk/UpdateApplicationResourceLifecycle.pm
↑ Summary
blib/lib/Paws/ElasticBeanstalk/UpdateEnvironment.pm »
| 1 | |||
| 2 | package Paws::ElasticBeanstalk::UpdateConfigurationTemplate; | ||
| 3 | use Moose; | ||
| 4 | has ApplicationName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has OptionSettings => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::ConfigurationOptionSetting]'); | ||
| 7 | has OptionsToRemove => (is => 'ro', isa => 'ArrayRef[Paws::ElasticBeanstalk::OptionSpecification]'); | ||
| 8 | has TemplateName => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateConfigurationTemplate'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticBeanstalk::ConfigurationSettingsDescription'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'UpdateConfigurationTemplateResult'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::ElasticBeanstalk::UpdateConfigurationTemplate - Arguments for method UpdateConfigurationTemplate on L<Paws::ElasticBeanstalk> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateConfigurationTemplate on the | ||
| 26 | L<AWS Elastic Beanstalk|Paws::ElasticBeanstalk> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateConfigurationTemplate. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateConfigurationTemplate. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $elasticbeanstalk = Paws->service('ElasticBeanstalk'); | ||
| 34 | # To update a configuration template | ||
| 35 | # The following operation removes the configured CloudWatch custom health | ||
| 36 | # metrics configuration ConfigDocument from a saved configuration template named | ||
| 37 | # my-template: | ||
| 38 | my $ConfigurationSettingsDescription = | ||
| 39 | $elasticbeanstalk->UpdateConfigurationTemplate( | ||
| 40 | 'ApplicationName' => 'my-app', | ||
| 41 | 'OptionsToRemove' => [ | ||
| 42 | |||
| 43 | { | ||
| 44 | 'Namespace' => 'aws:elasticbeanstalk:healthreporting:system', | ||
| 45 | 'OptionName' => 'ConfigDocument' | ||
| 46 | } | ||
| 47 | ], | ||
| 48 | 'TemplateName' => 'my-template' | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $ApplicationName = $ConfigurationSettingsDescription->ApplicationName; | ||
| 53 | my $DateCreated = $ConfigurationSettingsDescription->DateCreated; | ||
| 54 | my $DateUpdated = $ConfigurationSettingsDescription->DateUpdated; | ||
| 55 | my $SolutionStackName = | ||
| 56 | $ConfigurationSettingsDescription->SolutionStackName; | ||
| 57 | my $TemplateName = $ConfigurationSettingsDescription->TemplateName; | ||
| 58 | |||
| 59 | # Returns a L<Paws::ElasticBeanstalk::ConfigurationSettingsDescription> object. | ||
| 60 | |||
| 61 | 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. | ||
| 62 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk/UpdateConfigurationTemplate> | ||
| 63 | |||
| 64 | =head1 ATTRIBUTES | ||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> ApplicationName => Str | ||
| 68 | |||
| 69 | The name of the application associated with the configuration template | ||
| 70 | to update. | ||
| 71 | |||
| 72 | If no application is found with this name, | ||
| 73 | C<UpdateConfigurationTemplate> returns an C<InvalidParameterValue> | ||
| 74 | error. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 Description => Str | ||
| 79 | |||
| 80 | A new description for the configuration. | ||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head2 OptionSettings => ArrayRef[L<Paws::ElasticBeanstalk::ConfigurationOptionSetting>] | ||
| 85 | |||
| 86 | A list of configuration option settings to update with the new | ||
| 87 | specified option value. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 OptionsToRemove => ArrayRef[L<Paws::ElasticBeanstalk::OptionSpecification>] | ||
| 92 | |||
| 93 | A list of configuration options to remove from the configuration set. | ||
| 94 | |||
| 95 | Constraint: You can remove only C<UserDefined> configuration options. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head2 B<REQUIRED> TemplateName => Str | ||
| 100 | |||
| 101 | The name of the configuration template to update. | ||
| 102 | |||
| 103 | If no configuration template is found with this name, | ||
| 104 | C<UpdateConfigurationTemplate> returns an C<InvalidParameterValue> | ||
| 105 | error. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head1 SEE ALSO | ||
| 111 | |||
| 112 | This class forms part of L<Paws>, documenting arguments for method UpdateConfigurationTemplate in L<Paws::ElasticBeanstalk> | ||
| 113 | |||
| 114 | =head1 BUGS and CONTRIBUTIONS | ||
| 115 | |||
| 116 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 117 | |||
| 118 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 119 | |||
| 120 | =cut | ||
| 121 |