Mirror a repository to AWS CodeCommit on schedule.
import { CodeCommitMirror } from 'cloudstructs'
new CodeCommitMirror(scope: Construct, id: string, props: CodeCommitMirrorProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
CodeCommitMirrorProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: CodeCommitMirrorProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { CodeCommitMirror } from 'cloudstructs'
CodeCommitMirror.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Creates a DMARC record in Route 53 and invokes a Lambda function to process incoming reports.
import { DmarcReporter } from 'cloudstructs'
new DmarcReporter(scope: Construct, id: string, props: DmarcReporterProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
DmarcReporterProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: DmarcReporterProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { DmarcReporter } from 'cloudstructs'
DmarcReporter.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Roll your ECS service tasks on schedule or with a rule.
import { EcsServiceRoller } from 'cloudstructs'
new EcsServiceRoller(scope: Construct, id: string, props: EcsServiceRollerProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
EcsServiceRollerProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: EcsServiceRollerProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { EcsServiceRoller } from 'cloudstructs'
EcsServiceRoller.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Receive emails through SES, save them to S3 and invokes a Lambda function.
import { EmailReceiver } from 'cloudstructs'
new EmailReceiver(scope: Construct, id: string, props: EmailReceiverProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
EmailReceiverProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: EmailReceiverProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { EmailReceiver } from 'cloudstructs'
EmailReceiver.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
bucket |
aws-cdk-lib.aws_s3.Bucket |
The S3 bucket where emails are delivered. |
topic |
aws-cdk-lib.aws_sns.ITopic |
The SNS topic that is notified when emails are delivered to S3. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly bucket: Bucket;
- Type: aws-cdk-lib.aws_s3.Bucket
The S3 bucket where emails are delivered.
public readonly topic: ITopic;
- Type: aws-cdk-lib.aws_sns.ITopic
The SNS topic that is notified when emails are delivered to S3.
SES email template from MJML.
import { MjmlTemplate } from 'cloudstructs'
new MjmlTemplate(scope: Construct, id: string, props: MjmlTemplateProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
MjmlTemplateProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: MjmlTemplateProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { MjmlTemplate } from 'cloudstructs'
MjmlTemplate.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
templateName |
string |
The name of the template. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly templateName: string;
- Type: string
The name of the template.
Create a SAML identity provider.
import { SamlIdentityProvider } from 'cloudstructs'
new SamlIdentityProvider(scope: Construct, id: string, props: SamlIdentityProviderProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SamlIdentityProviderProps |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SamlIdentityProvider } from 'cloudstructs'
SamlIdentityProvider.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
samlIdentityProviderArn |
string |
The ARN of the SAML identity provider. |
- Deprecated: use
SamlProvider
fromaws-cdk-lib/aws-iam
public readonly node: Node;
- Type: constructs.Node
The tree node.
- Deprecated: use
SamlProvider
fromaws-cdk-lib/aws-iam
public readonly samlIdentityProviderArn: string;
- Type: string
The ARN of the SAML identity provider.
A Slack application deployed with a manifest.
import { SlackApp } from 'cloudstructs'
new SlackApp(scope: Construct, id: string, props: SlackAppProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SlackAppProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SlackAppProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SlackApp } from 'cloudstructs'
SlackApp.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
appId |
string |
The ID of the application. |
clientId |
string |
A dynamic reference to the client ID of the app. |
clientSecret |
string |
A dynamic reference to the client secret of the app. |
credentials |
aws-cdk-lib.aws_secretsmanager.ISecret |
An AWS Secrets Manager secret containing the credentials of the application. |
signingSecret |
string |
A dynamic reference to the signing secret of the app. |
verificationToken |
string |
A dynamic reference to the verification token of the app. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly appId: string;
- Type: string
The ID of the application.
public readonly clientId: string;
- Type: string
A dynamic reference to the client ID of the app.
public readonly clientSecret: string;
- Type: string
A dynamic reference to the client secret of the app.
public readonly credentials: ISecret;
- Type: aws-cdk-lib.aws_secretsmanager.ISecret
An AWS Secrets Manager secret containing the credentials of the application.
{
"appId": "...",
"clientId": "...",
"clientSecret": "...",
"verificationToken": "...",
"signingSecret": "..."
}
public readonly signingSecret: string;
- Type: string
A dynamic reference to the signing secret of the app.
public readonly verificationToken: string;
- Type: string
A dynamic reference to the verification token of the app.
Send Slack events to Amazon EventBridge.
import { SlackEvents } from 'cloudstructs'
new SlackEvents(scope: Construct, id: string, props: SlackEventsProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SlackEventsProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SlackEventsProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SlackEvents } from 'cloudstructs'
SlackEvents.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
eventBus |
aws-cdk-lib.aws_events.EventBus |
The custom event bus where Slack events are sent. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly eventBus: EventBus;
- Type: aws-cdk-lib.aws_events.EventBus
The custom event bus where Slack events are sent.
Extract text from images posted to Slack using Amazon Textract.
import { SlackTextract } from 'cloudstructs'
new SlackTextract(scope: Construct, id: string, props: SlackTextractProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SlackTextractProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SlackTextractProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SlackTextract } from 'cloudstructs'
SlackTextract.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Perform SSL server test for a hostname.
import { SslServerTest } from 'cloudstructs'
new SslServerTest(scope: Construct, id: string, props: SslServerTestProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SslServerTestProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SslServerTestProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SslServerTest } from 'cloudstructs'
SslServerTest.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
alarmTopic |
aws-cdk-lib.aws_sns.ITopic |
The topic to which the SSL test results are sent when the grade is below the minimum grade. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly alarmTopic: ITopic;
- Type: aws-cdk-lib.aws_sns.ITopic
The topic to which the SSL test results are sent when the grade is below the minimum grade.
A state machine custom resource provider.
import { StateMachineCustomResourceProvider } from 'cloudstructs'
new StateMachineCustomResourceProvider(scope: Construct, id: string, props: StateMachineCustomResourceProviderProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
StateMachineCustomResourceProviderProps |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { StateMachineCustomResourceProvider } from 'cloudstructs'
StateMachineCustomResourceProvider.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
serviceToken |
string |
The service token. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly serviceToken: string;
- Type: string
The service token.
A CloudFront static website hosted on S3.
import { StaticWebsite } from 'cloudstructs'
new StaticWebsite(scope: Construct, id: string, props: StaticWebsiteProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
StaticWebsiteProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: StaticWebsiteProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { StaticWebsite } from 'cloudstructs'
StaticWebsite.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
defaultSecurityHeadersBehavior |
aws-cdk-lib.aws_cloudfront.ResponseSecurityHeadersBehavior |
Best practice security headers used as default. |
bucket |
aws-cdk-lib.aws_s3.Bucket |
The S3 bucket of this static website. |
distribution |
aws-cdk-lib.aws_cloudfront.Distribution |
The CloudFront distribution of this static website. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly defaultSecurityHeadersBehavior: ResponseSecurityHeadersBehavior;
- Type: aws-cdk-lib.aws_cloudfront.ResponseSecurityHeadersBehavior
Best practice security headers used as default.
public readonly bucket: Bucket;
- Type: aws-cdk-lib.aws_s3.Bucket
The S3 bucket of this static website.
public readonly distribution: Distribution;
- Type: aws-cdk-lib.aws_cloudfront.Distribution
The CloudFront distribution of this static website.
Clean unused S3 and ECR assets from your CDK Toolkit.
import { ToolkitCleaner } from 'cloudstructs'
new ToolkitCleaner(scope: Construct, id: string, props?: ToolkitCleanerProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ToolkitCleanerProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ToolkitCleanerProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ToolkitCleaner } from 'cloudstructs'
ToolkitCleaner.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
URL shortener.
import { UrlShortener } from 'cloudstructs'
new UrlShortener(scope: Construct, id: string, props: UrlShortenerProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
UrlShortenerProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: UrlShortenerProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
grantInvoke |
Grant access to invoke the URL shortener if protected by IAM authorization. |
public toString(): string
Returns a string representation of this construct.
public grantInvoke(grantee: IGrantable): Grant
Grant access to invoke the URL shortener if protected by IAM authorization.
- Type: aws-cdk-lib.aws_iam.IGrantable
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { UrlShortener } from 'cloudstructs'
UrlShortener.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
api |
aws-cdk-lib.aws_apigateway.RestApi |
The underlying API Gateway REST API. |
apiEndpoint |
string |
The endpoint of the URL shortener API. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly api: RestApi;
- Type: aws-cdk-lib.aws_apigateway.RestApi
The underlying API Gateway REST API.
public readonly apiEndpoint: string;
- Type: string
The endpoint of the URL shortener API.
Properties for a CodeCommitMirror.
import { CodeCommitMirrorProps } from 'cloudstructs'
const codeCommitMirrorProps: CodeCommitMirrorProps = { ... }
Name | Type | Description |
---|---|---|
cluster |
aws-cdk-lib.aws_ecs.ICluster |
The ECS cluster where to run the mirroring operation. |
repository |
CodeCommitMirrorSourceRepository |
The source repository. |
schedule |
aws-cdk-lib.aws_events.Schedule |
The schedule for the mirroring operation. |
subnetSelection |
aws-cdk-lib.aws_ec2.SubnetSelection |
Where to run the mirroring Fargate tasks. |
public readonly cluster: ICluster;
- Type: aws-cdk-lib.aws_ecs.ICluster
The ECS cluster where to run the mirroring operation.
public readonly repository: CodeCommitMirrorSourceRepository;
The source repository.
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: everyday at midnight
The schedule for the mirroring operation.
public readonly subnetSelection: SubnetSelection;
- Type: aws-cdk-lib.aws_ec2.SubnetSelection
- Default: public subnets
Where to run the mirroring Fargate tasks.
Properties for a DmarcReporter.
import { DmarcReporterProps } from 'cloudstructs'
const dmarcReporterProps: DmarcReporterProps = { ... }
Name | Type | Description |
---|---|---|
dmarcPolicy |
DmarcPolicy |
The DMARC policy to apply to messages that fail DMARC compliance. |
function |
aws-cdk-lib.aws_lambda.IFunction |
A Lambda function to invoke after the message is saved to S3. |
hostedZone |
aws-cdk-lib.aws_route53.IHostedZone |
The Route 53 hosted zone to create the DMARC record in. |
receiptRuleSet |
aws-cdk-lib.aws_ses.IReceiptRuleSet |
The SES receipt rule set where a receipt rule will be added. |
additionalEmailAddresses |
string[] |
Additional email addresses to send DMARC reports to. |
afterRule |
aws-cdk-lib.aws_ses.IReceiptRule |
An existing rule after which the new rule will be placed in the rule set. |
dmarcDkimAlignment |
DmarcAlignment |
The alignment mode to use for DKIM signatures. |
dmarcPercentage |
number |
The percentage of messages that should be checked for DMARC compliance. |
dmarcSpfAlignment |
DmarcAlignment |
The alignment mode to use for SPF signatures. |
dmarcSubdomainPolicy |
DmarcPolicy |
The DMARC policy to apply to messages that fail DMARC compliance for subdomains. |
emailAddress |
string |
The email address to send DMARC reports to. |
public readonly dmarcPolicy: DmarcPolicy;
- Type: DmarcPolicy
The DMARC policy to apply to messages that fail DMARC compliance.
This can be one of the following values:
- none: Do not apply any special handling to messages that fail DMARC compliance.
- quarantine: Quarantine messages that fail DMARC compliance.
- reject: Reject messages that fail DMARC compliance.
public readonly function: IFunction;
- Type: aws-cdk-lib.aws_lambda.IFunction
A Lambda function to invoke after the message is saved to S3.
The Lambda function will be invoked with a SESMessage as event.
public readonly hostedZone: IHostedZone;
- Type: aws-cdk-lib.aws_route53.IHostedZone
The Route 53 hosted zone to create the DMARC record in.
public readonly receiptRuleSet: IReceiptRuleSet;
- Type: aws-cdk-lib.aws_ses.IReceiptRuleSet
The SES receipt rule set where a receipt rule will be added.
public readonly additionalEmailAddresses: string[];
- Type: string[]
Additional email addresses to send DMARC reports to.
public readonly afterRule: IReceiptRule;
- Type: aws-cdk-lib.aws_ses.IReceiptRule
- Default: The new rule is inserted at the beginning of the rule list.
An existing rule after which the new rule will be placed in the rule set.
public readonly dmarcDkimAlignment: DmarcAlignment;
- Type: DmarcAlignment
- Default: relaxed
The alignment mode to use for DKIM signatures.
This can be one of the following values:
- relaxed: Use relaxed alignment mode.
- strict: Use strict alignment mode.
public readonly dmarcPercentage: number;
- Type: number
- Default: 100
The percentage of messages that should be checked for DMARC compliance.
This is a value between 0 and 100.
public readonly dmarcSpfAlignment: DmarcAlignment;
- Type: DmarcAlignment
- Default: relaxed
The alignment mode to use for SPF signatures.
This can be one of the following values:
- relaxed: Use relaxed alignment mode.
- strict: Use strict alignment mode.
public readonly dmarcSubdomainPolicy: DmarcPolicy;
- Type: DmarcPolicy
- Default: inherited from dmarcPolicy
The DMARC policy to apply to messages that fail DMARC compliance for subdomains.
This can be one of the following values:
- none: Do not apply any special handling to messages that fail DMARC compliance.
- quarantine: Quarantine messages that fail DMARC compliance.
- reject: Reject messages that fail DMARC compliance.
public readonly emailAddress: string;
- Type: string
- Default: dmarc-reports@${hostedZone.zoneName}
The email address to send DMARC reports to.
This email address must be verified in SES.
Properties for a EcsServiceRoller.
import { EcsServiceRollerProps } from 'cloudstructs'
const ecsServiceRollerProps: EcsServiceRollerProps = { ... }
Name | Type | Description |
---|---|---|
cluster |
aws-cdk-lib.aws_ecs.ICluster |
The ECS cluster where the services run. |
service |
aws-cdk-lib.aws_ecs.IService |
The ECS service for which tasks should be rolled. |
trigger |
RollTrigger |
The rule or schedule that should trigger a roll. |
public readonly cluster: ICluster;
- Type: aws-cdk-lib.aws_ecs.ICluster
The ECS cluster where the services run.
public readonly service: IService;
- Type: aws-cdk-lib.aws_ecs.IService
The ECS service for which tasks should be rolled.
public readonly trigger: RollTrigger;
- Type: RollTrigger
- Default: roll everyday at midnight
The rule or schedule that should trigger a roll.
Properties for an EmailReceiver.
import { EmailReceiverProps } from 'cloudstructs'
const emailReceiverProps: EmailReceiverProps = { ... }
Name | Type | Description |
---|---|---|
receiptRuleSet |
aws-cdk-lib.aws_ses.IReceiptRuleSet |
The SES receipt rule set where a receipt rule will be added. |
recipients |
string[] |
The recipients for which emails should be received. |
afterRule |
aws-cdk-lib.aws_ses.IReceiptRule |
An existing rule after which the new rule will be placed in the rule set. |
enabled |
boolean |
Whether the receiver is active. |
function |
aws-cdk-lib.aws_lambda.IFunction |
A Lambda function to invoke after the message is saved to S3. |
sourceWhitelist |
string |
A regular expression to whitelist source email addresses. |
public readonly receiptRuleSet: IReceiptRuleSet;
- Type: aws-cdk-lib.aws_ses.IReceiptRuleSet
The SES receipt rule set where a receipt rule will be added.
public readonly recipients: string[];
- Type: string[]
The recipients for which emails should be received.
public readonly afterRule: IReceiptRule;
- Type: aws-cdk-lib.aws_ses.IReceiptRule
- Default: The new rule is inserted at the beginning of the rule list.
An existing rule after which the new rule will be placed in the rule set.
public readonly enabled: boolean;
- Type: boolean
- Default: true
Whether the receiver is active.
public readonly function: IFunction;
- Type: aws-cdk-lib.aws_lambda.IFunction
A Lambda function to invoke after the message is saved to S3.
The Lambda function will be invoked with a SESMessage as event.
public readonly sourceWhitelist: string;
- Type: string
- Default: no whitelisting of source email addresses
A regular expression to whitelist source email addresses.
Properties for a MjmlTemplate.
import { MjmlTemplateProps } from 'cloudstructs'
const mjmlTemplateProps: MjmlTemplateProps = { ... }
Name | Type | Description |
---|---|---|
mjml |
string |
The MJML for the email. |
subject |
string |
The subject line of the email. |
templateName |
string |
The name of the template. |
public readonly mjml: string;
- Type: string
The MJML for the email.
public readonly subject: string;
- Type: string
The subject line of the email.
public readonly templateName: string;
- Type: string
- Default: a CloudFormation generated name
The name of the template.
Properties for a SamlProvider.
import { SamlIdentityProviderProps } from 'cloudstructs'
const samlIdentityProviderProps: SamlIdentityProviderProps = { ... }
Name | Type | Description |
---|---|---|
metadataDocument |
string |
An XML document generated by an identity provider (IdP) that supports SAML 2.0. |
name |
string |
A name for the SAML identity provider. |
- Deprecated: use
SamlProviderProps
fromaws-cdk-lib/aws-iam
public readonly metadataDocument: string;
- Type: string
An XML document generated by an identity provider (IdP) that supports SAML 2.0.
The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
- Deprecated: use
SamlProviderProps
fromaws-cdk-lib/aws-iam
public readonly name: string;
- Type: string
- Default: derived for the node's unique id
A name for the SAML identity provider.
App Home configuration.
import { SlackAppManifestAppHome } from 'cloudstructs'
const slackAppManifestAppHome: SlackAppManifestAppHome = { ... }
Name | Type | Description |
---|---|---|
homeTab |
boolean |
Wether the Home tab is enabled. |
messagesTab |
boolean |
Wether the Messages is enabled. |
messagesTabReadOnly |
boolean |
Whether the users can send messages to your app in the Messages tab of your App Home. |
public readonly homeTab: boolean;
- Type: boolean
- Default: false
Wether the Home tab is enabled.
public readonly messagesTab: boolean;
- Type: boolean
- Default: false
Wether the Messages is enabled.
public readonly messagesTabReadOnly: boolean;
- Type: boolean
- Default: false
Whether the users can send messages to your app in the Messages tab of your App Home.
Events API configuration for the app.
import { SlackAppManifestEventSubscriptions } from 'cloudstructs'
const slackAppManifestEventSubscriptions: SlackAppManifestEventSubscriptions = { ... }
Name | Type | Description |
---|---|---|
requestUrl |
string |
The full https URL that acts as the Events API request URL. |
botEvents |
string[] |
Event types you want the app to subscribe to. |
userEvents |
string[] |
Event types you want the app to subscribe to on behalf of authorized users. |
public readonly requestUrl: string;
- Type: string
The full https URL that acts as the Events API request URL.
https://api.slack.com/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls
public readonly botEvents: string[];
- Type: string[]
Event types you want the app to subscribe to.
A maximum of 100 event types can be used
public readonly userEvents: string[];
- Type: string[]
Event types you want the app to subscribe to on behalf of authorized users.
A maximum of 100 event types can be used.
Interactivity configuration for the app.
import { SlackAppManifestInteractivity } from 'cloudstructs'
const slackAppManifestInteractivity: SlackAppManifestInteractivity = { ... }
Name | Type | Description |
---|---|---|
enabled |
boolean |
Whether or not interactivity features are enabled. |
messageMenuOptionsUrl |
string |
The full https URL that acts as th interactive Options Load URL. |
requestUrl |
string |
The full https URL that acts as the interactive Request URL. |
public readonly enabled: boolean;
- Type: boolean
- Default: true
Whether or not interactivity features are enabled.
public readonly messageMenuOptionsUrl: string;
- Type: string
The full https URL that acts as th interactive Options Load URL.
public readonly requestUrl: string;
- Type: string
The full https URL that acts as the interactive Request URL.
OAuth configuration for the app.
import { SlackAppManifestOauthConfig } from 'cloudstructs'
const slackAppManifestOauthConfig: SlackAppManifestOauthConfig = { ... }
Name | Type | Description |
---|---|---|
botScopes |
string[] |
Bot scopes to request upon app installation. |
redirectUrls |
string[] |
OAuth redirect URLs. |
userScopes |
string[] |
User scopes to request upon app installation. |
public readonly botScopes: string[];
- Type: string[]
Bot scopes to request upon app installation.
A maximum of 255 scopes can be included.
public readonly redirectUrls: string[];
- Type: string[]
OAuth redirect URLs.
A maximum of 1000 redirect URLs can be included.
public readonly userScopes: string[];
- Type: string[]
User scopes to request upon app installation.
A maximum of 255 scopes can be included.
Properties for a Slack app manifest.
import { SlackAppManifestProps } from 'cloudstructs'
const slackAppManifestProps: SlackAppManifestProps = { ... }
Name | Type | Description |
---|---|---|
name |
string |
The name of the app. |
allowedIpAddressRanges |
string[] |
An array of IP addresses that conform to the Allowed IP Ranges feature. |
appHome |
SlackAppManifestAppHome |
App Home configuration. |
backgroundColor |
string |
A hex color value that specifies the background color used on hovercards that display information about your app. |
botUser |
SlackkAppManifestBotUser |
Bot user configuration. |
description |
string |
A short description of the app for display to users. |
eventSubscriptions |
SlackAppManifestEventSubscriptions |
Events API configuration for the app. |
interactivity |
SlackAppManifestInteractivity |
Interactivity configuration for the app. |
longDescription |
string |
A longer version of the description of the app. |
majorVersion |
number |
The major version of the manifest schema to target. |
minorVersion |
number |
The minor version of the manifest schema to target. |
oauthConfig |
SlackAppManifestOauthConfig |
OAuth configuration for the app. |
orgDeploy |
boolean |
Whether org-wide deploy is enabled. |
shortcuts |
SlackAppManifestShortcut[] |
Shortcuts configuration. |
slashCommands |
SlackAppManifestSlashCommand[] |
Slash commands configuration. |
socketMode |
boolean |
Whether Socket Mode is enabled. |
unfurlDomains |
string[] |
Valid unfurl domains to register. |
workflowSteps |
SlackAppManifestWorkflowStep[] |
Workflow steps. |
public readonly name: string;
- Type: string
The name of the app.
Maximum length is 35 characters.
public readonly allowedIpAddressRanges: string[];
- Type: string[]
An array of IP addresses that conform to the Allowed IP Ranges feature.
https://api.slack.com/authentication/best-practices#ip_allowlisting
public readonly appHome: SlackAppManifestAppHome;
- Type: SlackAppManifestAppHome
App Home configuration.
public readonly backgroundColor: string;
- Type: string
A hex color value that specifies the background color used on hovercards that display information about your app.
Can be 3-digit (#000) or 6-digit (#000000) hex values with or without #
public readonly botUser: SlackkAppManifestBotUser;
- Type: SlackkAppManifestBotUser
Bot user configuration.
public readonly description: string;
- Type: string
- Default: no short description
A short description of the app for display to users.
Maximum length is 140 characters.
public readonly eventSubscriptions: SlackAppManifestEventSubscriptions;
Events API configuration for the app.
public readonly interactivity: SlackAppManifestInteractivity;
Interactivity configuration for the app.
public readonly longDescription: string;
- Type: string
A longer version of the description of the app.
Maximum length is 4000 characters.
public readonly majorVersion: number;
- Type: number
- Default: do not target a specific major version
The major version of the manifest schema to target.
public readonly minorVersion: number;
- Type: number
- Default: do not target a specific minor version
The minor version of the manifest schema to target.
public readonly oauthConfig: SlackAppManifestOauthConfig;
OAuth configuration for the app.
public readonly orgDeploy: boolean;
- Type: boolean
- Default: false
Whether org-wide deploy is enabled.
public readonly shortcuts: SlackAppManifestShortcut[];
- Type: SlackAppManifestShortcut[]
Shortcuts configuration.
A maximum of 5 shortcuts can be included.
public readonly slashCommands: SlackAppManifestSlashCommand[];
- Type: SlackAppManifestSlashCommand[]
Slash commands configuration.
A maximum of 5 slash commands can be included.
public readonly socketMode: boolean;
- Type: boolean
- Default: false
Whether Socket Mode is enabled.
public readonly unfurlDomains: string[];
- Type: string[]
Valid unfurl domains to register.
A maximum of 5 unfurl domains can be included.
https://api.slack.com/reference/messaging/link-unfurling#configuring_domains
public readonly workflowSteps: SlackAppManifestWorkflowStep[];
- Type: SlackAppManifestWorkflowStep[]
Workflow steps.
A maximum of 10 workflow steps can be included.
Settings section of the app config pages.
import { SlackAppManifestSettings } from 'cloudstructs'
const slackAppManifestSettings: SlackAppManifestSettings = { ... }
Name | Type | Description |
---|---|---|
allowedIpAddressRanges |
string[] |
An array of IP addresses that conform to the Allowed IP Ranges feature. |
eventSubscriptions |
SlackAppManifestEventSubscriptions |
Events API configuration for the app. |
interactivity |
SlackAppManifestInteractivity |
Interactivity configuration for the app. |
orgDeploy |
boolean |
Whether org-wide deploy is enabled. |
socketMode |
boolean |
Whether Socket Mode is enabled. |
public readonly allowedIpAddressRanges: string[];
- Type: string[]
An array of IP addresses that conform to the Allowed IP Ranges feature.
https://api.slack.com/authentication/best-practices#ip_allowlisting
public readonly eventSubscriptions: SlackAppManifestEventSubscriptions;
Events API configuration for the app.
public readonly interactivity: SlackAppManifestInteractivity;
Interactivity configuration for the app.
public readonly orgDeploy: boolean;
- Type: boolean
- Default: false
Whether org-wide deploy is enabled.
public readonly socketMode: boolean;
- Type: boolean
- Default: false
Whether Socket Mode is enabled.
Shortcut configuration.
import { SlackAppManifestShortcut } from 'cloudstructs'
const slackAppManifestShortcut: SlackAppManifestShortcut = { ... }
Name | Type | Description |
---|---|---|
callbackId |
string |
The callback ID of the shortcut. |
description |
string |
A short description of the shortcut. |
name |
string |
The name of the shortcut. |
type |
SlackAppManifestShortcutType |
The type of shortcut. |
public readonly callbackId: string;
- Type: string
The callback ID of the shortcut.
Maximum length is 255 characters.
public readonly description: string;
- Type: string
A short description of the shortcut.
Maximum length is 150 characters
public readonly name: string;
- Type: string
The name of the shortcut.
public readonly type: SlackAppManifestShortcutType;
The type of shortcut.
Slash command configuration.
import { SlackAppManifestSlashCommand } from 'cloudstructs'
const slackAppManifestSlashCommand: SlackAppManifestSlashCommand = { ... }
Name | Type | Description |
---|---|---|
command |
string |
The actual slash command. |
description |
string |
The description of the slash command. |
shouldEscape |
boolean |
Whether channels, users, and links typed with the slash command should be escaped. |
url |
string |
The full https URL that acts as the slash command's request URL. |
usageHint |
string |
The short usage hint about the slash command for users. |
public readonly command: string;
- Type: string
The actual slash command.
Maximum length is 32 characters
public readonly description: string;
- Type: string
The description of the slash command.
Maximum length is 2000 characters.
public readonly shouldEscape: boolean;
- Type: boolean
- Default: false
Whether channels, users, and links typed with the slash command should be escaped.
public readonly url: string;
- Type: string
The full https URL that acts as the slash command's request URL.
https://api.slack.com/interactivity/slash-commands#creating_commands
public readonly usageHint: string;
- Type: string
The short usage hint about the slash command for users.
Maximum length is 1000 characters.
Workflow step.
import { SlackAppManifestWorkflowStep } from 'cloudstructs'
const slackAppManifestWorkflowStep: SlackAppManifestWorkflowStep = { ... }
Name | Type | Description |
---|---|---|
callbackId |
string |
The callback ID of the workflow step. |
name |
string |
The name of the workflow step. |
public readonly callbackId: string;
- Type: string
The callback ID of the workflow step.
Maximum length of 50 characters.
public readonly name: string;
- Type: string
The name of the workflow step.
Maximum length of 50 characters.
Properties for a SlackApp.
import { SlackAppProps } from 'cloudstructs'
const slackAppProps: SlackAppProps = { ... }
Name | Type | Description |
---|---|---|
configurationTokenSecret |
aws-cdk-lib.aws_secretsmanager.ISecret |
An AWS Secrets Manager secret containing the app configuration token. |
manifest |
SlackAppManifestDefinition |
The definition of the app manifest. |
credentialsSecret |
aws-cdk-lib.aws_secretsmanager.ISecret |
The AWS Secrets Manager secret where to store the app credentials. |
public readonly configurationTokenSecret: ISecret;
- Type: aws-cdk-lib.aws_secretsmanager.ISecret
An AWS Secrets Manager secret containing the app configuration token.
Must use the following JSON format:
{
"refreshToken": "<token>"
}
public readonly manifest: SlackAppManifestDefinition;
The definition of the app manifest.
public readonly credentialsSecret: ISecret;
- Type: aws-cdk-lib.aws_secretsmanager.ISecret
- Default: a new secret is created
The AWS Secrets Manager secret where to store the app credentials.
Properties for a SlackEvents.
import { SlackEventsProps } from 'cloudstructs'
const slackEventsProps: SlackEventsProps = { ... }
Name | Type | Description |
---|---|---|
signingSecret |
aws-cdk-lib.SecretValue |
The signing secret of the Slack app. |
apiName |
string |
A name for the API Gateway resource. |
customEventBus |
boolean |
Whether to use a custom event bus. |
public readonly signingSecret: SecretValue;
- Type: aws-cdk-lib.SecretValue
The signing secret of the Slack app.
public readonly apiName: string;
- Type: string
- Default: SlackEventsApi
A name for the API Gateway resource.
public readonly customEventBus: boolean;
- Type: boolean
- Default: false
Whether to use a custom event bus.
Bot user configuration.
import { SlackkAppManifestBotUser } from 'cloudstructs'
const slackkAppManifestBotUser: SlackkAppManifestBotUser = { ... }
Name | Type | Description |
---|---|---|
displayName |
string |
The display name of the bot user. |
alwaysOnline |
boolean |
Whether the bot user will always appear to be online. |
public readonly displayName: string;
- Type: string
The display name of the bot user.
Maximum length is 80 characters.
public readonly alwaysOnline: boolean;
- Type: boolean
- Default: false
Whether the bot user will always appear to be online.
Properties for a SlackTextract.
import { SlackTextractProps } from 'cloudstructs'
const slackTextractProps: SlackTextractProps = { ... }
Name | Type | Description |
---|---|---|
appId |
string |
The application id of the Slack app. |
botToken |
aws-cdk-lib.SecretValue |
The bot token of the Slack app. |
signingSecret |
aws-cdk-lib.SecretValue |
The signing secret of the Slack app. |
public readonly appId: string;
- Type: string
The application id of the Slack app.
public readonly botToken: SecretValue;
- Type: aws-cdk-lib.SecretValue
The bot token of the Slack app.
The following scopes are required: chat:write
and files:read
public readonly signingSecret: SecretValue;
- Type: aws-cdk-lib.SecretValue
The signing secret of the Slack app.
Properties for a SslServerTest.
import { SslServerTestProps } from 'cloudstructs'
const sslServerTestProps: SslServerTestProps = { ... }
Name | Type | Description |
---|---|---|
host |
string |
The hostname to test. |
alarmTopic |
aws-cdk-lib.aws_sns.ITopic |
The topic to which the results must be sent when the grade is below the minimum grade. |
minimumGrade |
SslServerTestGrade |
Minimum grade for the test. The grade is calculated using the worst grade of all endpoints. |
schedule |
aws-cdk-lib.aws_events.Schedule |
The schedule for the test. |
public readonly host: string;
- Type: string
The hostname to test.
public readonly alarmTopic: ITopic;
- Type: aws-cdk-lib.aws_sns.ITopic
- Default: a new topic is created
The topic to which the results must be sent when the grade is below the minimum grade.
public readonly minimumGrade: SslServerTestGrade;
- Type: SslServerTestGrade
- Default: SslServerTestGrade.A_PLUS
Minimum grade for the test. The grade is calculated using the worst grade of all endpoints.
Used to send the results to an alarm SNS topic.
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: every day
The schedule for the test.
Properties for a StateMachineCustomResourceProvider.
import { StateMachineCustomResourceProviderProps } from 'cloudstructs'
const stateMachineCustomResourceProviderProps: StateMachineCustomResourceProviderProps = { ... }
Name | Type | Description |
---|---|---|
stateMachine |
IStateMachine |
The state machine. |
timeout |
aws-cdk-lib.Duration |
Timeout. |
public readonly stateMachine: IStateMachine;
- Type: IStateMachine
The state machine.
public readonly timeout: Duration;
- Type: aws-cdk-lib.Duration
- Default: Duration.minutes(30)
Timeout.
Properties for a StaticWebsite.
import { StaticWebsiteProps } from 'cloudstructs'
const staticWebsiteProps: StaticWebsiteProps = { ... }
Name | Type | Description |
---|---|---|
domainName |
string |
The domain name for this static website. |
hostedZone |
aws-cdk-lib.aws_route53.IHostedZone |
The hosted zone where records should be added. |
backendConfiguration |
any |
A backend configuration that will be saved as config.json in the S3 bucket of the static website. |
cachePolicy |
aws-cdk-lib.aws_cloudfront.ICachePolicy |
Cache policy for the default behavior. |
edgeLambdas |
aws-cdk-lib.aws_cloudfront.EdgeLambda[] |
The Lambda@Edge functions to invoke before serving the contents. |
redirects |
string[] |
A list of domain names that should redirect to domainName . |
responseHeadersPolicy |
aws-cdk-lib.aws_cloudfront.ResponseHeadersPolicy |
Response headers policy for the default behavior. |
public readonly domainName: string;
- Type: string
The domain name for this static website.
Example
www.my-static-website.com
public readonly hostedZone: IHostedZone;
- Type: aws-cdk-lib.aws_route53.IHostedZone
The hosted zone where records should be added.
public readonly backendConfiguration: any;
- Type: any
A backend configuration that will be saved as config.json
in the S3 bucket of the static website.
The frontend can query this config by doing fetch('/config.json')
.
Example
{ userPoolId: '1234', apiEndoint: 'https://www.my-api.com/api' }
public readonly cachePolicy: ICachePolicy;
- Type: aws-cdk-lib.aws_cloudfront.ICachePolicy
- Default: CachePolicy.CACHING_OPTIMIZED
Cache policy for the default behavior.
public readonly edgeLambdas: EdgeLambda[];
- Type: aws-cdk-lib.aws_cloudfront.EdgeLambda[]
- Default: an origin request function that redirects all requests for a path to /index.html
The Lambda@Edge functions to invoke before serving the contents.
public readonly redirects: string[];
- Type: string[]
- Default: the domain name of the hosted zone
A list of domain names that should redirect to domainName
.
public readonly responseHeadersPolicy: ResponseHeadersPolicy;
- Type: aws-cdk-lib.aws_cloudfront.ResponseHeadersPolicy
- Default: a new policy is created with best practice security headers
Response headers policy for the default behavior.
Properties for a ToolkitCleaner.
import { ToolkitCleanerProps } from 'cloudstructs'
const toolkitCleanerProps: ToolkitCleanerProps = { ... }
Name | Type | Description |
---|---|---|
cleanAssetsTimeout |
aws-cdk-lib.Duration |
The timeout for the Lambda functions that clean assets. |
dryRun |
boolean |
Only output number of assets and total size that would be deleted but without actually deleting assets. |
retainAssetsNewerThan |
aws-cdk-lib.Duration |
Retain unused assets that were created recently. |
schedule |
aws-cdk-lib.aws_events.Schedule |
The schedule for the cleaner. |
scheduleEnabled |
boolean |
Whether to clean on schedule. |
public readonly cleanAssetsTimeout: Duration;
- Type: aws-cdk-lib.Duration
- Default: Duration.minutes(5)
The timeout for the Lambda functions that clean assets.
public readonly dryRun: boolean;
- Type: boolean
Only output number of assets and total size that would be deleted but without actually deleting assets.
public readonly retainAssetsNewerThan: Duration;
- Type: aws-cdk-lib.Duration
- Default: all unused assets are removed
Retain unused assets that were created recently.
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: every day
The schedule for the cleaner.
public readonly scheduleEnabled: boolean;
- Type: boolean
- Default: true
Whether to clean on schedule.
If you'd like to run the cleanup manually
via the console, set to false
.
Properties for a UrlShortener.
import { UrlShortenerProps } from 'cloudstructs'
const urlShortenerProps: UrlShortenerProps = { ... }
Name | Type | Description |
---|---|---|
hostedZone |
aws-cdk-lib.aws_route53.IHostedZone |
The hosted zone for the short URLs domain. |
apiGatewayAuthorizer |
aws-cdk-lib.aws_apigateway.IAuthorizer |
Authorizer for API gateway. |
apiGatewayEndpoint |
aws-cdk-lib.aws_ec2.IInterfaceVpcEndpoint |
An interface VPC endpoint for API gateway. |
bucketName |
string |
A name for the bucket saving the redirects. |
corsAllowOrigins |
string[] |
Allowed origins for CORS. |
expiration |
aws-cdk-lib.Duration |
Expiration for short urls. |
iamAuthorization |
boolean |
Whether to use IAM authorization. |
recordName |
string |
The record name to use in the hosted zone. |
public readonly hostedZone: IHostedZone;
- Type: aws-cdk-lib.aws_route53.IHostedZone
The hosted zone for the short URLs domain.
public readonly apiGatewayAuthorizer: IAuthorizer;
- Type: aws-cdk-lib.aws_apigateway.IAuthorizer
- Default: do not use an authorizer for the API
Authorizer for API gateway.
public readonly apiGatewayEndpoint: IInterfaceVpcEndpoint;
- Type: aws-cdk-lib.aws_ec2.IInterfaceVpcEndpoint
- Default: API is public
An interface VPC endpoint for API gateway.
Specifying this property will make the API private.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html
public readonly bucketName: string;
- Type: string
- Default: derived from short link domain name
A name for the bucket saving the redirects.
public readonly corsAllowOrigins: string[];
- Type: string[]
- Default: CORS is not enabled
Allowed origins for CORS.
public readonly expiration: Duration;
- Type: aws-cdk-lib.Duration
- Default: cdk.Duration.days(365)
Expiration for short urls.
public readonly iamAuthorization: boolean;
- Type: boolean
- Default: do not use IAM authorization
Whether to use IAM authorization.
public readonly recordName: string;
- Type: string
- Default: zone root
The record name to use in the hosted zone.
A source repository for AWS CodeCommit mirroring.
import { CodeCommitMirrorSourceRepository } from 'cloudstructs'
new CodeCommitMirrorSourceRepository()
Name | Type | Description |
---|
Name | Description |
---|---|
gitHub |
Public GitHub repository. |
private |
Private repository with HTTPS clone URL stored in a AWS Secrets Manager secret or a AWS Systems Manager secure string parameter. |
import { CodeCommitMirrorSourceRepository } from 'cloudstructs'
CodeCommitMirrorSourceRepository.gitHub(owner: string, name: string)
Public GitHub repository.
- Type: string
- Type: string
import { CodeCommitMirrorSourceRepository } from 'cloudstructs'
CodeCommitMirrorSourceRepository.private(name: string, url: Secret)
Private repository with HTTPS clone URL stored in a AWS Secrets Manager secret or a AWS Systems Manager secure string parameter.
- Type: string
the repository name.
- Type: aws-cdk-lib.aws_ecs.Secret
the secret containing the HTTPS clone URL.
Name | Type | Description |
---|---|---|
name |
string |
The name of the repository. |
plainTextUrl |
string |
The HTTPS clone URL in plain text, used for a public repository. |
secretUrl |
aws-cdk-lib.aws_ecs.Secret |
The HTTPS clone URL if the repository is private. |
public readonly name: string;
- Type: string
The name of the repository.
public readonly plainTextUrl: string;
- Type: string
The HTTPS clone URL in plain text, used for a public repository.
public readonly secretUrl: Secret;
- Type: aws-cdk-lib.aws_ecs.Secret
The HTTPS clone URL if the repository is private.
The secret should contain the username and/or token.
Example
`https://[email protected]/owner/name`
`https://USERNAME:[email protected]/owner/name.git`
The rule or schedule that should trigger a roll.
import { RollTrigger } from 'cloudstructs'
new RollTrigger()
Name | Type | Description |
---|
Name | Description |
---|---|
fromRule |
Rule that should trigger a roll. |
fromSchedule |
Schedule that should trigger a roll. |
import { RollTrigger } from 'cloudstructs'
RollTrigger.fromRule(rule: Rule)
Rule that should trigger a roll.
- Type: aws-cdk-lib.aws_events.Rule
import { RollTrigger } from 'cloudstructs'
RollTrigger.fromSchedule(schedule: Schedule)
Schedule that should trigger a roll.
- Type: aws-cdk-lib.aws_events.Schedule
Name | Type | Description |
---|---|---|
rule |
aws-cdk-lib.aws_events.Rule |
Roll rule. |
schedule |
aws-cdk-lib.aws_events.Schedule |
Roll schedule. |
public readonly rule: Rule;
- Type: aws-cdk-lib.aws_events.Rule
- Default: roll everyday at midnight
Roll rule.
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: roll everyday at midnight
Roll schedule.
Principal entity that represents a SAML federated identity provider.
import { SamlFederatedPrincipal } from 'cloudstructs'
new SamlFederatedPrincipal(identityProvider: SamlIdentityProvider)
Name | Type | Description |
---|---|---|
identityProvider |
SamlIdentityProvider |
No description. |
- Type: SamlIdentityProvider
Name | Description |
---|---|
addToAssumeRolePolicy |
Add the principal to the AssumeRolePolicyDocument. |
addToPolicy |
Add to the policy of this principal. |
addToPrincipalPolicy |
Add to the policy of this principal. |
dedupeString |
Return whether or not this principal is equal to the given principal. |
toJSON |
JSON-ify the principal. |
toString |
Returns a string representation of an object. |
withConditions |
Returns a new PrincipalWithConditions using this principal as the base, with the passed conditions added. |
withSessionTags |
Returns a new principal using this principal as the base, with session tags enabled. |
public addToAssumeRolePolicy(document: PolicyDocument): void
Add the principal to the AssumeRolePolicyDocument.
Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.
- Type: aws-cdk-lib.aws_iam.PolicyDocument
public addToPolicy(statement: PolicyStatement): boolean
Add to the policy of this principal.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
public addToPrincipalPolicy(_statement: PolicyStatement): AddToPrincipalPolicyResult
Add to the policy of this principal.
- Type: aws-cdk-lib.aws_iam.PolicyStatement
public dedupeString(): string
Return whether or not this principal is equal to the given principal.
public toJSON(): {[ key: string ]: string[]}
JSON-ify the principal.
Used when JSON.stringify() is called
public toString(): string
Returns a string representation of an object.
public withConditions(conditions: {[ key: string ]: any}): PrincipalBase
Returns a new PrincipalWithConditions using this principal as the base, with the passed conditions added.
When there is a value for the same operator and key in both the principal and the conditions parameter, the value from the conditions parameter will be used.
- Type: {[ key: string ]: any}
public withSessionTags(): PrincipalBase
Returns a new principal using this principal as the base, with session tags enabled.
Name | Type | Description |
---|---|---|
assumeRoleAction |
string |
When this Principal is used in an AssumeRole policy, the action to use. |
grantPrincipal |
aws-cdk-lib.aws_iam.IPrincipal |
The principal to grant permissions to. |
policyFragment |
aws-cdk-lib.aws_iam.PrincipalPolicyFragment |
Return the policy fragment that identifies this principal in a Policy. |
principalAccount |
string |
The AWS account ID of this principal. |
conditions |
{[ key: string ]: any} |
The conditions under which the policy is in effect. |
federated |
string |
federated identity provider (i.e. 'cognito-identity.amazonaws.com' for users authenticated through Cognito). |
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly assumeRoleAction: string;
- Type: string
When this Principal is used in an AssumeRole policy, the action to use.
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly grantPrincipal: IPrincipal;
- Type: aws-cdk-lib.aws_iam.IPrincipal
The principal to grant permissions to.
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly policyFragment: PrincipalPolicyFragment;
- Type: aws-cdk-lib.aws_iam.PrincipalPolicyFragment
Return the policy fragment that identifies this principal in a Policy.
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly principalAccount: string;
- Type: string
The AWS account ID of this principal.
Can be undefined when the account is not known (for example, for service principals). Can be a Token - in that case, it's assumed to be AWS::AccountId.
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly conditions: {[ key: string ]: any};
- Type: {[ key: string ]: any}
The conditions under which the policy is in effect.
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
- Deprecated: use
SamlPrincipal
fromaws-cdk-lib/aws-iam
public readonly federated: string;
- Type: string
federated identity provider (i.e. 'cognito-identity.amazonaws.com' for users authenticated through Cognito).
A Slack app manifest.
import { SlackAppManifest } from 'cloudstructs'
new SlackAppManifest(props: SlackAppManifestProps)
Name | Type | Description |
---|---|---|
props |
SlackAppManifestProps |
No description. |
- Type: SlackAppManifestProps
Name | Description |
---|---|
render |
No description. |
public render(construct: IConstruct): string
- Type: constructs.IConstruct
A Slack app manifest definition.
import { SlackAppManifestDefinition } from 'cloudstructs'
new SlackAppManifestDefinition()
Name | Type | Description |
---|
Name | Description |
---|---|
render |
Renders the JSON app manifest encoded as a string. |
public render(construct: IConstruct): string
Renders the JSON app manifest encoded as a string.
- Type: constructs.IConstruct
Name | Description |
---|---|
fromFile |
Creates a Slack app manifest from a file containg a JSON app manifest. |
fromManifest |
Creates a Slack app manifest by specifying properties. |
fromString |
Create a Slack app manifest from a JSON app manifest encoded as a string. |
import { SlackAppManifestDefinition } from 'cloudstructs'
SlackAppManifestDefinition.fromFile(file: string)
Creates a Slack app manifest from a file containg a JSON app manifest.
- Type: string
import { SlackAppManifestDefinition } from 'cloudstructs'
SlackAppManifestDefinition.fromManifest(props: SlackAppManifestProps)
Creates a Slack app manifest by specifying properties.
- Type: SlackAppManifestProps
import { SlackAppManifestDefinition } from 'cloudstructs'
SlackAppManifestDefinition.fromString(manifest: string)
Create a Slack app manifest from a JSON app manifest encoded as a string.
- Type: string
- Implemented By: IStateMachine
A State Machine.
Name | Type | Description |
---|---|---|
stateMachineArn |
string |
The ARN of the state machine. |
public readonly stateMachineArn: string;
- Type: string
The ARN of the state machine.
The DMARC alignment mode.
Name | Description |
---|---|
RELAXED |
Relaxed alignment mode. |
STRICT |
Strict alignment mode. |
Relaxed alignment mode.
Strict alignment mode.
The DMARC policy to apply to messages that fail DMARC compliance.
Name | Description |
---|---|
NONE |
Do not apply any special handling to messages that fail DMARC compliance. |
QUARANTINE |
Quarantine messages that fail DMARC compliance. |
REJECT |
Reject messages that fail DMARC compliance. |
Do not apply any special handling to messages that fail DMARC compliance.
Quarantine messages that fail DMARC compliance.
(usually by sending them to spam)
Reject messages that fail DMARC compliance.
(usually by rejecting them outright)
Type of shortcuts.
Name | Description |
---|---|
MESSAGE |
Message shortcuts are shown to users in the context menus of messages within Slack. |
GLOBAL |
Global shortcuts are available to users via the shortcuts button in the composer, and when using search in Slack. |
Message shortcuts are shown to users in the context menus of messages within Slack.
https://api.slack.com/interactivity/shortcuts/using#message_shortcuts
Global shortcuts are available to users via the shortcuts button in the composer, and when using search in Slack.
https://api.slack.com/interactivity/shortcuts/using#global_shortcuts
SSL Server test grade.
Name | Description |
---|---|
A_PLUS |
No description. |
A |
No description. |
A_MINUS |
No description. |
B |
No description. |
C |
No description. |
D |
No description. |
E |
No description. |
F |
No description. |