/* * 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 iotsecuretunneling-2018-10-05.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.IoTSecureTunneling.Model { /// /// Container for the parameters to the RotateTunnelAccessToken operation. /// Revokes the current client access token (CAT) and returns new CAT for clients to use /// when reconnecting to secure tunneling to access the same tunnel. /// /// /// /// Requires permission to access the RotateTunnelAccessToken /// action. /// /// /// /// Rotating the CAT doesn't extend the tunnel duration. For example, say the tunnel duration /// is 12 hours and the tunnel has already been open for 4 hours. When you rotate the /// access tokens, the new tokens that are generated can only be used for the remaining /// 8 hours. /// /// /// public partial class RotateTunnelAccessTokenRequest : AmazonIoTSecureTunnelingRequest { private ClientMode _clientMode; private DestinationConfig _destinationConfig; private string _tunnelId; /// /// Gets and sets the property ClientMode. /// /// The mode of the client that will use the client token, which can be either the source /// or destination, or both source and destination. /// /// [AWSProperty(Required=true)] public ClientMode ClientMode { get { return this._clientMode; } set { this._clientMode = value; } } // Check to see if ClientMode property is set internal bool IsSetClientMode() { return this._clientMode != null; } /// /// Gets and sets the property DestinationConfig. /// public DestinationConfig DestinationConfig { get { return this._destinationConfig; } set { this._destinationConfig = value; } } // Check to see if DestinationConfig property is set internal bool IsSetDestinationConfig() { return this._destinationConfig != null; } /// /// Gets and sets the property TunnelId. /// /// The tunnel for which you want to rotate the access tokens. /// /// [AWSProperty(Required=true)] public string TunnelId { get { return this._tunnelId; } set { this._tunnelId = value; } } // Check to see if TunnelId property is set internal bool IsSetTunnelId() { return this._tunnelId != null; } } }