Represents a Cost Report construct in AWS CDK.
This class creates an AWS Cost and Usage Report, stored in an S3 bucket, and configures the necessary permissions.
Example
const report = new CostReport(stack, 'MyReport', {
costReportName: 'business-report',
reportGranularity: ReportGranularity.MONTHLY,
format: CurFormat.PARQUET
});
import { aws_cur } from '@open-constructs/aws-cdk'
new aws_cur.CostReport(scope: Construct, id: string, props: CostReportProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_cur.CostReportProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_cur.CostReportProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
import { aws_cur } from '@open-constructs/aws-cdk'
aws_cur.CostReport.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_cur } from '@open-constructs/aws-cdk'
aws_cur.CostReport.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_cur } from '@open-constructs/aws-cdk'
aws_cur.CostReport.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
costReportName |
string |
The name of the cost report. |
reportBucket |
aws-cdk-lib.aws_s3.IBucket |
The S3 bucket that stores the cost report. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly costReportName: string;
- Type: string
The name of the cost report.
public readonly reportBucket: IBucket;
- Type: aws-cdk-lib.aws_s3.IBucket
The S3 bucket that stores the cost report.
- Implements: @open-constructs/aws-cdk.aws_codeartifact.IDomain
Deploys a CodeArtifact domain.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
new aws_codeartifact.Domain(scope: Construct, id: string, props: DomainProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_codeartifact.DomainProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_codeartifact.DomainProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addToResourcePolicy |
Adds a statement to the Codeartifact domain resource policy. |
grant |
Grants permissions to the specified grantee on this CodeArtifact domain. |
grantContribute |
Grants contribute permissions to the specified grantee on this CodeArtifact domain. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult
Adds a statement to the Codeartifact domain resource policy.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
The policy statement to add.
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grants permissions to the specified grantee on this CodeArtifact domain.
It handles both same-environment and cross-environment scenarios:
- For same-environment grants, it adds the permissions to the principal or resource.
- For cross-environment grants, it adds the permissions to both the principal and the resource.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
- Type: ...string[]
The actions to grant.
These should be valid CodeArtifact actions.
public grantContribute(grantee: IGrantable): Grant
Grants contribute permissions to the specified grantee on this CodeArtifact domain.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant contribute permissions to.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromDomainArn |
Creates an IDomain object from an existing CodeArtifact domain ARN. |
fromDomainAttributes |
Creates a Domain object from existing domain attributes. |
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Domain.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Domain.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Domain.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Domain.fromDomainArn(scope: Construct, id: string, domainArn: string)
Creates an IDomain object from an existing CodeArtifact domain ARN.
- Type: constructs.Construct
The parent construct.
- Type: string
The construct id.
- Type: string
The ARN (Amazon Resource Name) of the existing CodeArtifact domain.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Domain.fromDomainAttributes(scope: Construct, id: string, attrs: DomainAttributes)
Creates a Domain object from existing domain attributes.
- Type: constructs.Construct
The parent construct.
- Type: string
The construct id.
- Type: @open-constructs/aws-cdk.aws_codeartifact.DomainAttributes
The attributes of the domain to import.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
domainArn |
string |
The ARN (Amazon Resource Name) of this CodeArtifact domain. |
domainName |
string |
The name of this CodeArtifact domain. |
domainOwner |
string |
The AWS account ID that owns this domain. |
domainEncryptionKey |
string |
The ARN of the key used to encrypt the Domain. |
encryptionKey |
aws-cdk-lib.aws_kms.IKey |
The AWS KMS encryption key associated with this domain, if any. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly domainArn: string;
- Type: string
The ARN (Amazon Resource Name) of this CodeArtifact domain.
public readonly domainName: string;
- Type: string
The name of this CodeArtifact domain.
public readonly domainOwner: string;
- Type: string
The AWS account ID that owns this domain.
public readonly domainEncryptionKey: string;
- Type: string
The ARN of the key used to encrypt the Domain.
public readonly encryptionKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
The AWS KMS encryption key associated with this domain, if any.
- Implements: @open-constructs/aws-cdk.aws_elasticache.IIamUser, @open-constructs/aws-cdk.aws_elasticache.IUser
Represents an IAM-enabled user construct in AWS CDK.
Example
const user = new IamUser(
stack,
'User',
{
accessString: 'on ~* +@all',
},
);
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.IamUser(scope: Construct, id: string, props?: IamUserProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_elasticache.IamUserProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.IamUserProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
grant |
Grant the given identity the specified actions. |
grantConnect |
Permits an IAM principal to perform connect to the user. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grant the given identity the specified actions.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticache.html
- Type: aws-cdk-lib.aws_iam.IGrantable
the identity to be granted the actions.
- Type: ...string[]
the data-access actions.
public grantConnect(grantee: IGrantable): Grant
Permits an IAM principal to perform connect to the user.
Actions: Connect
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth-iam.html
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant access to.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromUserId |
Imports an existing IAM-enabled user from userId. |
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.IamUser.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.IamUser.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.IamUser.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.IamUser.fromUserId(scope: Construct, id: string, userId: string)
Imports an existing IAM-enabled user from userId.
- Type: constructs.Construct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
- Implements: @open-constructs/aws-cdk.aws_ec2.IInstanceConnectEndpoint
Represents an EC2 Instance Connect Endpoint construct in AWS CDK.
Example
declare const securityGroups: aws_ec2.ISecurityGroup[];
declare const vpc: aws_ec2.IVpc;
const instanceConnectEndpoint = new InstanceConnectEndpoint(
stack,
'InstanceConnectEndpoint',
{
clientToken: 'my-client-token',
preserveClientIp: true,
securityGroups,
vpc,
},
);
import { aws_ec2 } from '@open-constructs/aws-cdk'
new aws_ec2.InstanceConnectEndpoint(scope: Construct, id: string, props: InstanceConnectEndpointProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_ec2.InstanceConnectEndpointProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_ec2.InstanceConnectEndpointProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromInstanceConnectEndpointAttributes |
Import an existing endpoint to the stack from its attributes. |
import { aws_ec2 } from '@open-constructs/aws-cdk'
aws_ec2.InstanceConnectEndpoint.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_ec2 } from '@open-constructs/aws-cdk'
aws_ec2.InstanceConnectEndpoint.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_ec2 } from '@open-constructs/aws-cdk'
aws_ec2.InstanceConnectEndpoint.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_ec2 } from '@open-constructs/aws-cdk'
aws_ec2.InstanceConnectEndpoint.fromInstanceConnectEndpointAttributes(scope: Construct, id: string, attrs: InstanceConnectEndpointAttributes)
Import an existing endpoint to the stack from its attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_ec2.InstanceConnectEndpointAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The connection object associated with the EC2 Instance Connect Endpoint. |
instanceConnectEndpointId |
string |
The ID of the EC2 Instance Connect Endpoint. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The connection object associated with the EC2 Instance Connect Endpoint.
public readonly instanceConnectEndpointId: string;
- Type: string
The ID of the EC2 Instance Connect Endpoint.
- Implements: @open-constructs/aws-cdk.aws_redshiftserverless.INamespace
Represents a Redshift Serverless Namespace construct in AWS CDK.
Example
const nameSpace = new Namespace(
stack,
'Namespace',
{
namespaceName: 'my-namespace',
},
);
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
new aws_redshiftserverless.Namespace(scope: Construct, id: string, props: NamespaceProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_redshiftserverless.NamespaceProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.NamespaceProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addIamRole |
Adds a role to the namespace. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public addIamRole(role: IRole): void
Adds a role to the namespace.
- Type: aws-cdk-lib.aws_iam.IRole
the role to add.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromNamespaceAttributes |
Imports an existing Namespace from attributes. |
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Namespace.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Namespace.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Namespace.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Namespace.fromNamespaceAttributes(scope: Construct, id: string, attrs: NamespaceAttributes)
Imports an existing Namespace from attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.NamespaceAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
namespaceArn |
string |
The namespace Arn. |
namespaceId |
string |
The namespace id. |
namespaceName |
string |
The namespace name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly namespaceArn: string;
- Type: string
The namespace Arn.
public readonly namespaceId: string;
- Type: string
The namespace id.
public readonly namespaceName: string;
- Type: string
The namespace name.
- Implements: @open-constructs/aws-cdk.aws_elasticache.INoPasswordRequiredUser, @open-constructs/aws-cdk.aws_elasticache.IUser
Represents a no password required user construct in AWS CDK.
Example
const user = new NoPasswordRequiredUser(
stack,
'User',
{
userName: 'my-user',
accessString: 'on ~* +@all',
},
);
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.NoPasswordRequiredUser(scope: Construct, id: string, props?: NoPasswordRequiredUserProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_elasticache.NoPasswordRequiredUserProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.NoPasswordRequiredUserProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromUserAttributes |
Imports an existing no password required user from attributes. |
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.NoPasswordRequiredUser.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.NoPasswordRequiredUser.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.NoPasswordRequiredUser.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.NoPasswordRequiredUser.fromUserAttributes(scope: Construct, id: string, attrs: NoPasswordUserAttributes)
Imports an existing no password required user from attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.NoPasswordUserAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
The FSx for NetApp ONTAP File System implementation of IFileSystem.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.OntapFileSystem(scope: Construct, id: string, props: OntapFileSystemProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_fsx.OntapFileSystemProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_fsx.OntapFileSystemProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromOntapFileSystemAttributes |
Import an existing FSx for NetApp ONTAP file system from the given properties. |
import { aws_fsx } from '@open-constructs/aws-cdk'
aws_fsx.OntapFileSystem.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_fsx } from '@open-constructs/aws-cdk'
aws_fsx.OntapFileSystem.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_fsx } from '@open-constructs/aws-cdk'
aws_fsx.OntapFileSystem.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_fsx } from '@open-constructs/aws-cdk'
aws_fsx.OntapFileSystem.fromOntapFileSystemAttributes(scope: Construct, id: string, attrs: FileSystemAttributes)
Import an existing FSx for NetApp ONTAP file system from the given properties.
- Type: constructs.Construct
- Type: string
- Type: aws-cdk-lib.aws_fsx.FileSystemAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The security groups/rules used to allow network connections to the file system. |
dnsName |
string |
The management endpoint DNS name assigned to this file system. |
fileSystemId |
string |
The ID that AWS assigns to the file system. |
interClusterDnsName |
string |
The inter cluster endpoint DNS name assigned to this file system. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The security groups/rules used to allow network connections to the file system.
public readonly dnsName: string;
- Type: string
The management endpoint DNS name assigned to this file system.
public readonly fileSystemId: string;
- Type: string
The ID that AWS assigns to the file system.
public readonly interClusterDnsName: string;
- Type: string
The inter cluster endpoint DNS name assigned to this file system.
- Implements: @open-constructs/aws-cdk.aws_elasticache.IPasswordUser, @open-constructs/aws-cdk.aws_elasticache.IUser
Represents a password authentication user construct in AWS CDK.
Example
const user = new PasswordUser(
stack,
'User',
{
passwords: [
cdk.SecretValue.unsafePlainText('exampleUserPassword123'),
cdk.SecretValue.unsafePlainText('anotherUserPassword123'),
],
},
);
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.PasswordUser(scope: Construct, id: string, props: PasswordUserProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_elasticache.PasswordUserProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.PasswordUserProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromUserAttributes |
Imports an existing password authentication user from attributes. |
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.PasswordUser.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.PasswordUser.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.PasswordUser.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.PasswordUser.fromUserAttributes(scope: Construct, id: string, attrs: PasswordUserAttributes)
Imports an existing password authentication user from attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.PasswordUserAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
generatedSecret |
aws-cdk-lib.aws_secretsmanager.ISecret |
The secret containing the generated password. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly generatedSecret: ISecret;
- Type: aws-cdk-lib.aws_secretsmanager.ISecret
The secret containing the generated password.
Throws an exception if passwords
is provided in the props
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
- Implements: @open-constructs/aws-cdk.aws_codeartifact.IRepository
Deploys a CodeArtifact repository.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
new aws_codeartifact.Repository(scope: Construct, id: string, props: RepositoryProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_codeartifact.RepositoryProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_codeartifact.RepositoryProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addToResourcePolicy |
Adds a statement to the CodeArtifact repository resource policy. |
grant |
Grants permissions to the specified grantee on this CodeArtifact repository. |
grantRead |
Grants read permissions to the specified grantee on this CodeArtifact repository. |
grantReadAndPublish |
Grants read and publish permissions to the specified grantee on this CodeArtifact repository. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult
Adds a statement to the CodeArtifact repository resource policy.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
The policy statement to add.
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grants permissions to the specified grantee on this CodeArtifact repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
- Type: ...string[]
The actions to grant.
public grantRead(grantee: IGrantable): Grant
Grants read permissions to the specified grantee on this CodeArtifact repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant read permissions to.
public grantReadAndPublish(grantee: IGrantable): Grant
Grants read and publish permissions to the specified grantee on this CodeArtifact repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant read and publish permissions to.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromRepositoryArn |
Creates an IRepository object from an existing repository ARN. |
fromRepositoryAttributes |
Creates an IRepository object from existing repository attributes. |
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Repository.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Repository.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Repository.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Repository.fromRepositoryArn(scope: Construct, id: string, repositoryArn: string)
Creates an IRepository object from an existing repository ARN.
- Type: constructs.Construct
The parent construct in which to create this repository reference.
- Type: string
The identifier of the construct.
- Type: string
The ARN of the repository to import.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
aws_codeartifact.Repository.fromRepositoryAttributes(scope: Construct, id: string, attrs: RepositoryAttributes)
Creates an IRepository object from existing repository attributes.
- Type: constructs.Construct
The parent construct in which to create this repository reference.
- Type: string
The identifier of the construct.
- Type: @open-constructs/aws-cdk.aws_codeartifact.RepositoryAttributes
The attributes of the repository to import.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
domain |
@open-constructs/aws-cdk.aws_codeartifact.IDomain |
The domain that contains this repository. |
repositoryArn |
string |
The ARN (Amazon Resource Name) of this CodeArtifact repository. |
repositoryDomainName |
string |
The domain that contains this repository. |
repositoryDomainOwner |
string |
The domain owner of this repository. |
repositoryName |
string |
The name of this CodeArtifact repository. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly domain: IDomain;
- Type: @open-constructs/aws-cdk.aws_codeartifact.IDomain
The domain that contains this repository.
public readonly repositoryArn: string;
- Type: string
The ARN (Amazon Resource Name) of this CodeArtifact repository.
public readonly repositoryDomainName: string;
- Type: string
The domain that contains this repository.
public readonly repositoryDomainOwner: string;
- Type: string
The domain owner of this repository.
public readonly repositoryName: string;
- Type: string
The name of this CodeArtifact repository.
- Implements: @open-constructs/aws-cdk.aws_elasticache.IServerlessCache
Represents an ElastiCache Serverless Cache construct in AWS CDK.
Example
declare const vpc: aws_ec2.IVpc;
const serverlessCache = new ServerlessCache(
stack,
'ServerlessCache',
{
serverlessCacheName: 'my-serverlessCache',
engine: Engine.VALKEY,
vpc,
},
);
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.ServerlessCache(scope: Construct, id: string, props: ServerlessCacheProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_elasticache.ServerlessCacheProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.ServerlessCacheProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
grant |
Grant the given identity the specified actions. |
grantConnect |
Permits an IAM principal to perform connect to the serverless cache. |
metric |
Create a CloudWatch metric for serverless cache. |
metricBytesUsedForCache |
Metric for the total number of bytes used by the data stored in your cache. |
metricElastiCacheProcessingUnits |
Metric for the total number of ElastiCacheProcessingUnits (ECPUs) consumed by the requests executed on your cache. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grant the given identity the specified actions.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticache.html
- Type: aws-cdk-lib.aws_iam.IGrantable
the identity to be granted the actions.
- Type: ...string[]
the data-access actions.
public grantConnect(grantee: IGrantable): Grant
Permits an IAM principal to perform connect to the serverless cache.
Actions: Connect
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth-iam.html
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant access to.
public metric(metricName: string, props?: MetricOptions): Metric
Create a CloudWatch metric for serverless cache.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/serverless-metrics-events.memcached.html
- Type: string
name of the metric.
- Type: aws-cdk-lib.aws_cloudwatch.MetricOptions
metric options.
public metricBytesUsedForCache(props?: MetricOptions): Metric
Metric for the total number of bytes used by the data stored in your cache.
- Type: aws-cdk-lib.aws_cloudwatch.MetricOptions
public metricElastiCacheProcessingUnits(props?: MetricOptions): Metric
Metric for the total number of ElastiCacheProcessingUnits (ECPUs) consumed by the requests executed on your cache.
- Type: aws-cdk-lib.aws_cloudwatch.MetricOptions
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromServerlessCacheAttributes |
Imports an existing ServerlessCache from attributes. |
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.ServerlessCache.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.ServerlessCache.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.ServerlessCache.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.ServerlessCache.fromServerlessCacheAttributes(scope: Construct, id: string, attrs: ServerlessCacheAttributes)
Imports an existing ServerlessCache from attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.ServerlessCacheAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The connection object associated with the ElastiCache Serverless Cache. |
endpointAddress |
string |
The DNS hostname of the cache node. |
endpointPort |
number |
The port number that the cache engine is listening on. |
serverlessCacheArn |
string |
The serverless cache ARN. |
serverlessCacheName |
string |
The serverless cache name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The connection object associated with the ElastiCache Serverless Cache.
public readonly endpointAddress: string;
- Type: string
The DNS hostname of the cache node.
public readonly endpointPort: number;
- Type: number
The port number that the cache engine is listening on.
public readonly serverlessCacheArn: string;
- Type: string
The serverless cache ARN.
public readonly serverlessCacheName: string;
- Type: string
The serverless cache name.
- Implements: @open-constructs/aws-cdk.aws_elasticache.IUserGroup
Represents a user group construct in AWS CDK.
Example
declare const user: User;
const userGroup = new UserGroup(
stack,
'UserGroup',
{
users: [user],
},
);
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.UserGroup(scope: Construct, id: string, props: UserGroupProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_elasticache.UserGroupProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_elasticache.UserGroupProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addUser |
Adds a user to the user group. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
public addUser(user: IUser): void
Adds a user to the user group.
- Type: @open-constructs/aws-cdk.aws_elasticache.IUser
the user to add.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromUserGroupId |
Imports an existing user group from attributes. |
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.UserGroup.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.UserGroup.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.UserGroup.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_elasticache } from '@open-constructs/aws-cdk'
aws_elasticache.UserGroup.fromUserGroupId(scope: Construct, id: string, userGroupId: string)
Imports an existing user group from attributes.
- Type: constructs.Construct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userGroupArn |
string |
The ARN of the user group. |
userGroupId |
string |
The ID of the user group. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userGroupArn: string;
- Type: string
The ARN of the user group.
public readonly userGroupId: string;
- Type: string
The ID of the user group.
- Implements: @open-constructs/aws-cdk.aws_redshiftserverless.IWorkgroup
Represents a Redshift Serverless Workgroup construct in AWS CDK.
Example
declare const namespace: Namespace;
declare const vpc: aws_ec2.IVpc;
const nameSpace = new Workgroup(
stack,
'Workgroup',
{
workgroupName: 'my-workgroup',
namespace: namespace,
vpc,
},
);
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
new aws_redshiftserverless.Workgroup(scope: Construct, id: string, props: WorkgroupProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
@open-constructs/aws-cdk.aws_redshiftserverless.WorkgroupProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.WorkgroupProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
public toString(): string
Returns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): void
Apply the given removal policy to this resource.
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
).
- Type: aws-cdk-lib.RemovalPolicy
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromWorkgroupAttributes |
Import an existing workgroup to the stack from its attributes. |
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Workgroup.isConstruct(x: any)
Checks if x
is a construct.
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.
- Type: any
Any object.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Workgroup.isOwnedResource(construct: IConstruct)
Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Workgroup.isResource(construct: IConstruct)
Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
aws_redshiftserverless.Workgroup.fromWorkgroupAttributes(scope: Construct, id: string, attrs: WorkgroupAttributes)
Import an existing workgroup to the stack from its attributes.
- Type: constructs.Construct
- Type: string
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.WorkgroupAttributes
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The connection object associated with the Redshift Serverless Workgroup. |
endpointAddress |
string |
The workgroup endpoint address. |
port |
number |
The workgroup port. |
workgroupArn |
string |
The workgroup Arn. |
workgroupId |
string |
The workgroup id. |
workgroupName |
string |
The workgroup name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The connection object associated with the Redshift Serverless Workgroup.
public readonly endpointAddress: string;
- Type: string
The workgroup endpoint address.
public readonly port: number;
- Type: number
The workgroup port.
public readonly workgroupArn: string;
- Type: string
The workgroup Arn.
public readonly workgroupId: string;
- Type: string
The workgroup id.
public readonly workgroupName: string;
- Type: string
The workgroup name.
Properties for all user types.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const baseUserProps: aws_elasticache.BaseUserProps = { ... }
Name | Type | Description |
---|---|---|
accessString |
string |
Access permissions string used for this user. |
userId |
string |
The ID of the user. |
public readonly accessString: string;
- Type: string
- Default: 'off -@all'
Access permissions string used for this user.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Clusters.RBAC.html#Access-string
public readonly userId: string;
- Type: string
- Default: auto generated
The ID of the user.
Must consist only of alphanumeric characters or hyphens, with the first character as a letter. Cannot end with a hyphen or contain two consecutive hyphens.
Properties for defining a Cost and Usage Report.
import { aws_cur } from '@open-constructs/aws-cdk'
const costReportProps: aws_cur.CostReportProps = { ... }
Name | Type | Description |
---|---|---|
bucket |
aws-cdk-lib.aws_s3.IBucket |
The bucket to place the cost report into. |
costReportName |
string |
The name of the cost report. |
enableDefaultUniqueReportName |
boolean |
Whether to generate a unique report name automatically if the costReportName property is not specified. |
format |
@open-constructs/aws-cdk.aws_cur.CurFormat |
The format to use for the cost and usage report. |
reportGranularity |
@open-constructs/aws-cdk.aws_cur.ReportGranularity |
The granularity of the line items in the report. |
public readonly bucket: IBucket;
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: a new bucket will be created.
The bucket to place the cost report into.
If non is provided, a new bucket will be created.
public readonly costReportName: string;
- Type: string
- Default: a unique name automatically generated if
enableDefaultUniqueReportName
is true, otherwise 'default-cur'.
The name of the cost report.
The name must be unique, is case sensitive, and can't include spaces.
The length of this name must be between 1 and 256.
public readonly enableDefaultUniqueReportName: boolean;
- Type: boolean
- Default: false
Whether to generate a unique report name automatically if the costReportName
property is not specified.
The default value of the costReportName
is normally ‘default-cur’, but setting this flag
to true will generate a unique default value.
This flag is ignored if the costReportName
property is specified.
public readonly format: CurFormat;
- Type: @open-constructs/aws-cdk.aws_cur.CurFormat
- Default: TEXT_OR_CSV
The format to use for the cost and usage report.
public readonly reportGranularity: ReportGranularity;
- Type: @open-constructs/aws-cdk.aws_cur.ReportGranularity
- Default: HOURLY
The granularity of the line items in the report.
Properties required for setting up a daily automatic backup time.
import { aws_fsx } from '@open-constructs/aws-cdk'
const dailyAutomaticBackupStartTimeProps: aws_fsx.DailyAutomaticBackupStartTimeProps = { ... }
Name | Type | Description |
---|---|---|
hour |
number |
The hour of the day (from 0-23) for automatic backup starts. |
minute |
number |
The minute of the hour (from 0-59) for automatic backup starts. |
public readonly hour: number;
- Type: number
The hour of the day (from 0-23) for automatic backup starts.
public readonly minute: number;
- Type: number
The minute of the hour (from 0-59) for automatic backup starts.
Properties required for setting up a daily snapshot time.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const dailySnapshotTimeProps: aws_elasticache.DailySnapshotTimeProps = { ... }
Name | Type | Description |
---|---|---|
hour |
number |
The hour of the day (from 0-23) for snapshot starts. |
minute |
number |
The minute of the hour (from 0-59) for snapshot starts. |
public readonly hour: number;
- Type: number
The hour of the day (from 0-23) for snapshot starts.
public readonly minute: number;
- Type: number
The minute of the hour (from 0-59) for snapshot starts.
Interface representing the attributes of a CodeArtifact domain.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
const domainAttributes: aws_codeartifact.DomainAttributes = { ... }
Name | Type | Description |
---|---|---|
domainArn |
string |
The ARN (Amazon Resource Name) of the CodeArtifact domain. |
domainName |
string |
The name of the CodeArtifact domain. |
domainOwner |
string |
The AWS account ID that owns the domain. |
encryptionKey |
aws-cdk-lib.aws_kms.IKey |
The AWS KMS encryption key associated with the domain, if any. |
public readonly domainArn: string;
- Type: string
The ARN (Amazon Resource Name) of the CodeArtifact domain.
public readonly domainName: string;
- Type: string
The name of the CodeArtifact domain.
public readonly domainOwner: string;
- Type: string
The AWS account ID that owns the domain.
public readonly encryptionKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
The AWS KMS encryption key associated with the domain, if any.
Construction properties for Domain
.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
const domainProps: aws_codeartifact.DomainProps = { ... }
Name | Type | Description |
---|---|---|
domainName |
string |
The name of the Domain. |
encryptionKey |
aws-cdk-lib.aws_kms.IKey |
The key used to encrypt the Domain. |
public readonly domainName: string;
- Type: string
The name of the Domain.
public readonly encryptionKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
- Default: An AWS managed KMS key is used
The key used to encrypt the Domain.
Properties for IAM-enabled users.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const iamUserProps: aws_elasticache.IamUserProps = { ... }
Name | Type | Description |
---|---|---|
accessString |
string |
Access permissions string used for this user. |
userId |
string |
The ID of the user. |
public readonly accessString: string;
- Type: string
- Default: 'off -@all'
Access permissions string used for this user.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Clusters.RBAC.html#Access-string
public readonly userId: string;
- Type: string
- Default: auto generated
The ID of the user.
Must consist only of alphanumeric characters or hyphens, with the first character as a letter. Cannot end with a hyphen or contain two consecutive hyphens.
Attributes for importing an EC2 Instance Connect Endpoint.
import { aws_ec2 } from '@open-constructs/aws-cdk'
const instanceConnectEndpointAttributes: aws_ec2.InstanceConnectEndpointAttributes = { ... }
Name | Type | Description |
---|---|---|
instanceConnectEndpointId |
string |
The ID of the EC2 Instance Connect Endpoint. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups associated with the EC2 Instance Connect Endpoint. |
public readonly instanceConnectEndpointId: string;
- Type: string
The ID of the EC2 Instance Connect Endpoint.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
The security groups associated with the EC2 Instance Connect Endpoint.
Properties for defining an EC2 Instance Connect Endpoint.
import { aws_ec2 } from '@open-constructs/aws-cdk'
const instanceConnectEndpointProps: aws_ec2.InstanceConnectEndpointProps = { ... }
Name | Type | Description |
---|---|---|
vpc |
aws-cdk-lib.aws_ec2.IVpc |
The VPC in which the EC2 Instance Connect Endpoint is created. |
clientToken |
string |
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. |
preserveClientIp |
boolean |
Indicates whether your client's IP address is preserved as the source. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups to associate with the EC2 Instance Connect Endpoint. |
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
The VPC in which the EC2 Instance Connect Endpoint is created.
public readonly clientToken: string;
- Type: string
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public readonly preserveClientIp: boolean;
- Type: boolean
- Default: true
Indicates whether your client's IP address is preserved as the source.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
- Default: a new security group is created
The security groups to associate with the EC2 Instance Connect Endpoint.
Properties required for setting up a weekly maintenance time.
import { aws_fsx } from '@open-constructs/aws-cdk'
const maintenanceTimeProps: aws_fsx.MaintenanceTimeProps = { ... }
Name | Type | Description |
---|---|---|
day |
aws-cdk-lib.aws_fsx.Weekday |
The day of the week for maintenance to be performed. |
hour |
number |
The hour of the day (from 0-23) for maintenance to be performed. |
minute |
number |
The minute of the hour (from 0-59) for maintenance to be performed. |
public readonly day: Weekday;
- Type: aws-cdk-lib.aws_fsx.Weekday
The day of the week for maintenance to be performed.
public readonly hour: number;
- Type: number
The hour of the day (from 0-23) for maintenance to be performed.
public readonly minute: number;
- Type: number
The minute of the hour (from 0-59) for maintenance to be performed.
Attributes for importing a Redshift Serverless Namespace.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
const namespaceAttributes: aws_redshiftserverless.NamespaceAttributes = { ... }
Name | Type | Description |
---|---|---|
namespaceId |
string |
The namespace id. |
namespaceName |
string |
The namespace name. |
public readonly namespaceId: string;
- Type: string
The namespace id.
public readonly namespaceName: string;
- Type: string
The namespace name.
Properties for defining a Redshift Serverless Namespace.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
const namespaceProps: aws_redshiftserverless.NamespaceProps = { ... }
Name | Type | Description |
---|---|---|
adminUsername |
string |
The username of the administrator for the primary database created in the namespace. |
adminUserPassword |
aws-cdk-lib.SecretValue |
The password of the administrator for the primary database created in the namespace. |
dbName |
string |
The name of the primary database created in the namespace. |
defaultIamRole |
aws-cdk-lib.aws_iam.IRole |
The IAM role to set as a default in the namespace. |
finalSnapshotName |
string |
The name of the snapshot to be created before the namespace is deleted. |
finalSnapshotRetentionPeriod |
number |
How long days to retain the final snapshot. |
iamRoles |
aws-cdk-lib.aws_iam.IRole[] |
A list of IAM roles to associate with the namespace. |
kmsKey |
aws-cdk-lib.aws_kms.IKey |
A Customer Managed Key used to encrypt your data. |
logExports |
@open-constructs/aws-cdk.aws_redshiftserverless.LogExport[] |
The types of logs the namespace can export. |
namespaceName |
string |
The namespace name. |
public readonly adminUsername: string;
- Type: string
- Default: no admin user
The username of the administrator for the primary database created in the namespace.
You must specify both adminUsername
and adminUserPassword
, or neither.
public readonly adminUserPassword: SecretValue;
- Type: aws-cdk-lib.SecretValue
- Default: no admin user
The password of the administrator for the primary database created in the namespace.
You must specify both adminUsername
and adminUserPassword
, or neither.
public readonly dbName: string;
- Type: string
- Default: 'dev'
The name of the primary database created in the namespace.
public readonly defaultIamRole: IRole;
- Type: aws-cdk-lib.aws_iam.IRole
- Default: no default IAM role
The IAM role to set as a default in the namespace.
defaultIamRole
must be included in iamRoles
.
public readonly finalSnapshotName: string;
- Type: string
- Default: no final snapshot
The name of the snapshot to be created before the namespace is deleted.
If not specified, the final snapshot will not be taken.
public readonly finalSnapshotRetentionPeriod: number;
- Type: number
- Default: Retained indefinitely if
finalSnapshotName
is specified, otherwise no final snapshot
How long days to retain the final snapshot.
You must set finalSnapshotName
when you specify finalSnapshotRetentionPeriod
.
public readonly iamRoles: IRole[];
- Type: aws-cdk-lib.aws_iam.IRole[]
- Default: no IAM role associated
A list of IAM roles to associate with the namespace.
public readonly kmsKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
- Default: use AWS managed key
A Customer Managed Key used to encrypt your data.
public readonly logExports: LogExport[];
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.LogExport[]
- Default: no logs export
The types of logs the namespace can export.
public readonly namespaceName: string;
- Type: string
- Default: auto generate
The namespace name.
Properties for no password required users.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const noPasswordRequiredUserProps: aws_elasticache.NoPasswordRequiredUserProps = { ... }
Name | Type | Description |
---|---|---|
accessString |
string |
Access permissions string used for this user. |
userId |
string |
The ID of the user. |
userName |
string |
The username of the user. |
public readonly accessString: string;
- Type: string
- Default: 'off -@all'
Access permissions string used for this user.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Clusters.RBAC.html#Access-string
public readonly userId: string;
- Type: string
- Default: auto generated
The ID of the user.
Must consist only of alphanumeric characters or hyphens, with the first character as a letter. Cannot end with a hyphen or contain two consecutive hyphens.
public readonly userName: string;
- Type: string
- Default: same as userId
The username of the user.
Attributes for importing a no password required user.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const noPasswordUserAttributes: aws_elasticache.NoPasswordUserAttributes = { ... }
Name | Type | Description |
---|---|---|
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
The configuration for the Amazon FSx for NetApp ONTAP file system.
import { aws_fsx } from '@open-constructs/aws-cdk'
const ontapConfiguration: aws_fsx.OntapConfiguration = { ... }
Name | Type | Description |
---|---|---|
automaticBackupRetention |
aws-cdk-lib.Duration |
The number of days to retain automatic backups. |
dailyAutomaticBackupStartTime |
@open-constructs/aws-cdk.aws_fsx.DailyAutomaticBackupStartTime |
Start time for 30-minute daily automatic backup window in Coordinated Universal Time (UTC). |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The FSx for ONTAP file system deployment type to use in creating the file system. |
diskIops |
number |
The total number of SSD IOPS provisioned for the file system. |
endpointIpAddressRange |
string |
The IP address range in which the endpoints to access your file system will be created. |
fsxAdminPassword |
aws-cdk-lib.SecretValue |
The ONTAP administrative password for the fsxadmin user with which you administer your file system using the NetApp ONTAP CLI and REST API. |
haPairs |
number |
How many high-availability (HA) pairs of file servers will power your file system. |
preferredSubnet |
aws-cdk-lib.aws_ec2.ISubnet |
The subnet in which you want the preferred file server to be located. |
routeTables |
aws-cdk-lib.aws_ec2.IRouteTable[] |
The route tables in which Amazon FSx creates the rules for routing traffic to the correct file server. |
throughputCapacityPerHaPair |
@open-constructs/aws-cdk.aws_fsx.ThroughputCapacityPerHaPair |
The throughput capacity per HA pair for the file system. |
weeklyMaintenanceStartTime |
@open-constructs/aws-cdk.aws_fsx.MaintenanceTime |
The preferred day and time to perform weekly maintenance. |
public readonly automaticBackupRetention: Duration;
- Type: aws-cdk-lib.Duration
- Default: 30 days
The number of days to retain automatic backups.
Setting this property to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
public readonly dailyAutomaticBackupStartTime: DailyAutomaticBackupStartTime;
- Type: @open-constructs/aws-cdk.aws_fsx.DailyAutomaticBackupStartTime
- Default: no backup window
Start time for 30-minute daily automatic backup window in Coordinated Universal Time (UTC).
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
- Default: OntapDeploymentType.MULTI_AZ_2
The FSx for ONTAP file system deployment type to use in creating the file system.
public readonly diskIops: number;
- Type: number
- Default: 3 IOPS * GB of storage capacity * HAPairs
The total number of SSD IOPS provisioned for the file system.
The minimum and maximum values for this property depend on the value of HAPairs and StorageCapacity. The minimum value is calculated as StorageCapacity * 3 * HAPairs (3 IOPS per GB of StorageCapacity). The maximum value is calculated as 200,000 * HAPairs.
public readonly endpointIpAddressRange: string;
- Type: string
- Default: an unused IP address range from the 198.19.* range
The IP address range in which the endpoints to access your file system will be created.
You can have overlapping endpoint IP addresses for file systems deployed in the same VPC/route tables, as long as they don't overlap with any subnet.
public readonly fsxAdminPassword: SecretValue;
- Type: aws-cdk-lib.SecretValue
- Default: do not set an admin password
The ONTAP administrative password for the fsxadmin
user with which you administer your file system using the NetApp ONTAP CLI and REST API.
If you don't specify a password, Amazon FSx will not set one. In that case, the user will not be able to log in.
You can change the admin password at any time through the management console.
public readonly haPairs: number;
- Type: number
- Default: 1
How many high-availability (HA) pairs of file servers will power your file system.
First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up to 12 HA pairs.
The value of this property affects the values of storageCapacity
, iops
, and throughputCapacity
.
Block storage protocol support (iSCSI and NVMe over TCP) is disabled on file systems with more than 6 HA pairs.
https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/supported-fsx-clients.html#using-block-storage
public readonly preferredSubnet: ISubnet;
- Type: aws-cdk-lib.aws_ec2.ISubnet
- Default: no default value (This value is not used for single-AZ file systems, but it is required for multi-AZ file systems)
The subnet in which you want the preferred file server to be located.
This value is required when deploymentType
is set to MULTI_AZ_1
or MULTI_AZ_2
.
public readonly routeTables: IRouteTable[];
- Type: aws-cdk-lib.aws_ec2.IRouteTable[]
- Default: Amazon FSx selects your VPC's default route table.
The route tables in which Amazon FSx creates the rules for routing traffic to the correct file server.
You should specify all virtual private cloud (VPC) route tables associated with the subnets in which your clients are located.
Amazon FSx manages VPC route tables for Multi-AZ file systems using tag-based authentication. These route tables are tagged with Key: AmazonFSx; Value: ManagedByAmazonFSx.
https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/unable-to-access.html#vpc-route-tables-not-tagged
public readonly throughputCapacityPerHaPair: ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.ThroughputCapacityPerHaPair
- Default: Amazon FSx determines the throughput capacity based on the storage capacity
The throughput capacity per HA pair for the file system.
https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-throughput-capacity.html
public readonly weeklyMaintenanceStartTime: MaintenanceTime;
- Type: @open-constructs/aws-cdk.aws_fsx.MaintenanceTime
- Default: automatically set by Amazon FSx
The preferred day and time to perform weekly maintenance.
Properties specific to the NetApp ONTAP version of the FSx file system.
import { aws_fsx } from '@open-constructs/aws-cdk'
const ontapFileSystemProps: aws_fsx.OntapFileSystemProps = { ... }
Name | Type | Description |
---|---|---|
storageCapacityGiB |
number |
The storage capacity of the file system being created. |
vpc |
aws-cdk-lib.aws_ec2.IVpc |
The VPC to launch the file system in. |
backupId |
string |
The ID of the backup. |
kmsKey |
aws-cdk-lib.aws_kms.IKey |
The KMS key used for encryption to protect your data at rest. |
removalPolicy |
aws-cdk-lib.RemovalPolicy |
Policy to apply when the file system is removed from the stack. |
securityGroup |
aws-cdk-lib.aws_ec2.ISecurityGroup |
Security Group to assign to this file system. |
storageType |
aws-cdk-lib.aws_fsx.StorageType |
The storage type for the file system that you're creating. |
ontapConfiguration |
@open-constructs/aws-cdk.aws_fsx.OntapConfiguration |
Additional configuration for FSx specific to NetApp ONTAP. |
vpcSubnets |
aws-cdk-lib.aws_ec2.ISubnet[] |
The subnet that the file system will be accessible from. |
public readonly storageCapacityGiB: number;
- Type: number
The storage capacity of the file system being created.
For Windows file systems, valid values are 32 GiB to 65,536 GiB. For SCRATCH_1 deployment types, valid values are 1,200, 2,400, 3,600, then continuing in increments of 3,600 GiB. For SCRATCH_2, PERSISTENT_2 and PERSISTENT_1 deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. For PERSISTENT_1 HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
The VPC to launch the file system in.
public readonly backupId: string;
- Type: string
- Default: no backup will be used.
The ID of the backup.
Specifies the backup to use if you're creating a file system from an existing backup.
public readonly kmsKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
- Default: the aws/fsx default KMS key for the AWS account being deployed into.
The KMS key used for encryption to protect your data at rest.
public readonly removalPolicy: RemovalPolicy;
- Type: aws-cdk-lib.RemovalPolicy
- Default: RemovalPolicy.RETAIN
Policy to apply when the file system is removed from the stack.
public readonly securityGroup: ISecurityGroup;
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup
- Default: creates new security group which allows all outbound traffic.
Security Group to assign to this file system.
public readonly storageType: StorageType;
- Type: aws-cdk-lib.aws_fsx.StorageType
- Default: StorageType.SSD
The storage type for the file system that you're creating.
public readonly ontapConfiguration: OntapConfiguration;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapConfiguration
Additional configuration for FSx specific to NetApp ONTAP.
public readonly vpcSubnets: ISubnet[];
- Type: aws-cdk-lib.aws_ec2.ISubnet[]
The subnet that the file system will be accessible from.
For MULTI_AZ_1 deployment types, provide exactly two subnets, one for the preferred file server and one for the standby file server.
Specify one of these subnets as the preferred subnet using OntapConfiguration.preferredSubnet
property for multi-AZ file system.
Attributes for importing a password-authenticated user.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const passwordUserAttributes: aws_elasticache.PasswordUserAttributes = { ... }
Name | Type | Description |
---|---|---|
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
Properties for password-authenticated users.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const passwordUserProps: aws_elasticache.PasswordUserProps = { ... }
Name | Type | Description |
---|---|---|
accessString |
string |
Access permissions string used for this user. |
userId |
string |
The ID of the user. |
passwords |
aws-cdk-lib.SecretValue[] |
Passwords used for this user account. |
userName |
string |
The username of the user. |
public readonly accessString: string;
- Type: string
- Default: 'off -@all'
Access permissions string used for this user.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Clusters.RBAC.html#Access-string
public readonly userId: string;
- Type: string
- Default: auto generated
The ID of the user.
Must consist only of alphanumeric characters or hyphens, with the first character as a letter. Cannot end with a hyphen or contain two consecutive hyphens.
public readonly passwords: SecretValue[];
- Type: aws-cdk-lib.SecretValue[]
- Default: automatically generate a password for the user
Passwords used for this user account.
You can create up to two passwords for each user.
public readonly userName: string;
- Type: string
- Default: same as userId
The username of the user.
Represents the attributes of an existing CodeArtifact repository.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
const repositoryAttributes: aws_codeartifact.RepositoryAttributes = { ... }
Name | Type | Description |
---|---|---|
domain |
@open-constructs/aws-cdk.aws_codeartifact.IDomain |
The CodeArtifact domain associated with this repository. |
repositoryArn |
string |
The ARN (Amazon Resource Name) of the CodeArtifact repository. |
repositoryName |
string |
The name of the CodeArtifact repository. |
public readonly domain: IDomain;
- Type: @open-constructs/aws-cdk.aws_codeartifact.IDomain
The CodeArtifact domain associated with this repository.
public readonly repositoryArn: string;
- Type: string
The ARN (Amazon Resource Name) of the CodeArtifact repository.
public readonly repositoryName: string;
- Type: string
The name of the CodeArtifact repository.
Properties for creating a new CodeArtifact repository.
import { aws_codeartifact } from '@open-constructs/aws-cdk'
const repositoryProps: aws_codeartifact.RepositoryProps = { ... }
Name | Type | Description |
---|---|---|
domain |
@open-constructs/aws-cdk.aws_codeartifact.IDomain |
The domain that contains the repository. |
description |
string |
The description of the repository. |
externalConnection |
@open-constructs/aws-cdk.aws_codeartifact.RepositoryConnection |
The connections to external repositories (like npmjs, pypi, etc.). |
repositoryName |
string |
The name of the repository. |
upstreams |
@open-constructs/aws-cdk.aws_codeartifact.IRepository[] |
A list of upstream Codeartifact repositories to associate with the repository. |
public readonly domain: IDomain;
- Type: @open-constructs/aws-cdk.aws_codeartifact.IDomain
The domain that contains the repository.
public readonly description: string;
- Type: string
- Default: No description
The description of the repository.
public readonly externalConnection: RepositoryConnection;
- Type: @open-constructs/aws-cdk.aws_codeartifact.RepositoryConnection
- Default: No external connections
The connections to external repositories (like npmjs, pypi, etc.).
You can use the AWS CLI to connect your CodeArtifact repository to an external repository by adding an external connection directly to the repository. This will allow users connected to the CodeArtifact repository, or any of its downstream repositories, to fetch packages from the configured external repository. Each CodeArtifact repository can only have one external connection.
public readonly repositoryName: string;
- Type: string
- Default: A name is automatically generated
The name of the repository.
public readonly upstreams: IRepository[];
- Type: @open-constructs/aws-cdk.aws_codeartifact.IRepository[]
- Default: No upstream repositories
A list of upstream Codeartifact repositories to associate with the repository.
The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. see https://docs.aws.amazon.com/codeartifact/latest/ug/repo-upstream-behavior.html#package-retention-intermediate-repositories
Attributes for importing an ElastiCache Serverless Cache.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const serverlessCacheAttributes: aws_elasticache.ServerlessCacheAttributes = { ... }
Name | Type | Description |
---|---|---|
endpointAddress |
string |
The DNS hostname of the cache node. |
endpointPort |
number |
The port number that the cache engine is listening on. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups to associate with the serverless cache. |
serverlessCacheName |
string |
The serverless cache name. |
public readonly endpointAddress: string;
- Type: string
The DNS hostname of the cache node.
public readonly endpointPort: number;
- Type: number
The port number that the cache engine is listening on.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
The security groups to associate with the serverless cache.
public readonly serverlessCacheName: string;
- Type: string
The serverless cache name.
Properties for defining an ElastiCache Serverless Cache.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const serverlessCacheProps: aws_elasticache.ServerlessCacheProps = { ... }
Name | Type | Description |
---|---|---|
engine |
@open-constructs/aws-cdk.aws_elasticache.Engine |
The engine the serverless cache is compatible with. |
majorEngineVersion |
@open-constructs/aws-cdk.aws_elasticache.MajorVersion |
The version number of the engine the serverless cache is compatible with. |
vpc |
aws-cdk-lib.aws_ec2.IVpc |
The VPC to place the serverless cache in. |
dailySnapshotTime |
@open-constructs/aws-cdk.aws_elasticache.DailySnapshotTime |
The daily time when a cache snapshot will be created. |
description |
string |
A description of the serverless cache. |
finalSnapshotName |
string |
The name of the final snapshot taken of a cache before the cache is deleted. |
kmsKey |
aws-cdk-lib.aws_kms.IKey |
The Customer Managed Key that is used to encrypt data at rest in the serverless cache. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups to associate with the serverless cache. |
serverlessCacheName |
string |
The unique identifier of the serverless cache. |
snapshotArnsToRestore |
string[] |
The ARN of the snapshot from which to restore data into the new cache. |
snapshotRetentionLimit |
number |
The number of serverless cache snapshots the system will retain. To enable automatic backups, this property must be set. |
userGroup |
@open-constructs/aws-cdk.aws_elasticache.IUserGroup |
The user group associated with the serverless cache. |
vpcSubnets |
aws-cdk-lib.aws_ec2.SubnetSelection |
Where to place the serverless cache within the VPC. |
public readonly engine: Engine;
- Type: @open-constructs/aws-cdk.aws_elasticache.Engine
The engine the serverless cache is compatible with.
public readonly majorEngineVersion: MajorVersion;
- Type: @open-constructs/aws-cdk.aws_elasticache.MajorVersion
The version number of the engine the serverless cache is compatible with.
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
The VPC to place the serverless cache in.
public readonly dailySnapshotTime: DailySnapshotTime;
- Type: @open-constructs/aws-cdk.aws_elasticache.DailySnapshotTime
- Default: ElastiCache automatically assigns the backup window if `snapshotRetentionLimit` is set. Otherwise, no snapshots are taken.
The daily time when a cache snapshot will be created.
This property must be set along with snapshotRetentionLimit
.
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/backups-automatic.html
public readonly description: string;
- Type: string
- Default: no description
A description of the serverless cache.
The description can have up to 255 characters and must not contain < and > characters.
public readonly finalSnapshotName: string;
- Type: string
- Default: no final snapshot taken
The name of the final snapshot taken of a cache before the cache is deleted.
public readonly kmsKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
- Default: use AWS managed key
The Customer Managed Key that is used to encrypt data at rest in the serverless cache.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
- Default: a new security group is created
The security groups to associate with the serverless cache.
public readonly serverlessCacheName: string;
- Type: string
- Default: auto generate
The unique identifier of the serverless cache.
The name can have up to 40 characters, and must not contain spaces.
public readonly snapshotArnsToRestore: string[];
- Type: string[]
- Default: not restored
The ARN of the snapshot from which to restore data into the new cache.
public readonly snapshotRetentionLimit: number;
- Type: number
- Default: no automatic backups
The number of serverless cache snapshots the system will retain. To enable automatic backups, this property must be set.
`snapshotRetentionLimit` must be between 1 and 35.
public readonly userGroup: IUserGroup;
- Type: @open-constructs/aws-cdk.aws_elasticache.IUserGroup
- Default: no user group associated
The user group associated with the serverless cache.
Available for Valkey and Redis OSS only.
public readonly vpcSubnets: SubnetSelection;
- Type: aws-cdk-lib.aws_ec2.SubnetSelection
- Default: private subnets
Where to place the serverless cache within the VPC.
Attributes for importing a User Group.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const userGroupAttributes: aws_elasticache.UserGroupAttributes = { ... }
Name | Type | Description |
---|---|---|
userGroupId |
string |
The ID of the user group. |
public readonly userGroupId: string;
- Type: string
The ID of the user group.
Properties for defining a User Group.
import { aws_elasticache } from '@open-constructs/aws-cdk'
const userGroupProps: aws_elasticache.UserGroupProps = { ... }
Name | Type | Description |
---|---|---|
users |
@open-constructs/aws-cdk.aws_elasticache.IUser[] |
The list of User that belong to the user group. |
userGroupId |
string |
The ID of the user group. |
public readonly users: IUser[];
- Type: @open-constructs/aws-cdk.aws_elasticache.IUser[]
The list of User that belong to the user group.
A user with the username default
must be included in users
.
public readonly userGroupId: string;
- Type: string
- Default: auto generate
The ID of the user group.
`userGroupId` can have up to 40 characters.
`userGroupId` must consist only of alphanumeric characters or hyphens, with the first character as a letter, and it can't end with a hyphen or contain two consecutive hyphens.
Attributes for importing a Redshift Serverless Workgroup.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
const workgroupAttributes: aws_redshiftserverless.WorkgroupAttributes = { ... }
Name | Type | Description |
---|---|---|
endpointAddress |
string |
The workgroup endpoint address. |
port |
number |
The workgroup port. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups associated with the Redshift Serverless Workgroup. |
workgroupId |
string |
The workgroup id. |
workgroupName |
string |
The workgroup name. |
public readonly endpointAddress: string;
- Type: string
The workgroup endpoint address.
public readonly port: number;
- Type: number
The workgroup port.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
The security groups associated with the Redshift Serverless Workgroup.
public readonly workgroupId: string;
- Type: string
The workgroup id.
public readonly workgroupName: string;
- Type: string
The workgroup name.
Properties for defining a Redshift Serverless Workgroup.
import { aws_redshiftserverless } from '@open-constructs/aws-cdk'
const workgroupProps: aws_redshiftserverless.WorkgroupProps = { ... }
Name | Type | Description |
---|---|---|
vpc |
aws-cdk-lib.aws_ec2.IVpc |
The VPC to place the workgroup in. |
baseCapacity |
number |
The base compute capacity of the workgroup in Redshift Processing Units (RPUs). |
configParameters |
{[ key: string ]: string} |
A list of parameters to set for finer control over a database. |
enhancedVpcRouting |
boolean |
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC. |
namespace |
@open-constructs/aws-cdk.aws_redshiftserverless.INamespace |
The namespace the workgroup is associated with. |
port |
number |
The custom port to use when connecting to a workgroup. |
publiclyAccessible |
boolean |
A value that specifies whether the workgroup can be accessible from a public network. |
securityGroups |
aws-cdk-lib.aws_ec2.ISecurityGroup[] |
The security groups to associate with the workgroup. |
vpcSubnets |
aws-cdk-lib.aws_ec2.SubnetSelection |
Where to place the workgroup within the VPC. |
workgroupName |
string |
The workgroup name. |
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
The VPC to place the workgroup in.
vpc
must have at least 3 subnets, and they must span across 3 Availability Zones.
public readonly baseCapacity: number;
- Type: number
- Default: 128
The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
You can adjust the base capacity setting from 8 RPUs to 512 RPUs in units of 8. Also you can increment or decrement RPUs in units of 32 when setting a base capacity between 512-1024.
https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-capacity.html
public readonly configParameters: {[ key: string ]: string};
- Type: {[ key: string ]: string}
- Default: no config parameters
A list of parameters to set for finer control over a database.
public readonly enhancedVpcRouting: boolean;
- Type: boolean
- Default: false
The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
public readonly namespace: INamespace;
- Type: @open-constructs/aws-cdk.aws_redshiftserverless.INamespace
- Default: the workgroup is not associated with any namespace
The namespace the workgroup is associated with.
public readonly port: number;
- Type: number
- Default: 5439
The custom port to use when connecting to a workgroup.
Valid port ranges are 5431-5455 and 8191-8215.
public readonly publiclyAccessible: boolean;
- Type: boolean
- Default: false
A value that specifies whether the workgroup can be accessible from a public network.
public readonly securityGroups: ISecurityGroup[];
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup[]
- Default: a new security group is created
The security groups to associate with the workgroup.
public readonly vpcSubnets: SubnetSelection;
- Type: aws-cdk-lib.aws_ec2.SubnetSelection
- Default: private subnets
Where to place the workgroup within the VPC.
public readonly workgroupName: string;
- Type: string
- Default: auto generate
The workgroup name.
`workgroupName` must be between 3 and 64 characters long, contain only lowercase letters, numbers, and hyphens.
Enum for the possible formats of a cost report.
import { aws_cur } from '@open-constructs/aws-cdk'
new aws_cur.CurFormat(compression: string, format: string)
Name | Type | Description |
---|---|---|
compression |
string |
No description. |
format |
string |
No description. |
- Type: string
- Type: string
Name | Description |
---|---|
for |
Returns a CurFormat instance for the given compression and format string values. |
import { aws_cur } from '@open-constructs/aws-cdk'
aws_cur.CurFormat.for(compression: string, format: string)
Returns a CurFormat instance for the given compression and format string values.
- Type: string
The compression string value.
- Type: string
The format string value.
Name | Type | Description |
---|---|---|
compression |
string |
No description. |
format |
string |
No description. |
public readonly compression: string;
- Type: string
public readonly format: string;
- Type: string
Name | Type | Description |
---|---|---|
PARQUET |
@open-constructs/aws-cdk.aws_cur.CurFormat |
Parquet format. |
TEXT_OR_CSV |
@open-constructs/aws-cdk.aws_cur.CurFormat |
GZIP compressed text or CSV format. |
public readonly PARQUET: CurFormat;
- Type: @open-constructs/aws-cdk.aws_cur.CurFormat
Parquet format.
public readonly TEXT_OR_CSV: CurFormat;
- Type: @open-constructs/aws-cdk.aws_cur.CurFormat
GZIP compressed text or CSV format.
Class for scheduling a daily automatic backup time.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.DailyAutomaticBackupStartTime(props: DailyAutomaticBackupStartTimeProps)
Name | Type | Description |
---|---|---|
props |
@open-constructs/aws-cdk.aws_fsx.DailyAutomaticBackupStartTimeProps |
No description. |
- Type: @open-constructs/aws-cdk.aws_fsx.DailyAutomaticBackupStartTimeProps
Name | Description |
---|---|
toTimestamp |
Converts an hour, and minute into HH:MM string. |
public toTimestamp(): string
Converts an hour, and minute into HH:MM string.
Class for scheduling a daily snapshot time.
import { aws_elasticache } from '@open-constructs/aws-cdk'
new aws_elasticache.DailySnapshotTime(props: DailySnapshotTimeProps)
Name | Type | Description |
---|---|---|
props |
@open-constructs/aws-cdk.aws_elasticache.DailySnapshotTimeProps |
No description. |
- Type: @open-constructs/aws-cdk.aws_elasticache.DailySnapshotTimeProps
Name | Description |
---|---|
toTimestamp |
Converts an hour, and minute into HH:MM string. |
public toTimestamp(): string
Converts an hour, and minute into HH:MM string.
Class for scheduling a weekly maintenance time.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.MaintenanceTime(props: MaintenanceTimeProps)
Name | Type | Description |
---|---|---|
props |
@open-constructs/aws-cdk.aws_fsx.MaintenanceTimeProps |
No description. |
- Type: @open-constructs/aws-cdk.aws_fsx.MaintenanceTimeProps
Name | Description |
---|---|
toTimestamp |
Converts a day, hour, and minute into a timestamp as used by FSx for Lustre's weeklyMaintenanceStartTime field. |
public toTimestamp(): string
Converts a day, hour, and minute into a timestamp as used by FSx for Lustre's weeklyMaintenanceStartTime field.
The throughput capacity for the Multi-AZ 1 deployment type.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.MultiAz1ThroughputCapacityPerHaPair(capacity: number)
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
- Type: number
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The deployment type of the throughput capacity. |
public readonly capacity: number;
- Type: number
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
The deployment type of the throughput capacity.
Name | Type | Description |
---|---|---|
MB_PER_SEC_1024 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 1024 MBps per HA pair. |
MB_PER_SEC_128 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 128 MBps per HA pair. |
MB_PER_SEC_2048 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 2048 MBps per HA pair. |
MB_PER_SEC_256 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 256 MBps per HA pair. |
MB_PER_SEC_4096 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 4096 MBps per HA pair. |
MB_PER_SEC_512 |
@open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair |
The throughput capacity of 512 MBps per HA pair. |
public readonly MB_PER_SEC_1024: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 1024 MBps per HA pair.
public readonly MB_PER_SEC_128: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 128 MBps per HA pair.
public readonly MB_PER_SEC_2048: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 2048 MBps per HA pair.
public readonly MB_PER_SEC_256: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 256 MBps per HA pair.
public readonly MB_PER_SEC_4096: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 4096 MBps per HA pair.
public readonly MB_PER_SEC_512: MultiAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz1ThroughputCapacityPerHaPair
The throughput capacity of 512 MBps per HA pair.
The throughput capacity for the Multi-AZ 2 deployment type.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.MultiAz2ThroughputCapacityPerHaPair(capacity: number)
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
- Type: number
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The deployment type of the throughput capacity. |
public readonly capacity: number;
- Type: number
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
The deployment type of the throughput capacity.
Name | Type | Description |
---|---|---|
MB_PER_SEC_1536 |
@open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair |
The throughput capacity of 1536 MBps per HA pair. |
MB_PER_SEC_3072 |
@open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair |
The throughput capacity of 3072 MBps per HA pair. |
MB_PER_SEC_384 |
@open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair |
The throughput capacity of 384 MBps per HA pair. |
MB_PER_SEC_6144 |
@open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair |
The throughput capacity of 6144 MBps per HA pair. |
MB_PER_SEC_768 |
@open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair |
The throughput capacity of 768 MBps per HA pair. |
public readonly MB_PER_SEC_1536: MultiAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair
The throughput capacity of 1536 MBps per HA pair.
public readonly MB_PER_SEC_3072: MultiAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair
The throughput capacity of 3072 MBps per HA pair.
public readonly MB_PER_SEC_384: MultiAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair
The throughput capacity of 384 MBps per HA pair.
public readonly MB_PER_SEC_6144: MultiAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair
The throughput capacity of 6144 MBps per HA pair.
public readonly MB_PER_SEC_768: MultiAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.MultiAz2ThroughputCapacityPerHaPair
The throughput capacity of 768 MBps per HA pair.
Enum for the possible granularities of a cost report.
import { aws_cur } from '@open-constructs/aws-cdk'
new aws_cur.ReportGranularity(value: string)
Name | Type | Description |
---|---|---|
value |
string |
No description. |
- Type: string
Name | Description |
---|---|
for |
Returns a ReportGranularity instance for the given granularity string value. |
import { aws_cur } from '@open-constructs/aws-cdk'
aws_cur.ReportGranularity.for(granularity: string)
Returns a ReportGranularity instance for the given granularity string value.
- Type: string
The granularity string value to create an instance for.
Name | Type | Description |
---|---|---|
value |
string |
No description. |
public readonly value: string;
- Type: string
Name | Type | Description |
---|---|---|
DAILY |
@open-constructs/aws-cdk.aws_cur.ReportGranularity |
Daily granularity. |
HOURLY |
@open-constructs/aws-cdk.aws_cur.ReportGranularity |
Hourly granularity. |
MONTHLY |
@open-constructs/aws-cdk.aws_cur.ReportGranularity |
Weekly granularity. |
public readonly DAILY: ReportGranularity;
- Type: @open-constructs/aws-cdk.aws_cur.ReportGranularity
Daily granularity.
public readonly HOURLY: ReportGranularity;
- Type: @open-constructs/aws-cdk.aws_cur.ReportGranularity
Hourly granularity.
public readonly MONTHLY: ReportGranularity;
- Type: @open-constructs/aws-cdk.aws_cur.ReportGranularity
Weekly granularity.
The throughput capacity for the Single-AZ 1 deployment type.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.SingleAz1ThroughputCapacityPerHaPair(capacity: number)
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
- Type: number
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The deployment type of the throughput capacity. |
public readonly capacity: number;
- Type: number
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
The deployment type of the throughput capacity.
Name | Type | Description |
---|---|---|
MB_PER_SEC_1024 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 1024 MBps per HA pair. |
MB_PER_SEC_128 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 128 MBps per HA pair. |
MB_PER_SEC_2048 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 2048 MBps per HA pair. |
MB_PER_SEC_256 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 256 MBps per HA pair. |
MB_PER_SEC_4096 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 4096 MBps per HA pair. |
MB_PER_SEC_512 |
@open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair |
The throughput capacity of 512 MBps per HA pair. |
public readonly MB_PER_SEC_1024: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 1024 MBps per HA pair.
public readonly MB_PER_SEC_128: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 128 MBps per HA pair.
public readonly MB_PER_SEC_2048: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 2048 MBps per HA pair.
public readonly MB_PER_SEC_256: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 256 MBps per HA pair.
public readonly MB_PER_SEC_4096: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 4096 MBps per HA pair.
public readonly MB_PER_SEC_512: SingleAz1ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz1ThroughputCapacityPerHaPair
The throughput capacity of 512 MBps per HA pair.
The throughput capacity for the Single-AZ 2 deployment type.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.SingleAz2ThroughputCapacityPerHaPair(capacity: number)
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
- Type: number
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The deployment type of the throughput capacity. |
public readonly capacity: number;
- Type: number
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
The deployment type of the throughput capacity.
Name | Type | Description |
---|---|---|
MB_PER_SEC_1536 |
@open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair |
The throughput capacity of 1536 MBps per HA pair. |
MB_PER_SEC_3072 |
@open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair |
The throughput capacity of 3072 MBps per HA pair. |
MB_PER_SEC_6144 |
@open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair |
The throughput capacity of 6144 MBps per HA pair. |
public readonly MB_PER_SEC_1536: SingleAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair
The throughput capacity of 1536 MBps per HA pair.
public readonly MB_PER_SEC_3072: SingleAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair
The throughput capacity of 3072 MBps per HA pair.
public readonly MB_PER_SEC_6144: SingleAz2ThroughputCapacityPerHaPair;
- Type: @open-constructs/aws-cdk.aws_fsx.SingleAz2ThroughputCapacityPerHaPair
The throughput capacity of 6144 MBps per HA pair.
The throughput capacity per HA pair for an Amazon FSx for NetApp ONTAP file system.
import { aws_fsx } from '@open-constructs/aws-cdk'
new aws_fsx.ThroughputCapacityPerHaPair(capacity: number)
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
- Type: number
Name | Type | Description |
---|---|---|
capacity |
number |
No description. |
deploymentType |
@open-constructs/aws-cdk.aws_fsx.OntapDeploymentType |
The deployment type of the throughput capacity. |
public readonly capacity: number;
- Type: number
public readonly deploymentType: OntapDeploymentType;
- Type: @open-constructs/aws-cdk.aws_fsx.OntapDeploymentType
The deployment type of the throughput capacity.
-
Extends: aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_codeartifact.Domain, @open-constructs/aws-cdk.aws_codeartifact.IDomain
Represents a CodeArtifact Domain.
Name | Description |
---|---|
addToResourcePolicy |
Adds a statement to the Codeartifact domain resource policy. |
grant |
Grants permissions to the specified grantee on this CodeArtifact domain. |
grantContribute |
Grants contribute permissions to the specified grantee on this CodeArtifact domain. |
public addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult
Adds a statement to the Codeartifact domain resource policy.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
The policy statement to add.
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grants permissions to the specified grantee on this CodeArtifact domain.
It handles both same-environment and cross-environment scenarios:
- For same-environment grants, it adds the permissions to the principal or resource.
- For cross-environment grants, it adds the permissions to both the principal and the resource.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
- Type: ...string[]
The actions to grant.
These should be valid CodeArtifact actions.
public grantContribute(grantee: IGrantable): Grant
Grants contribute permissions to the specified grantee on this CodeArtifact domain.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant contribute permissions to.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
domainArn |
string |
The ARN of the Domain. |
domainName |
string |
The name of the Domain. |
domainOwner |
string |
12-digit account number of the AWS account that owns the domain that contains the Domain. |
domainEncryptionKey |
string |
The ARN of the key used to encrypt the Domain. |
encryptionKey |
aws-cdk-lib.aws_kms.IKey |
The KMS key used to encrypt the Domain. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly domainArn: string;
- Type: string
The ARN of the Domain.
public readonly domainName: string;
- Type: string
The name of the Domain.
public readonly domainOwner: string;
- Type: string
12-digit account number of the AWS account that owns the domain that contains the Domain.
public readonly domainEncryptionKey: string;
- Type: string
The ARN of the key used to encrypt the Domain.
public readonly encryptionKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
The KMS key used to encrypt the Domain.
-
Extends: @open-constructs/aws-cdk.aws_elasticache.IUser
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.IamUser, @open-constructs/aws-cdk.aws_elasticache.IIamUser
Interface for IAM-enabled users.
Name | Description |
---|---|
grant |
Grant permissions to this user. |
grantConnect |
Grant connect permissions to this user. |
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grant permissions to this user.
- Type: aws-cdk-lib.aws_iam.IGrantable
- Type: ...string[]
public grantConnect(grantee: IGrantable): Grant
Grant connect permissions to this user.
- Type: aws-cdk-lib.aws_iam.IGrantable
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
-
Extends: aws-cdk-lib.aws_ec2.IConnectable, aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_ec2.InstanceConnectEndpoint, @open-constructs/aws-cdk.aws_ec2.IInstanceConnectEndpoint
An EC2 Instance Connect Endpoint.
Name | Type | Description |
---|---|---|
connections |
aws-cdk-lib.aws_ec2.Connections |
The network connections associated with this resource. |
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
instanceConnectEndpointId |
string |
The ID of the EC2 Instance Connect Endpoint. |
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The network connections associated with this resource.
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly instanceConnectEndpointId: string;
- Type: string
The ID of the EC2 Instance Connect Endpoint.
-
Extends: aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_redshiftserverless.Namespace, @open-constructs/aws-cdk.aws_redshiftserverless.INamespace
A Redshift Serverless Namespace.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
namespaceArn |
string |
The namespace ARN. |
namespaceId |
string |
The namespace id. |
namespaceName |
string |
The namespace name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly namespaceArn: string;
- Type: string
The namespace ARN.
public readonly namespaceId: string;
- Type: string
The namespace id.
public readonly namespaceName: string;
- Type: string
The namespace name.
-
Extends: @open-constructs/aws-cdk.aws_elasticache.IUser
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.NoPasswordRequiredUser, @open-constructs/aws-cdk.aws_elasticache.INoPasswordRequiredUser
Interface for no password required users.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
-
Extends: @open-constructs/aws-cdk.aws_elasticache.IUser
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.PasswordUser, @open-constructs/aws-cdk.aws_elasticache.IPasswordUser
Interface for password-authenticated users.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
-
Extends: aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_codeartifact.Repository, @open-constructs/aws-cdk.aws_codeartifact.IRepository
Represents an CodeArtifact Repository.
Name | Description |
---|---|
addToResourcePolicy |
Adds a statement to the CodeArtifact repository resource policy. |
grant |
Grants the given principal identity permissions to perform the actions on the repository. |
grantRead |
Grants the given principal identity permissions to perform the actions on the repository. |
grantReadAndPublish |
Grants the given principal identity permissions to perform the actions on the repository. |
public addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult
Adds a statement to the CodeArtifact repository resource policy.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
The policy statement to add.
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grants the given principal identity permissions to perform the actions on the repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
- Type: ...string[]
The actions to grant.
public grantRead(grantee: IGrantable): Grant
Grants the given principal identity permissions to perform the actions on the repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
public grantReadAndPublish(grantee: IGrantable): Grant
Grants the given principal identity permissions to perform the actions on the repository.
- Type: aws-cdk-lib.aws_iam.IGrantable
The principal to grant permissions to.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
domain |
@open-constructs/aws-cdk.aws_codeartifact.IDomain |
The domain that contains the repository. |
repositoryArn |
string |
The ARN of the repository. |
repositoryDomainName |
string |
The domain that contains the repository. |
repositoryDomainOwner |
string |
The domain owner of the repository. |
repositoryName |
string |
The name of the repository. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly domain: IDomain;
- Type: @open-constructs/aws-cdk.aws_codeartifact.IDomain
The domain that contains the repository.
public readonly repositoryArn: string;
- Type: string
The ARN of the repository.
public readonly repositoryDomainName: string;
- Type: string
The domain that contains the repository.
public readonly repositoryDomainOwner: string;
- Type: string
The domain owner of the repository.
public readonly repositoryName: string;
- Type: string
The name of the repository.
-
Extends: aws-cdk-lib.IResource, aws-cdk-lib.aws_ec2.IConnectable
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.ServerlessCache, @open-constructs/aws-cdk.aws_elasticache.IServerlessCache
Interface for an ElastiCache Serverless Cache.
Name | Description |
---|---|
grant |
Grant the given identity the specified actions. |
grantConnect |
Grant the given identity connection access to the cache. |
metric |
Create a CloudWatch metric. |
public grant(grantee: IGrantable, actions: ...string[]): Grant
Grant the given identity the specified actions.
- Type: aws-cdk-lib.aws_iam.IGrantable
- Type: ...string[]
public grantConnect(grantee: IGrantable): Grant
Grant the given identity connection access to the cache.
- Type: aws-cdk-lib.aws_iam.IGrantable
public metric(metricName: string, props?: MetricOptions): Metric
Create a CloudWatch metric.
- Type: string
- Type: aws-cdk-lib.aws_cloudwatch.MetricOptions
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The network connections associated with this resource. |
endpointAddress |
string |
The DNS hostname of the cache node. |
endpointPort |
number |
The port number that the cache engine is listening on. |
serverlessCacheArn |
string |
The serverless cache ARN. |
serverlessCacheName |
string |
The serverless cache name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The network connections associated with this resource.
public readonly endpointAddress: string;
- Type: string
The DNS hostname of the cache node.
public readonly endpointPort: number;
- Type: number
The port number that the cache engine is listening on.
public readonly serverlessCacheArn: string;
- Type: string
The serverless cache ARN.
public readonly serverlessCacheName: string;
- Type: string
The serverless cache name.
-
Extends: aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.IamUser, @open-constructs/aws-cdk.aws_elasticache.NoPasswordRequiredUser, @open-constructs/aws-cdk.aws_elasticache.PasswordUser, @open-constructs/aws-cdk.aws_elasticache.IIamUser, @open-constructs/aws-cdk.aws_elasticache.INoPasswordRequiredUser, @open-constructs/aws-cdk.aws_elasticache.IPasswordUser, @open-constructs/aws-cdk.aws_elasticache.IUser
Interface for a User.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userArn |
string |
The ARN of the user. |
userId |
string |
The ID of the user. |
userName |
string |
The name of the user. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userArn: string;
- Type: string
The ARN of the user.
public readonly userId: string;
- Type: string
The ID of the user.
public readonly userName: string;
- Type: string
The name of the user.
-
Extends: aws-cdk-lib.IResource
-
Implemented By: @open-constructs/aws-cdk.aws_elasticache.UserGroup, @open-constructs/aws-cdk.aws_elasticache.IUserGroup
Interface for a User Group.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
userGroupArn |
string |
The ARN of the user group. |
userGroupId |
string |
The ID of the user group. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly userGroupArn: string;
- Type: string
The ARN of the user group.
public readonly userGroupId: string;
- Type: string
The ID of the user group.
-
Extends: aws-cdk-lib.IResource, aws-cdk-lib.aws_ec2.IConnectable
-
Implemented By: @open-constructs/aws-cdk.aws_redshiftserverless.Workgroup, @open-constructs/aws-cdk.aws_redshiftserverless.IWorkgroup
A Redshift Serverless Workgroup.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
connections |
aws-cdk-lib.aws_ec2.Connections |
The network connections associated with this resource. |
endpointAddress |
string |
The workgroup endpoint address. |
port |
number |
The workgroup port. |
workgroupArn |
string |
The workgroup Arn. |
workgroupId |
string |
The workgroup id. |
workgroupName |
string |
The workgroup name. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;
- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;
- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
The network connections associated with this resource.
public readonly endpointAddress: string;
- Type: string
The workgroup endpoint address.
public readonly port: number;
- Type: number
The workgroup port.
public readonly workgroupArn: string;
- Type: string
The workgroup Arn.
public readonly workgroupId: string;
- Type: string
The workgroup id.
public readonly workgroupName: string;
- Type: string
The workgroup name.
The engine the cache uses.
Name | Description |
---|---|
REDIS |
Redis. |
VALKEY |
Valkey. |
MEMCACHED |
Memcached. |
Redis.
Valkey.
Memcached.
The types of logs the namespace can export.
Name | Description |
---|---|
USER_LOG |
User log. |
CONNECTION_LOG |
Connection log. |
USER_ACTIVITY_LOG |
User activity log. |
User log.
Connection log.
User activity log.
The version number of the engine the serverless cache is compatible with.
Name | Description |
---|---|
VER_7 |
Version 7. |
VER_8 |
Version 8. |
Version 7.
Version 8.
The different kinds of file system deployments used by NetApp ONTAP.
Name | Description |
---|---|
MULTI_AZ_1 |
A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. |
MULTI_AZ_2 |
A high availability file system configured for Multi-AZ redundancy to tolerate temporary AZ unavailability. |
SINGLE_AZ_1 |
A file system configured for Single-AZ redundancy. |
SINGLE_AZ_2 |
A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy. |
A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability.
This is a first-generation FSx for ONTAP file system.
A high availability file system configured for Multi-AZ redundancy to tolerate temporary AZ unavailability.
This is a second-generation FSx for ONTAP file system.
A file system configured for Single-AZ redundancy.
This is a first-generation FSx for ONTAP file system.
A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy.
This is a second-generation FSx for ONTAP file system.
Represents the supported external connections for CodeArtifact repositories.
Name | Description |
---|---|
PYTHON |
Python Package Index (PyPI). |
NPM |
Node Package Manager (npm). |
NUGET |
NuGet Gallery. |
RUBY |
RubyGems. |
RUST |
Crates.io (Rust). |
MAVEN_CENTRAL |
Maven Central Repository. |
GRADLE_PLUGINS |
Gradle Plugins. |
MAVEN_GOOGLE |
Maven Google. |
MAVEN_APACHE |
Maven Apache. |
MAVEN_ATLASSIAN |
Maven Atlassian. |
MAVEN_ECLIPSE |
Maven Eclipse. |
MAVEN_JBOSS |
Maven JBoss. |
MAVEN_SPRING |
Maven Spring. |
MAVEN_SPRING_PLUGINS |
Maven Spring Plugins. |
Python Package Index (PyPI).
Node Package Manager (npm).
NuGet Gallery.
RubyGems.
Crates.io (Rust).
Maven Central Repository.
Gradle Plugins.
Maven Google.
Maven Apache.
Maven Atlassian.
Maven Eclipse.
Maven JBoss.
Maven Spring.
Maven Spring Plugins.