@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.526Z") @Stability(value=Stable) public class CfnConnection extends CfnResource implements IInspectable
The AWS::Glue::Connection resource specifies an AWS Glue connection to a data source. For more information, see Adding a Connection to Your Data Store and Connection Structure in the AWS Glue Developer Guide .
Example:
// 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.*;
Object connectionProperties;
CfnConnection cfnConnection = CfnConnection.Builder.create(this, "MyCfnConnection")
.catalogId("catalogId")
.connectionInput(ConnectionInputProperty.builder()
.connectionType("connectionType")
// the properties below are optional
.connectionProperties(connectionProperties)
.description("description")
.matchCriteria(List.of("matchCriteria"))
.name("name")
.physicalConnectionRequirements(PhysicalConnectionRequirementsProperty.builder()
.availabilityZone("availabilityZone")
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetId("subnetId")
.build())
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConnection.Builder
A fluent builder for
CfnConnection. |
static interface |
CfnConnection.ConnectionInputProperty
A structure that is used to specify a connection to create or update.
|
static interface |
CfnConnection.PhysicalConnectionRequirementsProperty
Specifies the physical requirements for a connection.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnConnection(software.constructs.Construct scope,
String id,
CfnConnectionProps props)
Create a new `AWS::Glue::Connection`.
|
protected |
CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConnection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogId()
The ID of the data catalog to create the catalog object in.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConnectionInput()
The connection that you want to create.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCatalogId(String value)
The ID of the data catalog to create the catalog object in.
|
void |
setConnectionInput(CfnConnection.ConnectionInputProperty value)
The connection that you want to create.
|
void |
setConnectionInput(IResolvable value)
The connection that you want to create.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnConnection(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConnection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConnectionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getCatalogId()
Currently, this should be the AWS account ID.
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId.
@Stability(value=Stable)
public void setCatalogId(@NotNull
String value)
Currently, this should be the AWS account ID.
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId.
@Stability(value=Stable) @NotNull public Object getConnectionInput()
@Stability(value=Stable)
public void setConnectionInput(@NotNull
CfnConnection.ConnectionInputProperty value)
@Stability(value=Stable)
public void setConnectionInput(@NotNull
IResolvable value)
Copyright © 2022. All rights reserved.