« blib/lib/Paws/EKS/UpdateLabelsPayload.pm
↑ Summary
blib/lib/Paws/EKS/UpdateNodegroupConfigResponse.pm »
| 1 | |||
| 2 | package Paws::EKS::UpdateNodegroupConfig; | ||
| 3 | use Moose; | ||
| 4 | has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken'); | ||
| 5 | has ClusterName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name', required => 1); | ||
| 6 | has Labels => (is => 'ro', isa => 'Paws::EKS::UpdateLabelsPayload', traits => ['NameInRequest'], request_name => 'labels'); | ||
| 7 | has NodegroupName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'nodegroupName', required => 1); | ||
| 8 | has ScalingConfig => (is => 'ro', isa => 'Paws::EKS::NodegroupScalingConfig', traits => ['NameInRequest'], request_name => 'scalingConfig'); | ||
| 9 | has Taints => (is => 'ro', isa => 'Paws::EKS::UpdateTaintsPayload', traits => ['NameInRequest'], request_name => 'taints'); | ||
| 10 | has UpdateConfig => (is => 'ro', isa => 'Paws::EKS::NodegroupUpdateConfig', traits => ['NameInRequest'], request_name => 'updateConfig'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateNodegroupConfig'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/clusters/{name}/node-groups/{nodegroupName}/update-config'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EKS::UpdateNodegroupConfigResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::EKS::UpdateNodegroupConfig - Arguments for method UpdateNodegroupConfig on L<Paws::EKS> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method UpdateNodegroupConfig on the | ||
| 29 | L<Amazon Elastic Kubernetes Service|Paws::EKS> service. Use the attributes of this class | ||
| 30 | as arguments to method UpdateNodegroupConfig. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateNodegroupConfig. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $eks = Paws->service('EKS'); | ||
| 37 | my $UpdateNodegroupConfigResponse = $eks->UpdateNodegroupConfig( | ||
| 38 | ClusterName => 'MyString', | ||
| 39 | NodegroupName => 'MyString', | ||
| 40 | ClientRequestToken => 'MyString', # OPTIONAL | ||
| 41 | Labels => { | ||
| 42 | AddOrUpdateLabels => { | ||
| 43 | 'MylabelKey' => | ||
| 44 | 'MylabelValue', # key: min: 1, max: 63, value: min: 1, max: 63 | ||
| 45 | }, # OPTIONAL | ||
| 46 | RemoveLabels => [ 'MyString', ... ], # OPTIONAL | ||
| 47 | }, # OPTIONAL | ||
| 48 | ScalingConfig => { | ||
| 49 | DesiredSize => 1, # OPTIONAL | ||
| 50 | MaxSize => 1, # min: 1; OPTIONAL | ||
| 51 | MinSize => 1, # OPTIONAL | ||
| 52 | }, # OPTIONAL | ||
| 53 | Taints => { | ||
| 54 | AddOrUpdateTaints => [ | ||
| 55 | { | ||
| 56 | Effect => 'NO_SCHEDULE' | ||
| 57 | , # values: NO_SCHEDULE, NO_EXECUTE, PREFER_NO_SCHEDULE; OPTIONAL | ||
| 58 | Key => 'MytaintKey', # min: 1, max: 63; OPTIONAL | ||
| 59 | Value => 'MytaintValue', # max: 63; OPTIONAL | ||
| 60 | }, | ||
| 61 | ... | ||
| 62 | ], # OPTIONAL | ||
| 63 | RemoveTaints => [ | ||
| 64 | { | ||
| 65 | Effect => 'NO_SCHEDULE' | ||
| 66 | , # values: NO_SCHEDULE, NO_EXECUTE, PREFER_NO_SCHEDULE; OPTIONAL | ||
| 67 | Key => 'MytaintKey', # min: 1, max: 63; OPTIONAL | ||
| 68 | Value => 'MytaintValue', # max: 63; OPTIONAL | ||
| 69 | }, | ||
| 70 | ... | ||
| 71 | ], # OPTIONAL | ||
| 72 | }, # OPTIONAL | ||
| 73 | UpdateConfig => { | ||
| 74 | MaxUnavailable => 1, # min: 1; OPTIONAL | ||
| 75 | MaxUnavailablePercentage => 1, # min: 1, max: 100; OPTIONAL | ||
| 76 | }, # OPTIONAL | ||
| 77 | ); | ||
| 78 | |||
| 79 | # Results: | ||
| 80 | my $Update = $UpdateNodegroupConfigResponse->Update; | ||
| 81 | |||
| 82 | # Returns a L<Paws::EKS::UpdateNodegroupConfigResponse> 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/eks/UpdateNodegroupConfig> | ||
| 86 | |||
| 87 | =head1 ATTRIBUTES | ||
| 88 | |||
| 89 | |||
| 90 | =head2 ClientRequestToken => Str | ||
| 91 | |||
| 92 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 93 | idempotency of the request. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> ClusterName => Str | ||
| 98 | |||
| 99 | The name of the Amazon EKS cluster that the managed node group resides | ||
| 100 | in. | ||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | =head2 Labels => L<Paws::EKS::UpdateLabelsPayload> | ||
| 105 | |||
| 106 | The Kubernetes labels to be applied to the nodes in the node group | ||
| 107 | after the update. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 B<REQUIRED> NodegroupName => Str | ||
| 112 | |||
| 113 | The name of the managed node group to update. | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head2 ScalingConfig => L<Paws::EKS::NodegroupScalingConfig> | ||
| 118 | |||
| 119 | The scaling configuration details for the Auto Scaling group after the | ||
| 120 | update. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 Taints => L<Paws::EKS::UpdateTaintsPayload> | ||
| 125 | |||
| 126 | The Kubernetes taints to be applied to the nodes in the node group | ||
| 127 | after the update. | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | =head2 UpdateConfig => L<Paws::EKS::NodegroupUpdateConfig> | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | =head1 SEE ALSO | ||
| 139 | |||
| 140 | This class forms part of L<Paws>, documenting arguments for method UpdateNodegroupConfig in L<Paws::EKS> | ||
| 141 | |||
| 142 | =head1 BUGS and CONTRIBUTIONS | ||
| 143 | |||
| 144 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 145 | |||
| 146 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 147 | |||
| 148 | =cut | ||
| 149 |