Class ConnectorStack
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- software.amazon.awscdk.core.Construct
-
- software.amazon.awscdk.core.Stack
-
- com.amazonaws.athena.connector.integ.stacks.ConnectorStack
-
- All Implemented Interfaces:
software.amazon.awscdk.core.IConstruct
,software.amazon.awscdk.core.IDependable
,software.amazon.awscdk.core.ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
- Direct Known Subclasses:
ConnectorWithVpcStack
public class ConnectorStack extends software.amazon.awscdk.core.Stack
Sets up the CloudFormation stack necessary for a Lambda Connector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectorStack.Builder
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
software.amazon.awscdk.core.IConstruct.Jsii$Default, software.amazon.awscdk.core.IConstruct.Jsii$Proxy
-
-
Constructor Summary
Constructors Constructor Description ConnectorStack(ConnectorStack.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected software.amazon.awscdk.services.athena.CfnDataCatalog.Builder
athenaDataCatalogBuilder(String functionArn)
Builds the Athena data catalog stack resource.static ConnectorStack.Builder
builder()
static software.amazon.awscdk.core.Stack
buildWithAttributes(ConnectorStackAttributes attributes)
protected software.amazon.awscdk.services.iam.Role.Builder
iamRoleBuilder()
Builds the IAM role stack resource.protected void
initialize()
Initialize the stack by building the Lambda function and Athena data catalog.protected software.amazon.awscdk.services.lambda.Function.Builder
lambdaFunctionBuilder()
Builds the Lambda function stack resource.protected void
setAccessPolicies(Map<String,software.amazon.awscdk.services.iam.PolicyDocument> policies)
Sets the access policies used by the Lambda function.-
Methods inherited from class software.amazon.awscdk.core.Stack
addDependency, addDependency, addDockerImageAsset, addFileAsset, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getBundlingRequired, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNestedStackResource, getNotificationArns, getParentStack, getPartition, getRegion, getStackId, getStackName, getSynthesizer, getTags, getTemplateFile, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, parseArn, parseArn, parseArn, prepareCrossReference, regionalFact, regionalFact, renameLogicalId, reportMissingContext, reportMissingContextKey, resolve, splitArn, toJsonString, toJsonString
-
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
ConnectorStack
public ConnectorStack(ConnectorStack.Builder builder)
-
-
Method Detail
-
initialize
protected void initialize()
Initialize the stack by building the Lambda function and Athena data catalog.
-
lambdaFunctionBuilder
protected software.amazon.awscdk.services.lambda.Function.Builder lambdaFunctionBuilder()
Builds the Lambda function stack resource.- Returns:
- Lambda function Builder.
-
athenaDataCatalogBuilder
protected software.amazon.awscdk.services.athena.CfnDataCatalog.Builder athenaDataCatalogBuilder(String functionArn)
Builds the Athena data catalog stack resource.- Returns:
- Athena data catalog Builder.
-
iamRoleBuilder
protected software.amazon.awscdk.services.iam.Role.Builder iamRoleBuilder()
Builds the IAM role stack resource.- Returns:
- IAM role Builder.
-
setAccessPolicies
protected void setAccessPolicies(Map<String,software.amazon.awscdk.services.iam.PolicyDocument> policies)
Sets the access policies used by the Lambda function.- Parameters:
policies
- A map of access policies.
-
buildWithAttributes
public static software.amazon.awscdk.core.Stack buildWithAttributes(ConnectorStackAttributes attributes)
-
builder
public static ConnectorStack.Builder builder()
-
-