| 1 | |||
| 2 | package Paws::EKS::CreateAddon; | ||
| 3 | use Moose; | ||
| 4 | has AddonName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'addonName', required => 1); | ||
| 5 | has AddonVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'addonVersion'); | ||
| 6 | has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken'); | ||
| 7 | has ClusterName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name', required => 1); | ||
| 8 | has ResolveConflicts => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resolveConflicts'); | ||
| 9 | has ServiceAccountRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceAccountRoleArn'); | ||
| 10 | has Tags => (is => 'ro', isa => 'Paws::EKS::TagMap', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAddon'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/clusters/{name}/addons'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EKS::CreateAddonResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::EKS::CreateAddon - Arguments for method CreateAddon on L<Paws::EKS> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateAddon on the | ||
| 29 | L<Amazon Elastic Kubernetes Service|Paws::EKS> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateAddon. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAddon. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $eks = Paws->service('EKS'); | ||
| 37 | my $CreateAddonResponse = $eks->CreateAddon( | ||
| 38 | AddonName => 'MyString', | ||
| 39 | ClusterName => 'MyClusterName', | ||
| 40 | AddonVersion => 'MyString', # OPTIONAL | ||
| 41 | ClientRequestToken => 'MyString', # OPTIONAL | ||
| 42 | ResolveConflicts => 'OVERWRITE', # OPTIONAL | ||
| 43 | ServiceAccountRoleArn => 'MyRoleArn', # OPTIONAL | ||
| 44 | Tags => { | ||
| 45 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 46 | }, # OPTIONAL | ||
| 47 | ); | ||
| 48 | |||
| 49 | # Results: | ||
| 50 | my $Addon = $CreateAddonResponse->Addon; | ||
| 51 | |||
| 52 | # Returns a L<Paws::EKS::CreateAddonResponse> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/eks/CreateAddon> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 B<REQUIRED> AddonName => Str | ||
| 61 | |||
| 62 | The name of the add-on. The name must match one of the names returned | ||
| 63 | by C<ListAddons> | ||
| 64 | (https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html). | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head2 AddonVersion => Str | ||
| 69 | |||
| 70 | The version of the add-on. The version must match one of the versions | ||
| 71 | returned by C<DescribeAddonVersions> | ||
| 72 | (https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html). | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 ClientRequestToken => Str | ||
| 77 | |||
| 78 | A unique, case-sensitive identifier that you provide to ensure the | ||
| 79 | idempotency of the request. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 B<REQUIRED> ClusterName => Str | ||
| 84 | |||
| 85 | The name of the cluster to create the add-on for. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 ResolveConflicts => Str | ||
| 90 | |||
| 91 | How to resolve parameter value conflicts when migrating an existing | ||
| 92 | add-on to an Amazon EKS add-on. | ||
| 93 | |||
| 94 | Valid values are: C<"OVERWRITE">, C<"NONE"> | ||
| 95 | |||
| 96 | =head2 ServiceAccountRoleArn => Str | ||
| 97 | |||
| 98 | The Amazon Resource Name (ARN) of an existing IAM role to bind to the | ||
| 99 | add-on's service account. The role must be assigned the IAM permissions | ||
| 100 | required by the add-on. If you don't specify an existing IAM role, then | ||
| 101 | the add-on uses the permissions assigned to the node IAM role. For more | ||
| 102 | information, see Amazon EKS node IAM role | ||
| 103 | (https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html) | ||
| 104 | in the I<Amazon EKS User Guide>. | ||
| 105 | |||
| 106 | To specify an existing IAM role, you must have an IAM OpenID Connect | ||
| 107 | (OIDC) provider created for your cluster. For more information, see | ||
| 108 | Enabling IAM roles for service accounts on your cluster | ||
| 109 | (https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html) | ||
| 110 | in the I<Amazon EKS User Guide>. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 Tags => L<Paws::EKS::TagMap> | ||
| 115 | |||
| 116 | The metadata to apply to the cluster to assist with categorization and | ||
| 117 | organization. Each tag consists of a key and an optional value, both of | ||
| 118 | which you define. | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | =head1 SEE ALSO | ||
| 124 | |||
| 125 | This class forms part of L<Paws>, documenting arguments for method CreateAddon in L<Paws::EKS> | ||
| 126 | |||
| 127 | =head1 BUGS and CONTRIBUTIONS | ||
| 128 | |||
| 129 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 130 | |||
| 131 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 132 | |||
| 133 | =cut | ||
| 134 |