/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the eks-2017-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EKS.Model
{
///
/// Container for the parameters to the CreateAddon operation.
/// Creates an Amazon EKS add-on.
///
///
///
/// Amazon EKS add-ons help to automate the provisioning and lifecycle management of common
/// operational software for Amazon EKS clusters. For more information, see Amazon
/// EKS add-ons in the Amazon EKS User Guide.
///
///
public partial class CreateAddonRequest : AmazonEKSRequest
{
private string _addonName;
private string _addonVersion;
private string _clientRequestToken;
private string _clusterName;
private string _configurationValues;
private ResolveConflicts _resolveConflicts;
private string _serviceAccountRoleArn;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property AddonName.
///
/// The name of the add-on. The name must match one of the names that
/// DescribeAddonVersions
returns.
///
///
[AWSProperty(Required=true)]
public string AddonName
{
get { return this._addonName; }
set { this._addonName = value; }
}
// Check to see if AddonName property is set
internal bool IsSetAddonName()
{
return this._addonName != null;
}
///
/// Gets and sets the property AddonVersion.
///
/// The version of the add-on. The version must match one of the versions returned by
///
/// DescribeAddonVersions
.
///
///
public string AddonVersion
{
get { return this._addonVersion; }
set { this._addonVersion = value; }
}
// Check to see if AddonVersion property is set
internal bool IsSetAddonVersion()
{
return this._addonVersion != null;
}
///
/// Gets and sets the property ClientRequestToken.
///
/// A unique, case-sensitive identifier that you provide to ensure the idempotency of
/// the request.
///
///
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property ClusterName.
///
/// The name of the cluster to create the add-on for.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string ClusterName
{
get { return this._clusterName; }
set { this._clusterName = value; }
}
// Check to see if ClusterName property is set
internal bool IsSetClusterName()
{
return this._clusterName != null;
}
///
/// Gets and sets the property ConfigurationValues.
///
/// The set of configuration values for the add-on that's created. The values that you
/// provide are validated against the schema in
/// DescribeAddonConfiguration
.
///
///
public string ConfigurationValues
{
get { return this._configurationValues; }
set { this._configurationValues = value; }
}
// Check to see if ConfigurationValues property is set
internal bool IsSetConfigurationValues()
{
return this._configurationValues != null;
}
///
/// Gets and sets the property ResolveConflicts.
///
/// How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled
/// based on the value you choose:
///
/// -
///
/// None – If the self-managed version of the add-on is installed on your cluster,
/// Amazon EKS doesn't change the value. Creation of the add-on might fail.
///
///
-
///
/// Overwrite – If the self-managed version of the add-on is installed on your
/// cluster and the Amazon EKS default value is different than the existing value, Amazon
/// EKS changes the value to the Amazon EKS default value.
///
///
-
///
/// Preserve – Not supported. You can set this value when updating an add-on though.
/// For more information, see UpdateAddon.
///
///
///
/// If you don't currently have the self-managed version of the add-on installed on your
/// cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default
/// values, regardless of the option that you specify.
///
///
public ResolveConflicts ResolveConflicts
{
get { return this._resolveConflicts; }
set { this._resolveConflicts = value; }
}
// Check to see if ResolveConflicts property is set
internal bool IsSetResolveConflicts()
{
return this._resolveConflicts != null;
}
///
/// Gets and sets the property ServiceAccountRoleArn.
///
/// The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service
/// account. The role must be assigned the IAM permissions required by the add-on. If
/// you don't specify an existing IAM role, then the add-on uses the permissions assigned
/// to the node IAM role. For more information, see Amazon
/// EKS node IAM role in the Amazon EKS User Guide.
///
///
///
/// To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider
/// created for your cluster. For more information, see Enabling
/// IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
///
///
///
[AWSProperty(Min=1, Max=255)]
public string ServiceAccountRoleArn
{
get { return this._serviceAccountRoleArn; }
set { this._serviceAccountRoleArn = value; }
}
// Check to see if ServiceAccountRoleArn property is set
internal bool IsSetServiceAccountRoleArn()
{
return this._serviceAccountRoleArn != null;
}
///
/// Gets and sets the property Tags.
///
/// The metadata to apply to the cluster to assist with categorization and organization.
/// Each tag consists of a key and an optional value. You define both.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}