Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
@aws-cdk/cx-api
Advanced tools
@aws-cdk/cx-api is a part of the AWS Cloud Development Kit (CDK) that provides a set of APIs for interacting with the Cloud Assembly, which is the output of the CDK synthesis process. It allows developers to programmatically access and manipulate the synthesized cloud infrastructure stacks, assets, and metadata.
Accessing Cloud Assembly
This feature allows you to load and interact with a Cloud Assembly, which is the output directory of a CDK app synthesis. The code sample demonstrates how to load a Cloud Assembly from a specified path and log the stacks it contains.
const cxapi = require('@aws-cdk/cx-api');
const assembly = new cxapi.CloudAssembly('/path/to/cloud-assembly');
console.log(assembly.stacks);
Reading Stack Metadata
This feature allows you to read metadata from a specific stack within the Cloud Assembly. The code sample shows how to get a stack by its name and log its metadata.
const cxapi = require('@aws-cdk/cx-api');
const assembly = new cxapi.CloudAssembly('/path/to/cloud-assembly');
const stack = assembly.getStackByName('MyStack');
console.log(stack.metadata);
Listing Assets
This feature allows you to list all the assets included in the Cloud Assembly. The code sample demonstrates how to log all the assets in the Cloud Assembly.
const cxapi = require('@aws-cdk/cx-api');
const assembly = new cxapi.CloudAssembly('/path/to/cloud-assembly');
console.log(assembly.assets);
The AWS SDK for JavaScript provides a comprehensive set of APIs for interacting with AWS services. While it does not specifically focus on the Cloud Assembly or CDK synthesis output, it allows for a wide range of AWS service interactions, including managing infrastructure, which can complement the use of @aws-cdk/cx-api.
The Serverless Framework is a popular open-source framework for building and deploying serverless applications. It provides functionalities for defining and deploying cloud infrastructure, similar to the CDK, but focuses on serverless architectures. It does not provide direct access to a Cloud Assembly like @aws-cdk/cx-api.
Terraform by HashiCorp is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. It allows for the definition, preview, and deployment of cloud infrastructure. While it serves a similar purpose to the CDK, it does not have a direct equivalent to the Cloud Assembly or @aws-cdk/cx-api.
The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
This module is part of the AWS Cloud Development Kit project.
1.65.0 (2020-09-30)
aws-appmesh: VirtualNode no longer has accessLog set to "/dev/stdout" by default
cognito: refreshToken
property is now removed from
UserPoolClient. It will be included if any other authFlow
is enabled.
synthetics: the default runtime is now syn-nodejs-2.0
eks: cluster.addChart
renamed to cluster.addHelmChart
eks: NodegroupOptions.launchTemplate
renamed to NodegroupOptions.launchTemplateSpec
eks: cluster.addAutoScalingGroup
renamed to cluster.connectAutoScalingGroupCapacity
eks: cluster.addNodegroup
renamed to cluster.addNoedgroupCapacity
eks: cluster.addCapacity
renamed to cluster.addAutoScalingGroupCapacity
eks: CapacityOptions
renamed to AutoScalingGroupCapacityOptions
. Resolves #10364
rds: the default generated password exclude characters set for Instance, Cluster and DatabaseSecret
is now " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
rds: the default generated password exclude characters for addSingleUserRotation()
and addMultiUserRotation()
in Cluster and Instance is now " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
rds: Instance.addSingleUserRotation()
now takes options object as the first argument, instead of just Duration
rds: Cluster.addSingleUserRotation()
now takes options object as the first argument, instead of just Duration
rds: SnapshotCredentials.fromGeneratedPassword()
now takes an option object as the second argument, instead of just IKey
rds: DatabaseInstanceProps
and DatabaseInstanceFromSnapshotProps
-
masterUsername
, masterUserPassword
and masterUserPasswordEncryptionKey
moved
to credentials
as a new Credentials
class.
rds: Login
renamed to Credentials
. Use Credentials.fromUsername
to replace existing usage.
rds: DatabaseClusterProps
masterUser
renamed to credentials
.
JobDefinition
from name using fromJobDefinitionName
(#10448) (7ce91e8), closes #7172encryptionKey
cannot be disabled (#10474) (4aadaa7)FAQs
Cloud executable protocol
The npm package @aws-cdk/cx-api receives a total of 691,727 weekly downloads. As such, @aws-cdk/cx-api popularity was classified as popular.
We found that @aws-cdk/cx-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.