/*
* 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 quicksight-2018-04-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.QuickSight.Model
{
///
/// Container for the parameters to the GetSessionEmbedUrl operation.
/// Generates a session URL and authorization code that you can use to embed the Amazon
/// Amazon QuickSight console in your web server code. Use GetSessionEmbedUrl
/// where you want to provide an authoring portal that allows users to create data sources,
/// datasets, analyses, and dashboards. The users who access an embedded Amazon QuickSight
/// console need belong to the author or admin security cohort. If you want to restrict
/// permissions to some of these features, add a custom permissions profile to the user
/// with the UpdateUser
///
API operation. Use RegisterUser
///
API operation to add a new user with a custom permission profile attached.
/// For more information, see the following sections in the Amazon QuickSight User
/// Guide:
///
///
///
public partial class GetSessionEmbedUrlRequest : AmazonQuickSightRequest
{
private string _awsAccountId;
private string _entryPoint;
private long? _sessionLifetimeInMinutes;
private string _userArn;
///
/// Gets and sets the property AwsAccountId.
///
/// The ID for the Amazon Web Services account associated with your Amazon QuickSight
/// subscription.
///
///
[AWSProperty(Required=true, Min=12, Max=12)]
public string AwsAccountId
{
get { return this._awsAccountId; }
set { this._awsAccountId = value; }
}
// Check to see if AwsAccountId property is set
internal bool IsSetAwsAccountId()
{
return this._awsAccountId != null;
}
///
/// Gets and sets the property EntryPoint.
///
/// The URL you use to access the embedded session. The entry point URL is constrained
/// to the following paths:
///
/// -
///
///
/start
///
/// -
///
///
/start/analyses
///
/// -
///
///
/start/dashboards
///
/// -
///
///
/start/favorites
///
/// -
///
///
/dashboards/DashboardId
- where DashboardId
is
/// the actual ID key from the Amazon QuickSight console URL of the dashboard
///
/// -
///
///
/analyses/AnalysisId
- where AnalysisId
is the
/// actual ID key from the Amazon QuickSight console URL of the analysis
///
///
///
[AWSProperty(Min=1, Max=1000)]
public string EntryPoint
{
get { return this._entryPoint; }
set { this._entryPoint = value; }
}
// Check to see if EntryPoint property is set
internal bool IsSetEntryPoint()
{
return this._entryPoint != null;
}
///
/// Gets and sets the property SessionLifetimeInMinutes.
///
/// How many minutes the session is valid. The session lifetime must be 15-600 minutes.
///
///
[AWSProperty(Min=15, Max=600)]
public long SessionLifetimeInMinutes
{
get { return this._sessionLifetimeInMinutes.GetValueOrDefault(); }
set { this._sessionLifetimeInMinutes = value; }
}
// Check to see if SessionLifetimeInMinutes property is set
internal bool IsSetSessionLifetimeInMinutes()
{
return this._sessionLifetimeInMinutes.HasValue;
}
///
/// Gets and sets the property UserArn.
///
/// The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT
/// identity type. You can use this for any type of Amazon QuickSight users in your account
/// (readers, authors, or admins). They need to be authenticated as one of the following:
///
/// -
///
/// Active Directory (AD) users or group members
///
///
-
///
/// Invited nonfederated users
///
///
-
///
/// IAM users and IAM role-based sessions authenticated through Federated Single Sign-On
/// using SAML, OpenID Connect, or IAM federation
///
///
///
/// Omit this parameter for users in the third group, IAM users and IAM role-based sessions.
///
///
public string UserArn
{
get { return this._userArn; }
set { this._userArn = value; }
}
// Check to see if UserArn property is set
internal bool IsSetUserArn()
{
return this._userArn != null;
}
}
}