/*
* 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 UpdateAddon operation.
/// Updates an Amazon EKS add-on.
///
public partial class UpdateAddonRequest : AmazonEKSRequest
{
private string _addonName;
private string _addonVersion;
private string _clientRequestToken;
private string _clusterName;
private string _configurationValues;
private ResolveConflicts _resolveConflicts;
private string _serviceAccountRoleArn;
///
/// Gets and sets the property AddonName.
///
/// The name of the add-on. The name must match one of the names returned by
/// ListAddons
.
///
///
[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.
///
/// 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.
///
///
[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 if you've changed a
/// value from the Amazon EKS default value. Conflicts are handled based on the option
/// you choose:
///
/// -
///
/// None – Amazon EKS doesn't change the value. The update might fail.
///
///
-
///
/// Overwrite – Amazon EKS overwrites the changed value back to the Amazon EKS
/// default value.
///
///
-
///
/// Preserve – Amazon EKS preserves the value. If you choose this option, we recommend
/// that you test any field and value changes on a non-production cluster before updating
/// the add-on on your production cluster.
///
///
///
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;
}
}
}