// Generates a session URL and authorization code that you can use to embed an
// Amazon QuickSight read-only dashboard in your web server code. Before you use
// this command, make sure that you have configured the dashboards and permissions.
// Currently, you can use GetDashboardEmbedURL only from the server, not from the
// user's browser. The following rules apply to the combination of URL and
// authorization code:
//
// * They must be used together.
//
// * They can be used one time
// only.
//
// * They are valid for 5 minutes after you run this command.
//
// * The
// resulting user session is valid for 10 hours.
//
// For more information, see
// Embedding Amazon QuickSight
// (https://docs.aws.amazon.com/quicksight/latest/user/embedding-dashboards.html)
// in the Amazon QuickSight User Guide .
Generates a session URL and authorization code that you can use to embed an
Amazon QuickSight read-only dashboard in your web server code. Before you use
this command, make sure that you have configured the dashboards and permissions.
Currently, you can use GetDashboardEmbedURL only from the server, not from the
user's browser. The following rules apply to the combination of URL and
authorization code.

They must be used together.

They can be used one time
only.

They are valid for 5 minutes after you run this command.

The
resulting user session is valid for 10 hours.

For more information, see
Embedding Amazon QuickSight

in the Amazon QuickSight User Guide .
// Generates a session URL and authorization code that you can use to embed an // Amazon QuickSight read - only dashboard in your web server code . Before you use // this command make sure that you have configured the dashboards and permissions . // Currently you can use GetDashboardEmbedURL only from the server not from the // user ' s browser . The following rules apply to the combination of URL and // authorization code : // // * They must be used together . // // * They can be used one time // only . // // * They are valid for 5 minutes after you run this command . // // * The // resulting user session is valid for 10 hours . // // For more information see // Embedding Amazon QuickSight // ( https : // docs . aws . amazon . com / quicksight / latest / user / embedding - dashboards . html ) // in the Amazon QuickSight User Guide .
func (c *Client) GetDashboardEmbedUrl(ctx context.Context, params *GetDashboardEmbedUrlInput, optFns ...func(*Options)) (*GetDashboardEmbedUrlOutput, error) {
	if params == nil {
		params = &GetDashboardEmbedUrlInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetDashboardEmbedUrl", params, optFns, addOperationGetDashboardEmbedUrlMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetDashboardEmbedUrlOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetDashboardEmbedUrl ( ctx context . Context , params * GetDashboardEmbedUrlInput , optFns ... func ( * Options ) ) ( * GetDashboardEmbedUrlOutput , error ) { if params == nil { params = & GetDashboardEmbedUrlInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetDashboardEmbedUrlMiddlewares ) if err != nil { return nil , err } out := result . ( * GetDashboardEmbedUrlOutput ) out . ResultMetadata = metadata return out , nil }
Generates a session URL and authorization code that you can use to embed an
Amazon QuickSight read-only dashboard in your web server code.
Generates a session URL and authorization code that you can use to embed an Amazon QuickSight read - only dashboard in your web server code .