Skip to content
v2.278.0

OAuthParametersProperty Struct ​

An object that contains information needed to create a data source connection that uses OAuth client credentials.

This option is available for data source connections that are made with Snowflake and Starburst.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const oAuthParametersProperty: quicksight.CfnDataSource.OAuthParametersProperty = {
  tokenProviderUrl: 'tokenProviderUrl',

  // the properties below are optional
  identityProviderResourceUri: 'identityProviderResourceUri',
  identityProviderVpcConnectionProperties: {
    vpcConnectionArn: 'vpcConnectionArn',
  },
  oAuthScope: 'oAuthScope',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

o_auth_parameters_property = quicksight.CfnDataSource.OAuthParametersProperty(
    token_provider_url="tokenProviderUrl",

    # the properties below are optional
    identity_provider_resource_uri="identityProviderResourceUri",
    identity_provider_vpc_connection_properties=quicksight.CfnDataSource.VpcConnectionPropertiesProperty(
        vpc_connection_arn="vpcConnectionArn"
    ),
    o_auth_scope="oAuthScope"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

OAuthParametersProperty oAuthParametersProperty = OAuthParametersProperty.builder()
        .tokenProviderUrl("tokenProviderUrl")

        // the properties below are optional
        .identityProviderResourceUri("identityProviderResourceUri")
        .identityProviderVpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
                .vpcConnectionArn("vpcConnectionArn")
                .build())
        .oAuthScope("oAuthScope")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var oAuthParametersProperty = new OAuthParametersProperty {
    TokenProviderUrl = "tokenProviderUrl",

    // the properties below are optional
    IdentityProviderResourceUri = "identityProviderResourceUri",
    IdentityProviderVpcConnectionProperties = new VpcConnectionPropertiesProperty {
        VpcConnectionArn = "vpcConnectionArn"
    },
    OAuthScope = "oAuthScope"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

oAuthParametersProperty := &OAuthParametersProperty{
	TokenProviderUrl: jsii.String("tokenProviderUrl"),

	// the properties below are optional
	IdentityProviderResourceUri: jsii.String("identityProviderResourceUri"),
	IdentityProviderVpcConnectionProperties: &VpcConnectionPropertiesProperty{
		VpcConnectionArn: jsii.String("vpcConnectionArn"),
	},
	OAuthScope: jsii.String("oAuthScope"),
}

Properties ​

identityProviderResourceUrioptionalstringidentity_provider_resource_urioptionalstridentityProviderResourceUrioptionalStringIdentityProviderResourceUrioptionalstringIdentityProviderResourceUrioptional*string #
The resource uri of the identity provider.
identityProviderVpcConnectionPropertiesoptionalIResolvable | CfnDataSource.VpcConnectionPropertiesPropertyidentity_provider_vpc_connection_propertiesoptionaltyping.Union[IResolvable, VpcConnectionPropertiesProperty]identityProviderVpcConnectionPropertiesoptionalIResolvableIdentityProviderVpcConnectionPropertiesoptionalIResolvableIdentityProviderVpcConnectionPropertiesoptionalinterface{} #
<p>VPC connection properties.</p>.
oAuthScopeoptionalstringo_auth_scopeoptionalstroAuthScopeoptionalStringOAuthScopeoptionalstringOAuthScopeoptional*string #
The OAuth scope.
tokenProviderUrlstringtoken_provider_urlstrtokenProviderUrlStringTokenProviderUrlstringTokenProviderUrl*string required #
The token endpoint URL of the identity provider.