CfnConnectionType L1 construct
Registers a custom connection type in Glue based on the configuration provided.
This enables customers to configure custom connectors for any data source with REST-based APIs.
Example
// 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 cfnConnectionType = new glue.CfnConnectionType(this, 'MyCfnConnectionType', {
connectionType: 'connectionType',
restConfiguration: {
entityConfigurations: {
entityConfigurationsKey: {
schema: {
schemaKey: {
fieldDataType: 'fieldDataType',
name: 'name',
// the properties below are optional
filterOverrides: {
betweenConfiguration: {
highBoundKey: 'highBoundKey',
lowBoundKey: 'lowBoundKey',
template: 'template',
},
dateTimeFormat: 'dateTimeFormat',
fieldName: 'fieldName',
operatorMappings: {
operatorMappingsKey: 'operatorMappings',
},
},
isNullable: false,
isOrderable: false,
isPartitionable: false,
isQueryable: false,
responseDateFormat: 'responseDateFormat',
},
},
sourceConfiguration: {
filterConfiguration: {
filterMode: 'filterMode',
// the properties below are optional
betweenConfiguration: {
highBoundKey: 'highBoundKey',
lowBoundKey: 'lowBoundKey',
template: 'template',
},
dateTimeFormat: 'dateTimeFormat',
filterStringConfiguration: {
queryParameterName: 'queryParameterName',
// the properties below are optional
quoteCharacter: 'quoteCharacter',
quoteStringValues: false,
},
operatorMappings: {
operatorMappingsKey: 'operatorMappings',
},
stripQuotes: false,
},
paginationConfiguration: {
cursorConfiguration: {
nextPage: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
// the properties below are optional
limitParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
},
offsetConfiguration: {
limitParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
offsetParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
},
},
requestMethod: 'requestMethod',
requestParameters: [{
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
}],
requestPath: 'requestPath',
responseConfiguration: {
resultPath: 'resultPath',
// the properties below are optional
errorPath: 'errorPath',
},
},
},
},
globalSourceConfiguration: {
filterConfiguration: {
filterMode: 'filterMode',
// the properties below are optional
betweenConfiguration: {
highBoundKey: 'highBoundKey',
lowBoundKey: 'lowBoundKey',
template: 'template',
},
dateTimeFormat: 'dateTimeFormat',
filterStringConfiguration: {
queryParameterName: 'queryParameterName',
// the properties below are optional
quoteCharacter: 'quoteCharacter',
quoteStringValues: false,
},
operatorMappings: {
operatorMappingsKey: 'operatorMappings',
},
stripQuotes: false,
},
paginationConfiguration: {
cursorConfiguration: {
nextPage: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
// the properties below are optional
limitParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
},
offsetConfiguration: {
limitParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
offsetParameter: {
defaultValue: 'defaultValue',
key: 'key',
propertyLocation: 'propertyLocation',
value: {
contentPath: 'contentPath',
headerKey: 'headerKey',
},
},
},
},
requestMethod: 'requestMethod',
requestParameters: [{
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
}],
requestPath: 'requestPath',
responseConfiguration: {
resultPath: 'resultPath',
// the properties below are optional
errorPath: 'errorPath',
},
},
validationEndpointConfiguration: {
requestMethod: 'requestMethod',
requestPath: 'requestPath',
},
},
// the properties below are optional
connectionProperties: {
additionalRequestParameters: [{
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
}],
url: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
allowedValues: ['allowedValues'],
defaultValue: 'defaultValue',
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
},
connectorAuthenticationConfiguration: {
authenticationTypes: ['authenticationTypes'],
// the properties below are optional
basicAuthenticationProperties: {
password: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
username: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
},
customAuthenticationProperties: {
authenticationParameters: [{
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
}],
},
oAuth2Properties: {
oAuth2GrantType: 'oAuth2GrantType',
// the properties below are optional
authorizationCodeProperties: {
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',
}],
},
clientCredentialsProperties: {
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',
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',
}],
},
jwtBearerProperties: {
contentType: 'contentType',
jwtToken: {
name: 'name',
propertyType: 'propertyType',
required: false,
// the properties below are optional
keyOverride: 'keyOverride',
propertyLocation: 'propertyLocation',
},
requestMethod: 'requestMethod',
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',
}],
},
},
},
description: 'description',
integrationType: 'integrationType',
tags: [{
key: 'key',
value: 'value',
}],
});
from aws_cdk import CfnTag
# 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
cfn_connection_type = glue.CfnConnectionType(self, "MyCfnConnectionType",
connection_type="connectionType",
rest_configuration=glue.CfnConnectionType.RestConfigurationProperty(
entity_configurations={
"entity_configurations_key": glue.CfnConnectionType.EntityConfigurationProperty(
schema={
"schema_key": glue.CfnConnectionType.FieldDefinitionProperty(
field_data_type="fieldDataType",
name="name",
# the properties below are optional
filter_overrides=glue.CfnConnectionType.FilterOverridesProperty(
between_configuration=glue.CfnConnectionType.BetweenConfigurationProperty(
high_bound_key="highBoundKey",
low_bound_key="lowBoundKey",
template="template"
),
date_time_format="dateTimeFormat",
field_name="fieldName",
operator_mappings={
"operator_mappings_key": "operatorMappings"
}
),
is_nullable=False,
is_orderable=False,
is_partitionable=False,
is_queryable=False,
response_date_format="responseDateFormat"
)
},
source_configuration=glue.CfnConnectionType.SourceConfigurationProperty(
filter_configuration=glue.CfnConnectionType.FilterConfigurationProperty(
filter_mode="filterMode",
# the properties below are optional
between_configuration=glue.CfnConnectionType.BetweenConfigurationProperty(
high_bound_key="highBoundKey",
low_bound_key="lowBoundKey",
template="template"
),
date_time_format="dateTimeFormat",
filter_string_configuration=glue.CfnConnectionType.FilterStringConfigurationProperty(
query_parameter_name="queryParameterName",
# the properties below are optional
quote_character="quoteCharacter",
quote_string_values=False
),
operator_mappings={
"operator_mappings_key": "operatorMappings"
},
strip_quotes=False
),
pagination_configuration=glue.CfnConnectionType.PaginationConfigurationProperty(
cursor_configuration=glue.CfnConnectionType.CursorConfigurationProperty(
next_page=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
),
# the properties below are optional
limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
)
),
offset_configuration=glue.CfnConnectionType.OffsetConfigurationProperty(
limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
),
offset_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
)
)
),
request_method="requestMethod",
request_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"
)],
request_path="requestPath",
response_configuration=glue.CfnConnectionType.ResponseConfigurationProperty(
result_path="resultPath",
# the properties below are optional
error_path="errorPath"
)
)
)
},
global_source_configuration=glue.CfnConnectionType.SourceConfigurationProperty(
filter_configuration=glue.CfnConnectionType.FilterConfigurationProperty(
filter_mode="filterMode",
# the properties below are optional
between_configuration=glue.CfnConnectionType.BetweenConfigurationProperty(
high_bound_key="highBoundKey",
low_bound_key="lowBoundKey",
template="template"
),
date_time_format="dateTimeFormat",
filter_string_configuration=glue.CfnConnectionType.FilterStringConfigurationProperty(
query_parameter_name="queryParameterName",
# the properties below are optional
quote_character="quoteCharacter",
quote_string_values=False
),
operator_mappings={
"operator_mappings_key": "operatorMappings"
},
strip_quotes=False
),
pagination_configuration=glue.CfnConnectionType.PaginationConfigurationProperty(
cursor_configuration=glue.CfnConnectionType.CursorConfigurationProperty(
next_page=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
),
# the properties below are optional
limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
)
),
offset_configuration=glue.CfnConnectionType.OffsetConfigurationProperty(
limit_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
),
offset_parameter=glue.CfnConnectionType.ExtractedParameterProperty(
default_value="defaultValue",
key="key",
property_location="propertyLocation",
value=glue.CfnConnectionType.ResponseExtractionMappingProperty(
content_path="contentPath",
header_key="headerKey"
)
)
)
),
request_method="requestMethod",
request_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"
)],
request_path="requestPath",
response_configuration=glue.CfnConnectionType.ResponseConfigurationProperty(
result_path="resultPath",
# the properties below are optional
error_path="errorPath"
)
),
validation_endpoint_configuration=glue.CfnConnectionType.ValidationEndpointConfigurationProperty(
request_method="requestMethod",
request_path="requestPath"
)
),
# the properties below are optional
connection_properties=glue.CfnConnectionType.ConnectionPropertiesConfigurationProperty(
additional_request_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"
)],
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"
)
),
connector_authentication_configuration=glue.CfnConnectionType.ConnectorAuthenticationConfigurationProperty(
authentication_types=["authenticationTypes"],
# the properties below are optional
basic_authentication_properties=glue.CfnConnectionType.BasicAuthenticationPropertiesProperty(
password=glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
),
username=glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
)
),
custom_authentication_properties=glue.CfnConnectionType.CustomAuthenticationPropertiesProperty(
authentication_parameters=[glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
)]
),
o_auth2_properties=glue.CfnConnectionType.ConnectorOAuth2PropertiesProperty(
o_auth2_grant_type="oAuth2GrantType",
# the properties below are optional
authorization_code_properties=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"
)]
),
client_credentials_properties=glue.CfnConnectionType.ClientCredentialsPropertiesProperty(
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",
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"
)]
),
jwt_bearer_properties=glue.CfnConnectionType.JWTBearerPropertiesProperty(
content_type="contentType",
jwt_token=glue.CfnConnectionType.SecretConnectorPropertyProperty(
name="name",
property_type="propertyType",
required=False,
# the properties below are optional
key_override="keyOverride",
property_location="propertyLocation"
),
request_method="requestMethod",
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"
)]
)
)
),
description="description",
integration_type="integrationType",
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnConnectionType cfnConnectionType = CfnConnectionType.Builder.create(this, "MyCfnConnectionType")
.connectionType("connectionType")
.restConfiguration(RestConfigurationProperty.builder()
.entityConfigurations(Map.of(
"entityConfigurationsKey", EntityConfigurationProperty.builder()
.schema(Map.of(
"schemaKey", FieldDefinitionProperty.builder()
.fieldDataType("fieldDataType")
.name("name")
// the properties below are optional
.filterOverrides(FilterOverridesProperty.builder()
.betweenConfiguration(BetweenConfigurationProperty.builder()
.highBoundKey("highBoundKey")
.lowBoundKey("lowBoundKey")
.template("template")
.build())
.dateTimeFormat("dateTimeFormat")
.fieldName("fieldName")
.operatorMappings(Map.of(
"operatorMappingsKey", "operatorMappings"))
.build())
.isNullable(false)
.isOrderable(false)
.isPartitionable(false)
.isQueryable(false)
.responseDateFormat("responseDateFormat")
.build()))
.sourceConfiguration(SourceConfigurationProperty.builder()
.filterConfiguration(FilterConfigurationProperty.builder()
.filterMode("filterMode")
// the properties below are optional
.betweenConfiguration(BetweenConfigurationProperty.builder()
.highBoundKey("highBoundKey")
.lowBoundKey("lowBoundKey")
.template("template")
.build())
.dateTimeFormat("dateTimeFormat")
.filterStringConfiguration(FilterStringConfigurationProperty.builder()
.queryParameterName("queryParameterName")
// the properties below are optional
.quoteCharacter("quoteCharacter")
.quoteStringValues(false)
.build())
.operatorMappings(Map.of(
"operatorMappingsKey", "operatorMappings"))
.stripQuotes(false)
.build())
.paginationConfiguration(PaginationConfigurationProperty.builder()
.cursorConfiguration(CursorConfigurationProperty.builder()
.nextPage(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
// the properties below are optional
.limitParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.build())
.offsetConfiguration(OffsetConfigurationProperty.builder()
.limitParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.offsetParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.build())
.build())
.requestMethod("requestMethod")
.requestParameters(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()))
.requestPath("requestPath")
.responseConfiguration(ResponseConfigurationProperty.builder()
.resultPath("resultPath")
// the properties below are optional
.errorPath("errorPath")
.build())
.build())
.build()))
.globalSourceConfiguration(SourceConfigurationProperty.builder()
.filterConfiguration(FilterConfigurationProperty.builder()
.filterMode("filterMode")
// the properties below are optional
.betweenConfiguration(BetweenConfigurationProperty.builder()
.highBoundKey("highBoundKey")
.lowBoundKey("lowBoundKey")
.template("template")
.build())
.dateTimeFormat("dateTimeFormat")
.filterStringConfiguration(FilterStringConfigurationProperty.builder()
.queryParameterName("queryParameterName")
// the properties below are optional
.quoteCharacter("quoteCharacter")
.quoteStringValues(false)
.build())
.operatorMappings(Map.of(
"operatorMappingsKey", "operatorMappings"))
.stripQuotes(false)
.build())
.paginationConfiguration(PaginationConfigurationProperty.builder()
.cursorConfiguration(CursorConfigurationProperty.builder()
.nextPage(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
// the properties below are optional
.limitParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.build())
.offsetConfiguration(OffsetConfigurationProperty.builder()
.limitParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.offsetParameter(ExtractedParameterProperty.builder()
.defaultValue("defaultValue")
.key("key")
.propertyLocation("propertyLocation")
.value(ResponseExtractionMappingProperty.builder()
.contentPath("contentPath")
.headerKey("headerKey")
.build())
.build())
.build())
.build())
.requestMethod("requestMethod")
.requestParameters(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()))
.requestPath("requestPath")
.responseConfiguration(ResponseConfigurationProperty.builder()
.resultPath("resultPath")
// the properties below are optional
.errorPath("errorPath")
.build())
.build())
.validationEndpointConfiguration(ValidationEndpointConfigurationProperty.builder()
.requestMethod("requestMethod")
.requestPath("requestPath")
.build())
.build())
// the properties below are optional
.connectionProperties(ConnectionPropertiesConfigurationProperty.builder()
.additionalRequestParameters(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()))
.url(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())
.connectorAuthenticationConfiguration(ConnectorAuthenticationConfigurationProperty.builder()
.authenticationTypes(List.of("authenticationTypes"))
// the properties below are optional
.basicAuthenticationProperties(BasicAuthenticationPropertiesProperty.builder()
.password(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.username(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.build())
.customAuthenticationProperties(CustomAuthenticationPropertiesProperty.builder()
.authenticationParameters(List.of(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build()))
.build())
.oAuth2Properties(ConnectorOAuth2PropertiesProperty.builder()
.oAuth2GrantType("oAuth2GrantType")
// the properties below are optional
.authorizationCodeProperties(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())
.clientCredentialsProperties(ClientCredentialsPropertiesProperty.builder()
.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")
.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())
.jwtBearerProperties(JWTBearerPropertiesProperty.builder()
.contentType("contentType")
.jwtToken(SecretConnectorPropertyProperty.builder()
.name("name")
.propertyType("propertyType")
.required(false)
// the properties below are optional
.keyOverride("keyOverride")
.propertyLocation("propertyLocation")
.build())
.requestMethod("requestMethod")
.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())
.build())
.build())
.description("description")
.integrationType("integrationType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// 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 cfnConnectionType = new CfnConnectionType(this, "MyCfnConnectionType", new CfnConnectionTypeProps {
ConnectionType = "connectionType",
RestConfiguration = new RestConfigurationProperty {
EntityConfigurations = new Dictionary<string, object> {
{ "entityConfigurationsKey", new EntityConfigurationProperty {
Schema = new Dictionary<string, object> {
{ "schemaKey", new FieldDefinitionProperty {
FieldDataType = "fieldDataType",
Name = "name",
// the properties below are optional
FilterOverrides = new FilterOverridesProperty {
BetweenConfiguration = new BetweenConfigurationProperty {
HighBoundKey = "highBoundKey",
LowBoundKey = "lowBoundKey",
Template = "template"
},
DateTimeFormat = "dateTimeFormat",
FieldName = "fieldName",
OperatorMappings = new Dictionary<string, string> {
{ "operatorMappingsKey", "operatorMappings" }
}
},
IsNullable = false,
IsOrderable = false,
IsPartitionable = false,
IsQueryable = false,
ResponseDateFormat = "responseDateFormat"
} }
},
SourceConfiguration = new SourceConfigurationProperty {
FilterConfiguration = new FilterConfigurationProperty {
FilterMode = "filterMode",
// the properties below are optional
BetweenConfiguration = new BetweenConfigurationProperty {
HighBoundKey = "highBoundKey",
LowBoundKey = "lowBoundKey",
Template = "template"
},
DateTimeFormat = "dateTimeFormat",
FilterStringConfiguration = new FilterStringConfigurationProperty {
QueryParameterName = "queryParameterName",
// the properties below are optional
QuoteCharacter = "quoteCharacter",
QuoteStringValues = false
},
OperatorMappings = new Dictionary<string, string> {
{ "operatorMappingsKey", "operatorMappings" }
},
StripQuotes = false
},
PaginationConfiguration = new PaginationConfigurationProperty {
CursorConfiguration = new CursorConfigurationProperty {
NextPage = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
},
// the properties below are optional
LimitParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
}
},
OffsetConfiguration = new OffsetConfigurationProperty {
LimitParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
},
OffsetParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
}
}
},
RequestMethod = "requestMethod",
RequestParameters = new [] { new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
} },
RequestPath = "requestPath",
ResponseConfiguration = new ResponseConfigurationProperty {
ResultPath = "resultPath",
// the properties below are optional
ErrorPath = "errorPath"
}
}
} }
},
GlobalSourceConfiguration = new SourceConfigurationProperty {
FilterConfiguration = new FilterConfigurationProperty {
FilterMode = "filterMode",
// the properties below are optional
BetweenConfiguration = new BetweenConfigurationProperty {
HighBoundKey = "highBoundKey",
LowBoundKey = "lowBoundKey",
Template = "template"
},
DateTimeFormat = "dateTimeFormat",
FilterStringConfiguration = new FilterStringConfigurationProperty {
QueryParameterName = "queryParameterName",
// the properties below are optional
QuoteCharacter = "quoteCharacter",
QuoteStringValues = false
},
OperatorMappings = new Dictionary<string, string> {
{ "operatorMappingsKey", "operatorMappings" }
},
StripQuotes = false
},
PaginationConfiguration = new PaginationConfigurationProperty {
CursorConfiguration = new CursorConfigurationProperty {
NextPage = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
},
// the properties below are optional
LimitParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
}
},
OffsetConfiguration = new OffsetConfigurationProperty {
LimitParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
},
OffsetParameter = new ExtractedParameterProperty {
DefaultValue = "defaultValue",
Key = "key",
PropertyLocation = "propertyLocation",
Value = new ResponseExtractionMappingProperty {
ContentPath = "contentPath",
HeaderKey = "headerKey"
}
}
}
},
RequestMethod = "requestMethod",
RequestParameters = new [] { new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
} },
RequestPath = "requestPath",
ResponseConfiguration = new ResponseConfigurationProperty {
ResultPath = "resultPath",
// the properties below are optional
ErrorPath = "errorPath"
}
},
ValidationEndpointConfiguration = new ValidationEndpointConfigurationProperty {
RequestMethod = "requestMethod",
RequestPath = "requestPath"
}
},
// the properties below are optional
ConnectionProperties = new ConnectionPropertiesConfigurationProperty {
AdditionalRequestParameters = new [] { new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
} },
Url = new ConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
AllowedValues = new [] { "allowedValues" },
DefaultValue = "defaultValue",
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
}
},
ConnectorAuthenticationConfiguration = new ConnectorAuthenticationConfigurationProperty {
AuthenticationTypes = new [] { "authenticationTypes" },
// the properties below are optional
BasicAuthenticationProperties = new BasicAuthenticationPropertiesProperty {
Password = new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
Username = new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
}
},
CustomAuthenticationProperties = new CustomAuthenticationPropertiesProperty {
AuthenticationParameters = new [] { new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
} }
},
OAuth2Properties = new ConnectorOAuth2PropertiesProperty {
OAuth2GrantType = "oAuth2GrantType",
// the properties below are optional
AuthorizationCodeProperties = 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"
} }
},
ClientCredentialsProperties = new ClientCredentialsPropertiesProperty {
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",
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"
} }
},
JwtBearerProperties = new JWTBearerPropertiesProperty {
ContentType = "contentType",
JwtToken = new SecretConnectorPropertyProperty {
Name = "name",
PropertyType = "propertyType",
Required = false,
// the properties below are optional
KeyOverride = "keyOverride",
PropertyLocation = "propertyLocation"
},
RequestMethod = "requestMethod",
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"
} }
}
}
},
Description = "description",
IntegrationType = "integrationType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
// 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"
cfnConnectionType := awscdk.Aws_glue.NewCfnConnectionType(this, jsii.String("MyCfnConnectionType"), &CfnConnectionTypeProps{
ConnectionType: jsii.String("connectionType"),
RestConfiguration: &RestConfigurationProperty{
EntityConfigurations: map[string]interface{}{
"entityConfigurationsKey": &EntityConfigurationProperty{
"schema": map[string]interface{}{
"schemaKey": &FieldDefinitionProperty{
"fieldDataType": jsii.String("fieldDataType"),
"name": jsii.String("name"),
// the properties below are optional
"filterOverrides": &FilterOverridesProperty{
"betweenConfiguration": &BetweenConfigurationProperty{
"highBoundKey": jsii.String("highBoundKey"),
"lowBoundKey": jsii.String("lowBoundKey"),
"template": jsii.String("template"),
},
"dateTimeFormat": jsii.String("dateTimeFormat"),
"fieldName": jsii.String("fieldName"),
"operatorMappings": map[string]*string{
"operatorMappingsKey": jsii.String("operatorMappings"),
},
},
"isNullable": jsii.Boolean(false),
"isOrderable": jsii.Boolean(false),
"isPartitionable": jsii.Boolean(false),
"isQueryable": jsii.Boolean(false),
"responseDateFormat": jsii.String("responseDateFormat"),
},
},
"sourceConfiguration": &SourceConfigurationProperty{
"filterConfiguration": &FilterConfigurationProperty{
"filterMode": jsii.String("filterMode"),
// the properties below are optional
"betweenConfiguration": &BetweenConfigurationProperty{
"highBoundKey": jsii.String("highBoundKey"),
"lowBoundKey": jsii.String("lowBoundKey"),
"template": jsii.String("template"),
},
"dateTimeFormat": jsii.String("dateTimeFormat"),
"filterStringConfiguration": &FilterStringConfigurationProperty{
"queryParameterName": jsii.String("queryParameterName"),
// the properties below are optional
"quoteCharacter": jsii.String("quoteCharacter"),
"quoteStringValues": jsii.Boolean(false),
},
"operatorMappings": map[string]*string{
"operatorMappingsKey": jsii.String("operatorMappings"),
},
"stripQuotes": jsii.Boolean(false),
},
"paginationConfiguration": &PaginationConfigurationProperty{
"cursorConfiguration": &CursorConfigurationProperty{
"nextPage": &ExtractedParameterProperty{
"defaultValue": jsii.String("defaultValue"),
"key": jsii.String("key"),
"propertyLocation": jsii.String("propertyLocation"),
"value": &ResponseExtractionMappingProperty{
"contentPath": jsii.String("contentPath"),
"headerKey": jsii.String("headerKey"),
},
},
// the properties below are optional
"limitParameter": &ExtractedParameterProperty{
"defaultValue": jsii.String("defaultValue"),
"key": jsii.String("key"),
"propertyLocation": jsii.String("propertyLocation"),
"value": &ResponseExtractionMappingProperty{
"contentPath": jsii.String("contentPath"),
"headerKey": jsii.String("headerKey"),
},
},
},
"offsetConfiguration": &OffsetConfigurationProperty{
"limitParameter": &ExtractedParameterProperty{
"defaultValue": jsii.String("defaultValue"),
"key": jsii.String("key"),
"propertyLocation": jsii.String("propertyLocation"),
"value": &ResponseExtractionMappingProperty{
"contentPath": jsii.String("contentPath"),
"headerKey": jsii.String("headerKey"),
},
},
"offsetParameter": &ExtractedParameterProperty{
"defaultValue": jsii.String("defaultValue"),
"key": jsii.String("key"),
"propertyLocation": jsii.String("propertyLocation"),
"value": &ResponseExtractionMappingProperty{
"contentPath": jsii.String("contentPath"),
"headerKey": jsii.String("headerKey"),
},
},
},
},
"requestMethod": jsii.String("requestMethod"),
"requestParameters": []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"),
},
},
"requestPath": jsii.String("requestPath"),
"responseConfiguration": &ResponseConfigurationProperty{
"resultPath": jsii.String("resultPath"),
// the properties below are optional
"errorPath": jsii.String("errorPath"),
},
},
},
},
GlobalSourceConfiguration: &SourceConfigurationProperty{
FilterConfiguration: &FilterConfigurationProperty{
FilterMode: jsii.String("filterMode"),
// the properties below are optional
BetweenConfiguration: &BetweenConfigurationProperty{
HighBoundKey: jsii.String("highBoundKey"),
LowBoundKey: jsii.String("lowBoundKey"),
Template: jsii.String("template"),
},
DateTimeFormat: jsii.String("dateTimeFormat"),
FilterStringConfiguration: &FilterStringConfigurationProperty{
QueryParameterName: jsii.String("queryParameterName"),
// the properties below are optional
QuoteCharacter: jsii.String("quoteCharacter"),
QuoteStringValues: jsii.Boolean(false),
},
OperatorMappings: map[string]*string{
"operatorMappingsKey": jsii.String("operatorMappings"),
},
StripQuotes: jsii.Boolean(false),
},
PaginationConfiguration: &PaginationConfigurationProperty{
CursorConfiguration: &CursorConfigurationProperty{
NextPage: &ExtractedParameterProperty{
DefaultValue: jsii.String("defaultValue"),
Key: jsii.String("key"),
PropertyLocation: jsii.String("propertyLocation"),
Value: &ResponseExtractionMappingProperty{
ContentPath: jsii.String("contentPath"),
HeaderKey: jsii.String("headerKey"),
},
},
// the properties below are optional
LimitParameter: &ExtractedParameterProperty{
DefaultValue: jsii.String("defaultValue"),
Key: jsii.String("key"),
PropertyLocation: jsii.String("propertyLocation"),
Value: &ResponseExtractionMappingProperty{
ContentPath: jsii.String("contentPath"),
HeaderKey: jsii.String("headerKey"),
},
},
},
OffsetConfiguration: &OffsetConfigurationProperty{
LimitParameter: &ExtractedParameterProperty{
DefaultValue: jsii.String("defaultValue"),
Key: jsii.String("key"),
PropertyLocation: jsii.String("propertyLocation"),
Value: &ResponseExtractionMappingProperty{
ContentPath: jsii.String("contentPath"),
HeaderKey: jsii.String("headerKey"),
},
},
OffsetParameter: &ExtractedParameterProperty{
DefaultValue: jsii.String("defaultValue"),
Key: jsii.String("key"),
PropertyLocation: jsii.String("propertyLocation"),
Value: &ResponseExtractionMappingProperty{
ContentPath: jsii.String("contentPath"),
HeaderKey: jsii.String("headerKey"),
},
},
},
},
RequestMethod: jsii.String("requestMethod"),
RequestParameters: []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"),
},
},
RequestPath: jsii.String("requestPath"),
ResponseConfiguration: &ResponseConfigurationProperty{
ResultPath: jsii.String("resultPath"),
// the properties below are optional
ErrorPath: jsii.String("errorPath"),
},
},
ValidationEndpointConfiguration: &ValidationEndpointConfigurationProperty{
RequestMethod: jsii.String("requestMethod"),
RequestPath: jsii.String("requestPath"),
},
},
// the properties below are optional
ConnectionProperties: &ConnectionPropertiesConfigurationProperty{
AdditionalRequestParameters: []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"),
},
},
Url: &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"),
},
},
ConnectorAuthenticationConfiguration: &ConnectorAuthenticationConfigurationProperty{
AuthenticationTypes: []*string{
jsii.String("authenticationTypes"),
},
// the properties below are optional
BasicAuthenticationProperties: &BasicAuthenticationPropertiesProperty{
Password: &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"),
},
Username: &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"),
},
},
CustomAuthenticationProperties: &CustomAuthenticationPropertiesProperty{
AuthenticationParameters: []interface{}{
&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"),
},
},
},
OAuth2Properties: &ConnectorOAuth2PropertiesProperty{
OAuth2GrantType: jsii.String("oAuth2GrantType"),
// the properties below are optional
AuthorizationCodeProperties: &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"),
},
},
},
ClientCredentialsProperties: &ClientCredentialsPropertiesProperty{
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"),
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"),
},
},
},
JwtBearerProperties: &JWTBearerPropertiesProperty{
ContentType: jsii.String("contentType"),
JwtToken: &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"),
},
RequestMethod: jsii.String("requestMethod"),
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"),
},
},
},
},
},
Description: jsii.String("description"),
IntegrationType: jsii.String("integrationType"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
})
Initializer
new CfnConnectionType(scope: Construct, id: string, props: CfnConnectionTypeProps)
CfnConnectionType(scope: Construct, id: str, props: CfnConnectionTypeProps)
new CfnConnectionType(Construct scope, String id, CfnConnectionTypeProps props)
new CfnConnectionType(Construct scope, string id, CfnConnectionTypeProps props)
NewCfnConnectionType(Scope Construct, Id *string, Props CfnConnectionTypeProps)
Construct Props
connectionPropertiesIResolvable | CfnConnectionType.ConnectionPropertiesConfigurationPropertyconnection_propertiestyping.Union[IResolvable, ConnectionPropertiesConfigurationProperty]connectionPropertiesIResolvableConnectionPropertiesIResolvableConnectionPropertiesinterface{}#connectionTypestringconnection_typestrconnectionTypeStringConnectionTypestringConnectionType*stringrequired#Must be prefixed with REST-.
connectorAuthenticationConfigurationIResolvable | CfnConnectionType.ConnectorAuthenticationConfigurationPropertyconnector_authentication_configurationtyping.Union[IResolvable, ConnectorAuthenticationConfigurationProperty]connectorAuthenticationConfigurationIResolvableConnectorAuthenticationConfigurationIResolvableConnectorAuthenticationConfigurationinterface{}#integrationTypestringintegration_typestrintegrationTypeStringIntegrationTypestringIntegrationType*string#Currently only REST is supported.
restConfigurationIResolvable | CfnConnectionType.RestConfigurationPropertyrest_configurationtyping.Union[IResolvable, RestConfigurationProperty]restConfigurationIResolvableRestConfigurationIResolvableRestConfigurationinterface{}required#Properties
attrConnectionTypeArnstringattr_connection_type_arnstrattrConnectionTypeArnStringAttrConnectionTypeArnstringAttrConnectionTypeArn*stringrequired#cdkTagManagerTagManagercdk_tag_managerTagManagercdkTagManagerTagManagerCdkTagManagerTagManagerCdkTagManagerTagManagerrequired#CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringrequiredstatic#cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsrequired#cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*stringrequired#connectionPropertiesIResolvable | CfnConnectionType.ConnectionPropertiesConfigurationPropertyconnection_propertiestyping.Union[IResolvable, ConnectionPropertiesConfigurationProperty]connectionPropertiesIResolvableConnectionPropertiesIResolvableConnectionPropertiesinterface{}#connectionTypestringconnection_typestrconnectionTypeStringConnectionTypestringConnectionType*stringrequired#connectionTypeRefConnectionTypeReferenceconnection_type_refConnectionTypeReferenceconnectionTypeRefConnectionTypeReferenceConnectionTypeRefConnectionTypeReferenceConnectionTypeRefConnectionTypeReferencerequired#connectorAuthenticationConfigurationIResolvable | CfnConnectionType.ConnectorAuthenticationConfigurationPropertyconnector_authentication_configurationtyping.Union[IResolvable, ConnectorAuthenticationConfigurationProperty]connectorAuthenticationConfigurationIResolvableConnectorAuthenticationConfigurationIResolvableConnectorAuthenticationConfigurationinterface{}#creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*stringrequired#integrationTypestringintegration_typestrintegrationTypeStringIntegrationTypestringIntegrationType*string#The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId).
If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).
restConfigurationIResolvable | CfnConnectionType.RestConfigurationPropertyrest_configurationtyping.Union[IResolvable, RestConfigurationProperty]restConfigurationIResolvableRestConfigurationIResolvableRestConfigurationinterface{}required#CfnElements must be defined within a stack scope (directly or indirectly).
Methods
addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#1 parameter
Parameters
pathpathpathpathPath— The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.
addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.
addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#notes · 2 parameters
To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.
For example,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.
Parameters
pathpathpathpathPath— - The path of the property, you can use dot notation to override values in complex types.valuevaluevaluevalueValue— - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#1 parameter
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#Syntactic sugar for addOverride("Properties.<...>", value).
2 parameters
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path of the property.valuevaluevaluevalueValue— The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.
1 parameter
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:
arnForConnectionType(resource: IConnectionTypeRef): string@staticmethod def arn_for_connection_type(resource: IConnectionTypeRef) -> strpublic static String arnForConnectionType(IConnectionTypeRef resource)public static string ArnForConnectionType(IConnectionTypeRef resource)func ArnForConnectionType(Resource IConnectionTypeRef) *stringstatic#cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
1 parameter
Parameters
attributeNameattribute_nameattributeNameattributeNameAttributeName— The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#1 parameter
Parameters
inspectorinspectorinspectorinspectorInspector— tree inspector to collect and process attributes.
isCfnConnectionType(x: any): boolean@staticmethod def is_cfn_connection_type(x: Any) -> boolpublic static Boolean isCfnConnectionType(Object x)public static bool IsCfnConnectionType(object x)func IsCfnConnectionType(X interface{}) *boolstatic#isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.
returns
Returns: The construct as a stack element or undefined if it is not a stack element.
isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.
overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#1 parameter
Parameters
newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId— The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#2 parameters
Parameters
targettargettargettargetTarget— The dependency to replace.newTargetnew_targetnewTargetnewTargetNewTarget— The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#returns
Returns: a string representation of this resource
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.