ConnectorAuthorizationCodePropertiesProperty Struct
OAuth2 authorization code configuration.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const connectorAuthorizationCodePropertiesProperty: glue.CfnConnectionType.ConnectorAuthorizationCodePropertiesProperty = {
authorizationCode: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
authorizationCodeUrl: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
clientId: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
clientSecret: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
contentType: 'contentType',
prompt: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
redirectUri: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
requestMethod: 'requestMethod',
scope: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
tokenUrl: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
tokenUrlParameters: [{
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
}],
};
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_glue as glue
connector_authorization_code_properties_property = glue.CfnConnectionType.ConnectorAuthorizationCodePropertiesProperty(
authorization_code=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
authorization_code_url=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
client_id=glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
),
client_secret=glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
),
content_type="contentType",
prompt=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
redirect_uri=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
request_method="requestMethod",
scope=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
token_url=glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
),
token_url_parameters=[glue.CfnConnectionType.ConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
allowed_values=["allowedValues"],
default_value="defaultValue",
key_override="keyOverride",
property_location="propertyLocation"
)]
)
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.glue.*;
ConnectorAuthorizationCodePropertiesProperty connectorAuthorizationCodePropertiesProperty = ConnectorAuthorizationCodePropertiesProperty.builder()
.authorizationCode(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.authorizationCodeUrl(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.clientId(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.clientSecret(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.contentType("contentType")
.prompt(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.redirectUri(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.requestMethod("requestMethod")
.scope(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.tokenUrl(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.tokenUrlParameters(List.of(ConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.allowedValues(List.of("allowedValues"))
.defaultValue("defaultValue")
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build()))
.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.Glue;
var connectorAuthorizationCodePropertiesProperty = new ConnectorAuthorizationCodePropertiesProperty {
AuthorizationCode = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
AuthorizationCodeUrl = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
ClientId = new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
ClientSecret = new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
ContentType = "contentType",
Prompt = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
RedirectUri = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
RequestMethod = "requestMethod",
Scope = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
TokenUrl = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
TokenUrlParameters = new [] { new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
} }
};
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"
connectorAuthorizationCodePropertiesProperty := &ConnectorAuthorizationCodePropertiesProperty{
AuthorizationCode: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
AuthorizationCodeUrl: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
ClientId: &SecretConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
ClientSecret: &SecretConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
ContentType: jsii.String("contentType"),
Prompt: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
RedirectUri: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
RequestMethod: jsii.String("requestMethod"),
Scope: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
TokenUrl: &ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
TokenUrlParameters: []interface{}{
&ConnectorPropertyProperty{
Name: jsii.String("name"),
PropertyType: jsii.String("propertyType"),
Required: jsii.Boolean(false),
// the properties below are optional
AllowedValues: []*string{
jsii.String("allowedValues"),
},
DefaultValue: jsii.String("defaultValue"),
KeyOverride: jsii.String("keyOverride"),
PropertyLocation: jsii.String("propertyLocation"),
},
},
}
Properties
authorizationCodeoptionalIResolvable | CfnConnectionType.authorization_codeoptionaltyping.Union[IResolvable, ConnectorPropertyProperty]authorizationCodeoptionalIResolvableAuthorizationCodeoptionalIResolvableAuthorizationCodeoptionalinterface{} #Defines a property configuration for connection types.
authorizationCodeUrloptionalIResolvable | CfnConnectionType.authorization_code_urloptionaltyping.Union[IResolvable, ConnectorPropertyProperty]authorizationCodeUrloptionalIResolvableAuthorizationCodeUrloptionalIResolvableAuthorizationCodeUrloptionalinterface{} #Defines a property configuration for connection types.
clientIdoptionalIResolvable | CfnConnectionType.client_idoptionaltyping.Union[IResolvable, SecretConnectorPropertyProperty]clientIdoptionalIResolvableClientIdoptionalIResolvableClientIdoptionalinterface{} #Defines a secret property configuration.
SECRET-type properties cannot have DefaultValue or AllowedValues.
clientSecretoptionalIResolvable | CfnConnectionType.client_secretoptionaltyping.Union[IResolvable, SecretConnectorPropertyProperty]clientSecretoptionalIResolvableClientSecretoptionalIResolvableClientSecretoptionalinterface{} #Defines a secret property configuration.
SECRET-type properties cannot have DefaultValue or AllowedValues.
contentTypeoptionalstringcontent_typeoptionalstrcontentTypeoptionalStringContentTypeoptionalstringContentTypeoptional*string #promptoptionalIResolvable | CfnConnectionType.promptoptionaltyping.Union[IResolvable, ConnectorPropertyProperty]promptoptionalIResolvablePromptoptionalIResolvablePromptoptionalinterface{} #Defines a property configuration for connection types.
redirectUrioptionalIResolvable | CfnConnectionType.redirect_urioptionaltyping.Union[IResolvable, ConnectorPropertyProperty]redirectUrioptionalIResolvableRedirectUrioptionalIResolvableRedirectUrioptionalinterface{} #Defines a property configuration for connection types.
requestMethodoptionalstringrequest_methodoptionalstrrequestMethodoptionalStringRequestMethodoptionalstringRequestMethodoptional*string #scopeoptionalIResolvable | CfnConnectionType.scopeoptionaltyping.Union[IResolvable, ConnectorPropertyProperty]scopeoptionalIResolvableScopeoptionalIResolvableScopeoptionalinterface{} #Defines a property configuration for connection types.
tokenUrloptionalIResolvable | CfnConnectionType.token_urloptionaltyping.Union[IResolvable, ConnectorPropertyProperty]tokenUrloptionalIResolvableTokenUrloptionalIResolvableTokenUrloptionalinterface{} #Defines a property configuration for connection types.
tokenUrlParametersoptionalIResolvable | IResolvable | CfnConnectionType.token_url_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConnectorPropertyProperty]]]tokenUrlParametersoptionalIResolvableTokenUrlParametersoptionalIResolvableTokenUrlParametersoptionalinterface{} #