/*
* 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 emr-containers-2020-10-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.EMRContainers.Model
{
///
/// Container for the parameters to the GetManagedEndpointSessionCredentials operation.
/// Generate a session token to connect to a managed endpoint.
///
public partial class GetManagedEndpointSessionCredentialsRequest : AmazonEMRContainersRequest
{
private string _clientToken;
private string _credentialType;
private int? _durationInSeconds;
private string _endpointIdentifier;
private string _executionRoleArn;
private string _logContext;
private string _virtualClusterIdentifier;
///
/// Gets and sets the property ClientToken.
///
/// The client idempotency token of the job run request.
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property CredentialType.
///
/// Type of the token requested. Currently supported and default value of this field is
/// “TOKEN.”
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string CredentialType
{
get { return this._credentialType; }
set { this._credentialType = value; }
}
// Check to see if CredentialType property is set
internal bool IsSetCredentialType()
{
return this._credentialType != null;
}
///
/// Gets and sets the property DurationInSeconds.
///
/// Duration in seconds for which the session token is valid. The default duration is
/// 15 minutes and the maximum is 12 hours.
///
///
public int DurationInSeconds
{
get { return this._durationInSeconds.GetValueOrDefault(); }
set { this._durationInSeconds = value; }
}
// Check to see if DurationInSeconds property is set
internal bool IsSetDurationInSeconds()
{
return this._durationInSeconds.HasValue;
}
///
/// Gets and sets the property EndpointIdentifier.
///
/// The ARN of the managed endpoint for which the request is submitted.
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string EndpointIdentifier
{
get { return this._endpointIdentifier; }
set { this._endpointIdentifier = value; }
}
// Check to see if EndpointIdentifier property is set
internal bool IsSetEndpointIdentifier()
{
return this._endpointIdentifier != null;
}
///
/// Gets and sets the property ExecutionRoleArn.
///
/// The IAM Execution Role ARN that will be used by the job run.
///
///
[AWSProperty(Required=true, Min=20, Max=2048)]
public string ExecutionRoleArn
{
get { return this._executionRoleArn; }
set { this._executionRoleArn = value; }
}
// Check to see if ExecutionRoleArn property is set
internal bool IsSetExecutionRoleArn()
{
return this._executionRoleArn != null;
}
///
/// Gets and sets the property LogContext.
///
/// String identifier used to separate sections of the execution logs uploaded to S3.
///
///
[AWSProperty(Min=3, Max=63)]
public string LogContext
{
get { return this._logContext; }
set { this._logContext = value; }
}
// Check to see if LogContext property is set
internal bool IsSetLogContext()
{
return this._logContext != null;
}
///
/// Gets and sets the property VirtualClusterIdentifier.
///
/// The ARN of the Virtual Cluster which the Managed Endpoint belongs to.
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string VirtualClusterIdentifier
{
get { return this._virtualClusterIdentifier; }
set { this._virtualClusterIdentifier = value; }
}
// Check to see if VirtualClusterIdentifier property is set
internal bool IsSetVirtualClusterIdentifier()
{
return this._virtualClusterIdentifier != null;
}
}
}