/* * 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 redshift-2012-12-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.Redshift.Model { /// /// Container for the parameters to the GetClusterCredentialsWithIAM operation. /// Returns a database user name and temporary password with temporary authorization to /// log in to an Amazon Redshift database. The database user is mapped 1:1 to the source /// Identity and Access Management (IAM) identity. For more information about IAM identities, /// see IAM Identities /// (users, user groups, and roles) in the Amazon Web Services Identity and Access /// Management User Guide. /// /// /// /// The Identity and Access Management (IAM) identity that runs this operation must have /// an IAM policy attached that allows access to all necessary actions and resources. /// For more information about permissions, see Using /// identity-based policies (IAM policies) in the Amazon Redshift Cluster Management /// Guide. /// /// public partial class GetClusterCredentialsWithIAMRequest : AmazonRedshiftRequest { private string _clusterIdentifier; private string _customDomainName; private string _dbName; private int? _durationSeconds; /// /// Gets and sets the property ClusterIdentifier. /// /// The unique identifier of the cluster that contains the database for which you are /// requesting credentials. /// /// [AWSProperty(Max=2147483647)] public string ClusterIdentifier { get { return this._clusterIdentifier; } set { this._clusterIdentifier = value; } } // Check to see if ClusterIdentifier property is set internal bool IsSetClusterIdentifier() { return this._clusterIdentifier != null; } /// /// Gets and sets the property CustomDomainName. /// /// The custom domain name for the IAM message cluster credentials. /// /// [AWSProperty(Max=2147483647)] public string CustomDomainName { get { return this._customDomainName; } set { this._customDomainName = value; } } // Check to see if CustomDomainName property is set internal bool IsSetCustomDomainName() { return this._customDomainName != null; } /// /// Gets and sets the property DbName. /// /// The name of the database for which you are requesting credentials. If the database /// name is specified, the IAM policy must allow access to the resource dbname /// for the specified database name. If the database name is not specified, access to /// all databases is allowed. /// /// [AWSProperty(Max=2147483647)] public string DbName { get { return this._dbName; } set { this._dbName = value; } } // Check to see if DbName property is set internal bool IsSetDbName() { return this._dbName != null; } /// /// Gets and sets the property DurationSeconds. /// /// The number of seconds until the returned temporary password expires. /// /// /// /// Range: 900-3600. Default: 900. /// /// public int DurationSeconds { get { return this._durationSeconds.GetValueOrDefault(); } set { this._durationSeconds = value; } } // Check to see if DurationSeconds property is set internal bool IsSetDurationSeconds() { return this._durationSeconds.HasValue; } } }