« blib/lib/Paws/EKS/UpdateNodegroupConfigResponse.pm
↑ Summary
blib/lib/Paws/EKS/UpdateNodegroupVersionResponse.pm »
| 1 | |||
| 2 | package Paws::EKS::UpdateNodegroupVersion; | ||
| 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 Force => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'force'); | ||
| 7 | has LaunchTemplate => (is => 'ro', isa => 'Paws::EKS::LaunchTemplateSpecification', traits => ['NameInRequest'], request_name => 'launchTemplate'); | ||
| 8 | has NodegroupName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'nodegroupName', required => 1); | ||
| 9 | has ReleaseVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'releaseVersion'); | ||
| 10 | has Version => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'version'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateNodegroupVersion'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/clusters/{name}/node-groups/{nodegroupName}/update-version'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EKS::UpdateNodegroupVersionResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::EKS::UpdateNodegroupVersion - Arguments for method UpdateNodegroupVersion on L<Paws::EKS> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method UpdateNodegroupVersion on the | ||
| 29 | L<Amazon Elastic Kubernetes Service|Paws::EKS> service. Use the attributes of this class | ||
| 30 | as arguments to method UpdateNodegroupVersion. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateNodegroupVersion. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $eks = Paws->service('EKS'); | ||
| 37 | my $UpdateNodegroupVersionResponse = $eks->UpdateNodegroupVersion( | ||
| 38 | ClusterName => 'MyString', | ||
| 39 | NodegroupName => 'MyString', | ||
| 40 | ClientRequestToken => 'MyString', # OPTIONAL | ||
| 41 | Force => 1, # OPTIONAL | ||
| 42 | LaunchTemplate => { | ||
| 43 | Id => 'MyString', | ||
| 44 | Name => 'MyString', | ||
| 45 | Version => 'MyString', | ||
| 46 | }, # OPTIONAL | ||
| 47 | ReleaseVersion => 'MyString', # OPTIONAL | ||
| 48 | Version => 'MyString', # OPTIONAL | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $Update = $UpdateNodegroupVersionResponse->Update; | ||
| 53 | |||
| 54 | # Returns a L<Paws::EKS::UpdateNodegroupVersionResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/eks/UpdateNodegroupVersion> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 ClientRequestToken => Str | ||
| 63 | |||
| 64 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 65 | idempotency of the request. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> ClusterName => Str | ||
| 70 | |||
| 71 | The name of the Amazon EKS cluster that is associated with the managed | ||
| 72 | node group to update. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 Force => Bool | ||
| 77 | |||
| 78 | Force the update if the existing node group's pods are unable to be | ||
| 79 | drained due to a pod disruption budget issue. If an update fails | ||
| 80 | because pods could not be drained, you can force the update after it | ||
| 81 | fails to terminate the old node whether or not any pods are running on | ||
| 82 | the node. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head2 LaunchTemplate => L<Paws::EKS::LaunchTemplateSpecification> | ||
| 87 | |||
| 88 | An object representing a node group's launch template specification. | ||
| 89 | You can only update a node group using a launch template if the node | ||
| 90 | group was originally deployed with a launch template. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 B<REQUIRED> NodegroupName => Str | ||
| 95 | |||
| 96 | The name of the managed node group to update. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 ReleaseVersion => Str | ||
| 101 | |||
| 102 | The AMI version of the Amazon EKS optimized AMI to use for the update. | ||
| 103 | By default, the latest available AMI version for the node group's | ||
| 104 | Kubernetes version is used. For more information, see Amazon EKS | ||
| 105 | optimized Amazon Linux 2 AMI versions | ||
| 106 | (https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html) | ||
| 107 | in the I<Amazon EKS User Guide>. If you specify C<launchTemplate>, and | ||
| 108 | your launch template uses a custom AMI, then don't specify | ||
| 109 | C<releaseVersion>, or the node group update will fail. For more | ||
| 110 | information about using launch templates with Amazon EKS, see Launch | ||
| 111 | template support | ||
| 112 | (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) | ||
| 113 | in the Amazon EKS User Guide. | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head2 Version => Str | ||
| 118 | |||
| 119 | The Kubernetes version to update to. If no version is specified, then | ||
| 120 | the Kubernetes version of the node group does not change. You can | ||
| 121 | specify the Kubernetes version of the cluster to update the node group | ||
| 122 | to the latest AMI version of the cluster's Kubernetes version. If you | ||
| 123 | specify C<launchTemplate>, and your launch template uses a custom AMI, | ||
| 124 | then don't specify C<version>, or the node group update will fail. For | ||
| 125 | more information about using launch templates with Amazon EKS, see | ||
| 126 | Launch template support | ||
| 127 | (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) | ||
| 128 | in the Amazon EKS User Guide. | ||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head1 SEE ALSO | ||
| 134 | |||
| 135 | This class forms part of L<Paws>, documenting arguments for method UpdateNodegroupVersion in L<Paws::EKS> | ||
| 136 | |||
| 137 | =head1 BUGS and CONTRIBUTIONS | ||
| 138 | |||
| 139 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 140 | |||
| 141 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 142 | |||
| 143 | =cut | ||
| 144 |