/* * 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 lakeformation-2017-03-31.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.LakeFormation.Model { /// /// Container for the parameters to the GetTemporaryGlueTableCredentials operation. /// Allows a caller in a secure environment to assume a role with permission to access /// Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated /// with a registered location, for example an Amazon S3 bucket, with a scope down policy /// which restricts the access to a single prefix. /// public partial class GetTemporaryGlueTableCredentialsRequest : AmazonLakeFormationRequest { private AuditContext _auditContext; private int? _durationSeconds; private List _permissions = new List(); private List _supportedPermissionTypes = new List(); private string _tableArn; /// /// Gets and sets the property AuditContext. /// /// A structure representing context to access a resource (column names, query ID, etc). /// /// public AuditContext AuditContext { get { return this._auditContext; } set { this._auditContext = value; } } // Check to see if AuditContext property is set internal bool IsSetAuditContext() { return this._auditContext != null; } /// /// Gets and sets the property DurationSeconds. /// /// The time period, between 900 and 21,600 seconds, for the timeout of the temporary /// credentials. /// /// [AWSProperty(Min=900, Max=43200)] 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; } /// /// Gets and sets the property Permissions. /// /// Filters the request based on the user having been granted a list of specified permissions /// on the requested resource(s). /// /// public List Permissions { get { return this._permissions; } set { this._permissions = value; } } // Check to see if Permissions property is set internal bool IsSetPermissions() { return this._permissions != null && this._permissions.Count > 0; } /// /// Gets and sets the property SupportedPermissionTypes. /// /// A list of supported permission types for the table. Valid values are COLUMN_PERMISSION /// and CELL_FILTER_PERMISSION. /// /// [AWSProperty(Min=1, Max=255)] public List SupportedPermissionTypes { get { return this._supportedPermissionTypes; } set { this._supportedPermissionTypes = value; } } // Check to see if SupportedPermissionTypes property is set internal bool IsSetSupportedPermissionTypes() { return this._supportedPermissionTypes != null && this._supportedPermissionTypes.Count > 0; } /// /// Gets and sets the property TableArn. /// /// The ARN identifying a table in the Data Catalog for the temporary credentials request. /// /// [AWSProperty(Required=true)] public string TableArn { get { return this._tableArn; } set { this._tableArn = value; } } // Check to see if TableArn property is set internal bool IsSetTableArn() { return this._tableArn != null; } } }