@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.096Z") @Stability(value=Stable) public class CfnDataSource extends CfnResource implements IInspectable
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.appsync.*;
CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource")
.apiId("apiId")
.name("name")
.type("type")
// the properties below are optional
.description("description")
.dynamoDbConfig(DynamoDBConfigProperty.builder()
.awsRegion("awsRegion")
.tableName("tableName")
// the properties below are optional
.deltaSyncConfig(DeltaSyncConfigProperty.builder()
.baseTableTtl("baseTableTtl")
.deltaSyncTableName("deltaSyncTableName")
.deltaSyncTableTtl("deltaSyncTableTtl")
.build())
.useCallerCredentials(false)
.versioned(false)
.build())
.elasticsearchConfig(ElasticsearchConfigProperty.builder()
.awsRegion("awsRegion")
.endpoint("endpoint")
.build())
.httpConfig(HttpConfigProperty.builder()
.endpoint("endpoint")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.authorizationType("authorizationType")
// the properties below are optional
.awsIamConfig(AwsIamConfigProperty.builder()
.signingRegion("signingRegion")
.signingServiceName("signingServiceName")
.build())
.build())
.build())
.lambdaConfig(LambdaConfigProperty.builder()
.lambdaFunctionArn("lambdaFunctionArn")
.build())
.openSearchServiceConfig(OpenSearchServiceConfigProperty.builder()
.awsRegion("awsRegion")
.endpoint("endpoint")
.build())
.relationalDatabaseConfig(RelationalDatabaseConfigProperty.builder()
.relationalDatabaseSourceType("relationalDatabaseSourceType")
// the properties below are optional
.rdsHttpEndpointConfig(RdsHttpEndpointConfigProperty.builder()
.awsRegion("awsRegion")
.awsSecretStoreArn("awsSecretStoreArn")
.dbClusterIdentifier("dbClusterIdentifier")
// the properties below are optional
.databaseName("databaseName")
.schema("schema")
.build())
.build())
.serviceRoleArn("serviceRoleArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnDataSource.AuthorizationConfigProperty
Example:
|
static interface |
CfnDataSource.AwsIamConfigProperty
Example:
|
static class |
CfnDataSource.Builder
A fluent builder for
CfnDataSource. |
static interface |
CfnDataSource.DeltaSyncConfigProperty
Example:
|
static interface |
CfnDataSource.DynamoDBConfigProperty
Example:
|
static interface |
CfnDataSource.ElasticsearchConfigProperty
Example:
|
static interface |
CfnDataSource.HttpConfigProperty
Example:
|
static interface |
CfnDataSource.LambdaConfigProperty
Example:
|
static interface |
CfnDataSource.OpenSearchServiceConfigProperty
Example:
|
static interface |
CfnDataSource.RdsHttpEndpointConfigProperty
Example:
|
static interface |
CfnDataSource.RelationalDatabaseConfigProperty
Example:
|
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 |
|---|---|
|
CfnDataSource(software.constructs.Construct scope,
String id,
CfnDataSourceProps props)
Create a new `AWS::AppSync::DataSource`.
|
protected |
CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiId()
`AWS::AppSync::DataSource.ApiId`.
|
String |
getAttrDataSourceArn() |
String |
getAttrName() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
`AWS::AppSync::DataSource.Description`.
|
Object |
getDynamoDbConfig()
`AWS::AppSync::DataSource.DynamoDBConfig`.
|
Object |
getElasticsearchConfig()
`AWS::AppSync::DataSource.ElasticsearchConfig`.
|
Object |
getHttpConfig()
`AWS::AppSync::DataSource.HttpConfig`.
|
Object |
getLambdaConfig()
`AWS::AppSync::DataSource.LambdaConfig`.
|
String |
getName()
`AWS::AppSync::DataSource.Name`.
|
Object |
getOpenSearchServiceConfig()
`AWS::AppSync::DataSource.OpenSearchServiceConfig`.
|
Object |
getRelationalDatabaseConfig()
`AWS::AppSync::DataSource.RelationalDatabaseConfig`.
|
String |
getServiceRoleArn()
`AWS::AppSync::DataSource.ServiceRoleArn`.
|
String |
getType()
`AWS::AppSync::DataSource.Type`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiId(String value)
`AWS::AppSync::DataSource.ApiId`.
|
void |
setDescription(String value)
`AWS::AppSync::DataSource.Description`.
|
void |
setDynamoDbConfig(CfnDataSource.DynamoDBConfigProperty value)
`AWS::AppSync::DataSource.DynamoDBConfig`.
|
void |
setDynamoDbConfig(IResolvable value)
`AWS::AppSync::DataSource.DynamoDBConfig`.
|
void |
setElasticsearchConfig(CfnDataSource.ElasticsearchConfigProperty value)
`AWS::AppSync::DataSource.ElasticsearchConfig`.
|
void |
setElasticsearchConfig(IResolvable value)
`AWS::AppSync::DataSource.ElasticsearchConfig`.
|
void |
setHttpConfig(CfnDataSource.HttpConfigProperty value)
`AWS::AppSync::DataSource.HttpConfig`.
|
void |
setHttpConfig(IResolvable value)
`AWS::AppSync::DataSource.HttpConfig`.
|
void |
setLambdaConfig(CfnDataSource.LambdaConfigProperty value)
`AWS::AppSync::DataSource.LambdaConfig`.
|
void |
setLambdaConfig(IResolvable value)
`AWS::AppSync::DataSource.LambdaConfig`.
|
void |
setName(String value)
`AWS::AppSync::DataSource.Name`.
|
void |
setOpenSearchServiceConfig(CfnDataSource.OpenSearchServiceConfigProperty value)
`AWS::AppSync::DataSource.OpenSearchServiceConfig`.
|
void |
setOpenSearchServiceConfig(IResolvable value)
`AWS::AppSync::DataSource.OpenSearchServiceConfig`.
|
void |
setRelationalDatabaseConfig(CfnDataSource.RelationalDatabaseConfigProperty value)
`AWS::AppSync::DataSource.RelationalDatabaseConfig`.
|
void |
setRelationalDatabaseConfig(IResolvable value)
`AWS::AppSync::DataSource.RelationalDatabaseConfig`.
|
void |
setServiceRoleArn(String value)
`AWS::AppSync::DataSource.ServiceRoleArn`.
|
void |
setType(String value)
`AWS::AppSync::DataSource.Type`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDataSource(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDataSourceProps 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 public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getAttrDataSourceArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDynamoDbConfig()
@Stability(value=Stable)
public void setDynamoDbConfig(@Nullable
CfnDataSource.DynamoDBConfigProperty value)
@Stability(value=Stable)
public void setDynamoDbConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getElasticsearchConfig()
@Stability(value=Stable)
public void setElasticsearchConfig(@Nullable
CfnDataSource.ElasticsearchConfigProperty value)
@Stability(value=Stable)
public void setElasticsearchConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getHttpConfig()
@Stability(value=Stable)
public void setHttpConfig(@Nullable
CfnDataSource.HttpConfigProperty value)
@Stability(value=Stable)
public void setHttpConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLambdaConfig()
@Stability(value=Stable)
public void setLambdaConfig(@Nullable
CfnDataSource.LambdaConfigProperty value)
@Stability(value=Stable)
public void setLambdaConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getOpenSearchServiceConfig()
@Stability(value=Stable)
public void setOpenSearchServiceConfig(@Nullable
CfnDataSource.OpenSearchServiceConfigProperty value)
@Stability(value=Stable)
public void setOpenSearchServiceConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getRelationalDatabaseConfig()
@Stability(value=Stable)
public void setRelationalDatabaseConfig(@Nullable
CfnDataSource.RelationalDatabaseConfigProperty value)
@Stability(value=Stable)
public void setRelationalDatabaseConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getServiceRoleArn()
@Stability(value=Stable)
public void setServiceRoleArn(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable)
public void setType(@NotNull
String value)
Copyright © 2021. All rights reserved.