/******************************************************************************* * Copyright 2012-2019 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. * ***************************************************************************** * * AWS Tools for Windows (TM) PowerShell (TM) * */ using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using Amazon.PowerShell.Common; using Amazon.Runtime; using Amazon.ElastiCache; using Amazon.ElastiCache.Model; namespace Amazon.PowerShell.Cmdlets.EC { /// /// Modifies the settings for a replication group. /// /// /// This operation is valid for Redis only. /// /// [Cmdlet("Edit", "ECReplicationGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] [OutputType("Amazon.ElastiCache.Model.ReplicationGroup")] [AWSCmdlet("Calls the Amazon ElastiCache ModifyReplicationGroup API operation.", Operation = new[] {"ModifyReplicationGroup"}, SelectReturnType = typeof(Amazon.ElastiCache.Model.ModifyReplicationGroupResponse))] [AWSCmdletOutput("Amazon.ElastiCache.Model.ReplicationGroup or Amazon.ElastiCache.Model.ModifyReplicationGroupResponse", "This cmdlet returns an Amazon.ElastiCache.Model.ReplicationGroup object.", "The service call response (type Amazon.ElastiCache.Model.ModifyReplicationGroupResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack." )] public partial class EditECReplicationGroupCmdlet : AmazonElastiCacheClientCmdlet, IExecutor { #region Parameter ApplyImmediately /// /// /// If true, this parameter causes the modifications in this request and /// any pending modifications to be applied, asynchronously and as soon as possible, regardless /// of the PreferredMaintenanceWindow setting for the replication group.If false, changes to the nodes in the replication group are applied on /// the next maintenance reboot, or the next failure reboot, whichever occurs first.Valid values: true | falseDefault: false /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? ApplyImmediately { get; set; } #endregion #region Parameter AuthToken /// /// /// Reserved parameter. The password used to access a password protected server. This /// parameter must be specified with the auth-token-update-strategy parameter. /// Password constraints: For more information, see AUTH password at AUTH. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String AuthToken { get; set; } #endregion #region Parameter AuthTokenUpdateStrategy /// /// /// Specifies the strategy to use to update the AUTH token. This parameter must be specified /// with the auth-token parameter. Possible values: For more information, see Authenticating /// Users with Redis AUTH /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [AWSConstantClassSource("Amazon.ElastiCache.AuthTokenUpdateStrategyType")] public Amazon.ElastiCache.AuthTokenUpdateStrategyType AuthTokenUpdateStrategy { get; set; } #endregion #region Parameter AutomaticFailoverEnabled /// /// /// Determines whether a read replica is automatically promoted to read/write primary /// if the existing primary encounters a failure.Valid values: true | false /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? AutomaticFailoverEnabled { get; set; } #endregion #region Parameter AutoMinorVersionUpgrade /// /// ///  If you are running Redis engine version 6.0 or later, set this parameter to yes if /// you want to opt-in to the next auto minor version upgrade campaign. This parameter /// is disabled for previous versions.  /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? AutoMinorVersionUpgrade { get; set; } #endregion #region Parameter CacheNodeType /// /// /// A valid cache node type that you want to scale this replication group to. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String CacheNodeType { get; set; } #endregion #region Parameter CacheParameterGroupName /// /// /// The name of the cache parameter group to apply to all of the clusters in this replication /// group. This change is asynchronously applied as soon as possible for parameters when /// the ApplyImmediately parameter is specified as true for /// this request. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String CacheParameterGroupName { get; set; } #endregion #region Parameter CacheSecurityGroupName /// /// /// A list of cache security group names to authorize for the clusters in this replication /// group. This change is asynchronously applied as soon as possible.This parameter can be used only with replication group containing clusters running /// outside of an Amazon Virtual Private Cloud (Amazon VPC).Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("CacheSecurityGroupNames")] public System.String[] CacheSecurityGroupName { get; set; } #endregion #region Parameter ClusterMode /// /// /// Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first /// set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect /// using both cluster mode enabled and cluster mode disabled. After you migrate all Redis /// clients to use cluster mode enabled, you can then complete cluster mode configuration /// and set the cluster mode to Enabled. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [AWSConstantClassSource("Amazon.ElastiCache.ClusterMode")] public Amazon.ElastiCache.ClusterMode ClusterMode { get; set; } #endregion #region Parameter EngineVersion /// /// /// The upgraded version of the cache engine to be run on the clusters in the replication /// group.Important: You can upgrade to a newer engine version (see Selecting /// a Cache Engine and Version), but you cannot downgrade to an earlier engine version. /// If you want to use an earlier engine version, you must delete the existing replication /// group and create it anew with the earlier engine version. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String EngineVersion { get; set; } #endregion #region Parameter IpDiscovery /// /// /// The network type you choose when modifying a cluster, either ipv4 | ipv6. /// IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached /// engine version 1.6.6 on all instances built on the Nitro /// system. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [AWSConstantClassSource("Amazon.ElastiCache.IpDiscovery")] public Amazon.ElastiCache.IpDiscovery IpDiscovery { get; set; } #endregion #region Parameter LogDeliveryConfiguration /// /// /// Specifies the destination, format and type of the logs. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("LogDeliveryConfigurations")] public Amazon.ElastiCache.Model.LogDeliveryConfigurationRequest[] LogDeliveryConfiguration { get; set; } #endregion #region Parameter MultiAZEnabled /// /// /// A flag to indicate MultiAZ is enabled. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? MultiAZEnabled { get; set; } #endregion #region Parameter NotificationTopicArn /// /// /// The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are /// sent.The Amazon SNS topic owner must be same as the replication group owner. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String NotificationTopicArn { get; set; } #endregion #region Parameter NotificationTopicStatus /// /// /// The status of the Amazon SNS notification topic for the replication group. Notifications /// are sent only if the status is active.Valid values: active | inactive /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String NotificationTopicStatus { get; set; } #endregion #region Parameter PreferredMaintenanceWindow /// /// /// Specifies the weekly time range during which maintenance on the cluster is performed. /// It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). /// The minimum maintenance window is a 60 minute period.Valid values for ddd are:Example: sun:23:00-mon:01:30 /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String PreferredMaintenanceWindow { get; set; } #endregion #region Parameter PrimaryClusterId /// /// /// For replication groups with a single primary, if this parameter is specified, ElastiCache /// promotes the specified cluster in the specified replication group to the primary role. /// The nodes of all other clusters in the replication group are read replicas. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String PrimaryClusterId { get; set; } #endregion #region Parameter RemoveUserGroup /// /// /// Removes the user group associated with this replication group. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("RemoveUserGroups")] public System.Boolean? RemoveUserGroup { get; set; } #endregion #region Parameter ReplicationGroupDescription /// /// /// A description for the replication group. Maximum length is 255 characters. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String ReplicationGroupDescription { get; set; } #endregion #region Parameter ReplicationGroupId /// /// /// The identifier of the replication group to modify. /// /// #if !MODULAR [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] #else [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String ReplicationGroupId { get; set; } #endregion #region Parameter SecurityGroupId /// /// /// Specifies the VPC Security Groups associated with the clusters in the replication /// group.This parameter can be used only with replication group containing clusters running /// in an Amazon Virtual Private Cloud (Amazon VPC). /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("SecurityGroupIds")] public System.String[] SecurityGroupId { get; set; } #endregion #region Parameter SnapshotRetentionLimit /// /// /// The number of days for which ElastiCache retains automatic node group (shard) snapshots /// before deleting them. For example, if you set SnapshotRetentionLimit /// to 5, a snapshot that was taken today is retained for 5 days before being deleted.Important If the value of SnapshotRetentionLimit is set to zero (0), backups /// are turned off. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? SnapshotRetentionLimit { get; set; } #endregion #region Parameter SnapshottingClusterId /// /// /// The cluster ID that is used as the daily snapshot source for the replication group. /// This parameter cannot be set for Redis (cluster mode enabled) replication groups. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String SnapshottingClusterId { get; set; } #endregion #region Parameter SnapshotWindow /// /// /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot /// of the node group (shard) specified by SnapshottingClusterId.Example: 05:00-09:00If you do not specify this parameter, ElastiCache automatically chooses an appropriate /// time range. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String SnapshotWindow { get; set; } #endregion #region Parameter TransitEncryptionEnabled /// /// /// A flag that enables in-transit encryption when set to true. If you are enabling in-transit /// encryption for an existing cluster, you must also set TransitEncryptionMode /// to preferred. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? TransitEncryptionEnabled { get; set; } #endregion #region Parameter TransitEncryptionMode /// /// /// A setting that allows you to migrate your clients to use in-transit encryption, with /// no downtime.You must set TransitEncryptionEnabled to true, for your /// existing cluster, and set TransitEncryptionMode to preferred /// in the same request to allow both encrypted and unencrypted connections at the same /// time. Once you migrate all your Redis clients to use encrypted connections you can /// set the value to required to allow encrypted connections only.Setting TransitEncryptionMode to required is a two-step /// process that requires you to first set the TransitEncryptionMode to preferred, /// after that you can set TransitEncryptionMode to required. /// /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [AWSConstantClassSource("Amazon.ElastiCache.TransitEncryptionMode")] public Amazon.ElastiCache.TransitEncryptionMode TransitEncryptionMode { get; set; } #endregion #region Parameter UserGroupIdsToAdd /// /// /// The ID of the user group you are associating with the replication group. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String[] UserGroupIdsToAdd { get; set; } #endregion #region Parameter UserGroupIdsToRemove /// /// /// The ID of the user group to disassociate from the replication group, meaning the users /// in the group no longer can access the replication group. /// /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String[] UserGroupIdsToRemove { get; set; } #endregion #region Parameter NodeGroupId /// /// /// Deprecated. This parameter is not used. /// /// This parameter is deprecated. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [System.ObsoleteAttribute("This field is deprecated and is no longer used.")] public System.String NodeGroupId { get; set; } #endregion #region Parameter Select /// /// Use the -Select parameter to control the cmdlet output. The default value is 'ReplicationGroup'. /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.ElastiCache.Model.ModifyReplicationGroupResponse). /// Specifying the name of a property of type Amazon.ElastiCache.Model.ModifyReplicationGroupResponse will result in that property being returned. /// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public string Select { get; set; } = "ReplicationGroup"; #endregion #region Parameter PassThru /// /// Changes the cmdlet behavior to return the value passed to the ReplicationGroupId parameter. /// The -PassThru parameter is deprecated, use -Select '^ReplicationGroupId' instead. This parameter will be removed in a future version. /// [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^ReplicationGroupId' instead. This parameter will be removed in a future version.")] [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter PassThru { get; set; } #endregion #region Parameter Force /// /// This parameter overrides confirmation prompts to force /// the cmdlet to continue its operation. This parameter should always /// be used with caution. /// [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter Force { get; set; } #endregion protected override void ProcessRecord() { this._AWSSignerType = "v4"; base.ProcessRecord(); var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.ReplicationGroupId), MyInvocation.BoundParameters); if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Edit-ECReplicationGroup (ModifyReplicationGroup)")) { return; } var context = new CmdletContext(); // allow for manipulation of parameters prior to loading into context PreExecutionContextLoad(context); #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (ParameterWasBound(nameof(this.Select))) { context.Select = CreateSelectDelegate(Select) ?? throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => this.ReplicationGroupId; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.ApplyImmediately = this.ApplyImmediately; context.AuthToken = this.AuthToken; context.AuthTokenUpdateStrategy = this.AuthTokenUpdateStrategy; context.AutomaticFailoverEnabled = this.AutomaticFailoverEnabled; context.AutoMinorVersionUpgrade = this.AutoMinorVersionUpgrade; context.CacheNodeType = this.CacheNodeType; context.CacheParameterGroupName = this.CacheParameterGroupName; if (this.CacheSecurityGroupName != null) { context.CacheSecurityGroupName = new List(this.CacheSecurityGroupName); } context.ClusterMode = this.ClusterMode; context.EngineVersion = this.EngineVersion; context.IpDiscovery = this.IpDiscovery; if (this.LogDeliveryConfiguration != null) { context.LogDeliveryConfiguration = new List(this.LogDeliveryConfiguration); } context.MultiAZEnabled = this.MultiAZEnabled; #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute context.NodeGroupId = this.NodeGroupId; #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.NotificationTopicArn = this.NotificationTopicArn; context.NotificationTopicStatus = this.NotificationTopicStatus; context.PreferredMaintenanceWindow = this.PreferredMaintenanceWindow; context.PrimaryClusterId = this.PrimaryClusterId; context.RemoveUserGroup = this.RemoveUserGroup; context.ReplicationGroupDescription = this.ReplicationGroupDescription; context.ReplicationGroupId = this.ReplicationGroupId; #if MODULAR if (this.ReplicationGroupId == null && ParameterWasBound(nameof(this.ReplicationGroupId))) { WriteWarning("You are passing $null as a value for parameter ReplicationGroupId which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif if (this.SecurityGroupId != null) { context.SecurityGroupId = new List(this.SecurityGroupId); } context.SnapshotRetentionLimit = this.SnapshotRetentionLimit; context.SnapshottingClusterId = this.SnapshottingClusterId; context.SnapshotWindow = this.SnapshotWindow; context.TransitEncryptionEnabled = this.TransitEncryptionEnabled; context.TransitEncryptionMode = this.TransitEncryptionMode; if (this.UserGroupIdsToAdd != null) { context.UserGroupIdsToAdd = new List(this.UserGroupIdsToAdd); } if (this.UserGroupIdsToRemove != null) { context.UserGroupIdsToRemove = new List(this.UserGroupIdsToRemove); } // allow further manipulation of loaded context prior to processing PostExecutionContextLoad(context); var output = Execute(context) as CmdletOutput; ProcessOutput(output); } #region IExecutor Members public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.ElastiCache.Model.ModifyReplicationGroupRequest(); if (cmdletContext.ApplyImmediately != null) { request.ApplyImmediately = cmdletContext.ApplyImmediately.Value; } if (cmdletContext.AuthToken != null) { request.AuthToken = cmdletContext.AuthToken; } if (cmdletContext.AuthTokenUpdateStrategy != null) { request.AuthTokenUpdateStrategy = cmdletContext.AuthTokenUpdateStrategy; } if (cmdletContext.AutomaticFailoverEnabled != null) { request.AutomaticFailoverEnabled = cmdletContext.AutomaticFailoverEnabled.Value; } if (cmdletContext.AutoMinorVersionUpgrade != null) { request.AutoMinorVersionUpgrade = cmdletContext.AutoMinorVersionUpgrade.Value; } if (cmdletContext.CacheNodeType != null) { request.CacheNodeType = cmdletContext.CacheNodeType; } if (cmdletContext.CacheParameterGroupName != null) { request.CacheParameterGroupName = cmdletContext.CacheParameterGroupName; } if (cmdletContext.CacheSecurityGroupName != null) { request.CacheSecurityGroupNames = cmdletContext.CacheSecurityGroupName; } if (cmdletContext.ClusterMode != null) { request.ClusterMode = cmdletContext.ClusterMode; } if (cmdletContext.EngineVersion != null) { request.EngineVersion = cmdletContext.EngineVersion; } if (cmdletContext.IpDiscovery != null) { request.IpDiscovery = cmdletContext.IpDiscovery; } if (cmdletContext.LogDeliveryConfiguration != null) { request.LogDeliveryConfigurations = cmdletContext.LogDeliveryConfiguration; } if (cmdletContext.MultiAZEnabled != null) { request.MultiAZEnabled = cmdletContext.MultiAZEnabled.Value; } #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (cmdletContext.NodeGroupId != null) { request.NodeGroupId = cmdletContext.NodeGroupId; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute if (cmdletContext.NotificationTopicArn != null) { request.NotificationTopicArn = cmdletContext.NotificationTopicArn; } if (cmdletContext.NotificationTopicStatus != null) { request.NotificationTopicStatus = cmdletContext.NotificationTopicStatus; } if (cmdletContext.PreferredMaintenanceWindow != null) { request.PreferredMaintenanceWindow = cmdletContext.PreferredMaintenanceWindow; } if (cmdletContext.PrimaryClusterId != null) { request.PrimaryClusterId = cmdletContext.PrimaryClusterId; } if (cmdletContext.RemoveUserGroup != null) { request.RemoveUserGroups = cmdletContext.RemoveUserGroup.Value; } if (cmdletContext.ReplicationGroupDescription != null) { request.ReplicationGroupDescription = cmdletContext.ReplicationGroupDescription; } if (cmdletContext.ReplicationGroupId != null) { request.ReplicationGroupId = cmdletContext.ReplicationGroupId; } if (cmdletContext.SecurityGroupId != null) { request.SecurityGroupIds = cmdletContext.SecurityGroupId; } if (cmdletContext.SnapshotRetentionLimit != null) { request.SnapshotRetentionLimit = cmdletContext.SnapshotRetentionLimit.Value; } if (cmdletContext.SnapshottingClusterId != null) { request.SnapshottingClusterId = cmdletContext.SnapshottingClusterId; } if (cmdletContext.SnapshotWindow != null) { request.SnapshotWindow = cmdletContext.SnapshotWindow; } if (cmdletContext.TransitEncryptionEnabled != null) { request.TransitEncryptionEnabled = cmdletContext.TransitEncryptionEnabled.Value; } if (cmdletContext.TransitEncryptionMode != null) { request.TransitEncryptionMode = cmdletContext.TransitEncryptionMode; } if (cmdletContext.UserGroupIdsToAdd != null) { request.UserGroupIdsToAdd = cmdletContext.UserGroupIdsToAdd; } if (cmdletContext.UserGroupIdsToRemove != null) { request.UserGroupIdsToRemove = cmdletContext.UserGroupIdsToRemove; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return output; } public ExecutorContext CreateContext() { return new CmdletContext(); } #endregion #region AWS Service Operation Call private Amazon.ElastiCache.Model.ModifyReplicationGroupResponse CallAWSServiceOperation(IAmazonElastiCache client, Amazon.ElastiCache.Model.ModifyReplicationGroupRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon ElastiCache", "ModifyReplicationGroup"); try { #if DESKTOP return client.ModifyReplicationGroup(request); #elif CORECLR return client.ModifyReplicationGroupAsync(request).GetAwaiter().GetResult(); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } } #endregion internal partial class CmdletContext : ExecutorContext { public System.Boolean? ApplyImmediately { get; set; } public System.String AuthToken { get; set; } public Amazon.ElastiCache.AuthTokenUpdateStrategyType AuthTokenUpdateStrategy { get; set; } public System.Boolean? AutomaticFailoverEnabled { get; set; } public System.Boolean? AutoMinorVersionUpgrade { get; set; } public System.String CacheNodeType { get; set; } public System.String CacheParameterGroupName { get; set; } public List CacheSecurityGroupName { get; set; } public Amazon.ElastiCache.ClusterMode ClusterMode { get; set; } public System.String EngineVersion { get; set; } public Amazon.ElastiCache.IpDiscovery IpDiscovery { get; set; } public List LogDeliveryConfiguration { get; set; } public System.Boolean? MultiAZEnabled { get; set; } [System.ObsoleteAttribute] public System.String NodeGroupId { get; set; } public System.String NotificationTopicArn { get; set; } public System.String NotificationTopicStatus { get; set; } public System.String PreferredMaintenanceWindow { get; set; } public System.String PrimaryClusterId { get; set; } public System.Boolean? RemoveUserGroup { get; set; } public System.String ReplicationGroupDescription { get; set; } public System.String ReplicationGroupId { get; set; } public List SecurityGroupId { get; set; } public System.Int32? SnapshotRetentionLimit { get; set; } public System.String SnapshottingClusterId { get; set; } public System.String SnapshotWindow { get; set; } public System.Boolean? TransitEncryptionEnabled { get; set; } public Amazon.ElastiCache.TransitEncryptionMode TransitEncryptionMode { get; set; } public List UserGroupIdsToAdd { get; set; } public List UserGroupIdsToRemove { get; set; } public System.Func Select { get; set; } = (response, cmdlet) => response.ReplicationGroup; } } }