Skip to content
v2.278.0

OAuth2PropertiesProperty ​

Struct External

The OAuth2 properties.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datazone as datazone } from 'aws-cdk-lib';
const oAuth2PropertiesProperty: datazone.CfnConnection.OAuth2PropertiesProperty = {
  authorizationCodeProperties: {
    authorizationCode: 'authorizationCode',
    redirectUri: 'redirectUri',
  },
  oAuth2ClientApplication: {
    awsManagedClientApplicationReference: 'awsManagedClientApplicationReference',
    userManagedClientApplicationClientId: 'userManagedClientApplicationClientId',
  },
  oAuth2Credentials: {
    accessToken: 'accessToken',
    jwtToken: 'jwtToken',
    refreshToken: 'refreshToken',
    userManagedClientApplicationClientSecret: 'userManagedClientApplicationClientSecret',
  },
  oAuth2GrantType: 'oAuth2GrantType',
  tokenUrl: 'tokenUrl',
  tokenUrlParametersMap: {
    tokenUrlParametersMapKey: 'tokenUrlParametersMap',
  },
};
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_datazone as datazone

o_auth2_properties_property = datazone.CfnConnection.OAuth2PropertiesProperty(
    authorization_code_properties=datazone.CfnConnection.AuthorizationCodePropertiesProperty(
        authorization_code="authorizationCode",
        redirect_uri="redirectUri"
    ),
    o_auth2_client_application=datazone.CfnConnection.OAuth2ClientApplicationProperty(
        aws_managed_client_application_reference="awsManagedClientApplicationReference",
        user_managed_client_application_client_id="userManagedClientApplicationClientId"
    ),
    o_auth2_credentials=datazone.CfnConnection.GlueOAuth2CredentialsProperty(
        access_token="accessToken",
        jwt_token="jwtToken",
        refresh_token="refreshToken",
        user_managed_client_application_client_secret="userManagedClientApplicationClientSecret"
    ),
    o_auth2_grant_type="oAuth2GrantType",
    token_url="tokenUrl",
    token_url_parameters_map={
        "token_url_parameters_map_key": "tokenUrlParametersMap"
    }
)
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.datazone.*;

OAuth2PropertiesProperty oAuth2PropertiesProperty = OAuth2PropertiesProperty.builder()
        .authorizationCodeProperties(AuthorizationCodePropertiesProperty.builder()
                .authorizationCode("authorizationCode")
                .redirectUri("redirectUri")
                .build())
        .oAuth2ClientApplication(OAuth2ClientApplicationProperty.builder()
                .awsManagedClientApplicationReference("awsManagedClientApplicationReference")
                .userManagedClientApplicationClientId("userManagedClientApplicationClientId")
                .build())
        .oAuth2Credentials(GlueOAuth2CredentialsProperty.builder()
                .accessToken("accessToken")
                .jwtToken("jwtToken")
                .refreshToken("refreshToken")
                .userManagedClientApplicationClientSecret("userManagedClientApplicationClientSecret")
                .build())
        .oAuth2GrantType("oAuth2GrantType")
        .tokenUrl("tokenUrl")
        .tokenUrlParametersMap(Map.of(
                "tokenUrlParametersMapKey", "tokenUrlParametersMap"))
        .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.DataZone;

var oAuth2PropertiesProperty = new OAuth2PropertiesProperty {
    AuthorizationCodeProperties = new AuthorizationCodePropertiesProperty {
        AuthorizationCode = "authorizationCode",
        RedirectUri = "redirectUri"
    },
    OAuth2ClientApplication = new OAuth2ClientApplicationProperty {
        AwsManagedClientApplicationReference = "awsManagedClientApplicationReference",
        UserManagedClientApplicationClientId = "userManagedClientApplicationClientId"
    },
    OAuth2Credentials = new GlueOAuth2CredentialsProperty {
        AccessToken = "accessToken",
        JwtToken = "jwtToken",
        RefreshToken = "refreshToken",
        UserManagedClientApplicationClientSecret = "userManagedClientApplicationClientSecret"
    },
    OAuth2GrantType = "oAuth2GrantType",
    TokenUrl = "tokenUrl",
    TokenUrlParametersMap = new Dictionary<string, string> {
        { "tokenUrlParametersMapKey", "tokenUrlParametersMap" }
    }
};
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"

oAuth2PropertiesProperty := &OAuth2PropertiesProperty{
	AuthorizationCodeProperties: &AuthorizationCodePropertiesProperty{
		AuthorizationCode: jsii.String("authorizationCode"),
		RedirectUri: jsii.String("redirectUri"),
	},
	OAuth2ClientApplication: &OAuth2ClientApplicationProperty{
		AwsManagedClientApplicationReference: jsii.String("awsManagedClientApplicationReference"),
		UserManagedClientApplicationClientId: jsii.String("userManagedClientApplicationClientId"),
	},
	OAuth2Credentials: &GlueOAuth2CredentialsProperty{
		AccessToken: jsii.String("accessToken"),
		JwtToken: jsii.String("jwtToken"),
		RefreshToken: jsii.String("refreshToken"),
		UserManagedClientApplicationClientSecret: jsii.String("userManagedClientApplicationClientSecret"),
	},
	OAuth2GrantType: jsii.String("oAuth2GrantType"),
	TokenUrl: jsii.String("tokenUrl"),
	TokenUrlParametersMap: map[string]*string{
		"tokenUrlParametersMapKey": jsii.String("tokenUrlParametersMap"),
	},
}

Properties ​

authorizationCodePropertiesoptionalIResolvable | CfnConnection.AuthorizationCodePropertiesPropertyauthorization_code_propertiesoptionaltyping.Union[IResolvable, AuthorizationCodePropertiesProperty]authorizationCodePropertiesoptionalIResolvableAuthorizationCodePropertiesoptionalIResolvableAuthorizationCodePropertiesoptionalinterface{} #
The authorization code properties of the OAuth2 properties.
oAuth2ClientApplicationoptionalIResolvable | CfnConnection.OAuth2ClientApplicationPropertyo_auth2_client_applicationoptionaltyping.Union[IResolvable, OAuth2ClientApplicationProperty]oAuth2ClientApplicationoptionalIResolvableOAuth2ClientApplicationoptionalIResolvableOAuth2ClientApplicationoptionalinterface{} #
The OAuth2 client application of the OAuth2 properties.
oAuth2CredentialsoptionalIResolvable | CfnConnection.GlueOAuth2CredentialsPropertyo_auth2_credentialsoptionaltyping.Union[IResolvable, GlueOAuth2CredentialsProperty]oAuth2CredentialsoptionalIResolvableOAuth2CredentialsoptionalIResolvableOAuth2Credentialsoptionalinterface{} #
The OAuth2 credentials of the OAuth2 properties.
oAuth2GrantTypeoptionalstringo_auth2_grant_typeoptionalstroAuth2GrantTypeoptionalStringOAuth2GrantTypeoptionalstringOAuth2GrantTypeoptional*string #
The OAuth2 grant type of the OAuth2 properties.
tokenUrloptionalstringtoken_urloptionalstrtokenUrloptionalStringTokenUrloptionalstringTokenUrloptional*string #
The OAuth2 token URL of the OAuth2 properties.
tokenUrlParametersMapoptionalIResolvable | { [key: string]: string }token_url_parameters_mapoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]tokenUrlParametersMapoptionalIResolvableTokenUrlParametersMapoptionalIResolvableTokenUrlParametersMapoptionalinterface{} #
The OAuth2 token URL parameter map of the OAuth2 properties.