GitXplorerGitXplorer
i

aws-cdk-sdk

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
c4fcad24dc86e079b0a5590788858e08d1bf07f6

gen all

iiliapolo committed 3 years ago
Unverified
a48ff613c4d6261f92959d45a526281029f32d0b

remove

iiliapolo committed 3 years ago
Unverified
9507157b7a42ae7acbacb56cd781bb5748e50274

mm what

iiliapolo committed 3 years ago
Unverified
2996f04e70ab1db3aebfbf87454e9b514b9947ec

minimal

iiliapolo committed 3 years ago
Unverified
713a783e8c8f7a8364a8b270df1979c1f4c21c3a

mid work

iiliapolo committed 3 years ago
Unverified
a3742ba514738e34d6d8e58f15374781a7e7b22f

mid work

iiliapolo committed 3 years ago

README

The README file for this repository.

Overview

Invoke AWS SDK api calls as part of your CDK application deployment.

Why

On occasion, you might find some missing capabilities that can be easily bridged by invoking the AWS SDK. You can use it to either configure resources, or fetch deploy time information that isn't exposed as CloudFormation attributes.

To that end, the core CDK framework offers the wonderful AwsCustomResource, which lets you configure the exact API call along with any necessary parameters.

This library does the same, but in a type-safe manner that simulates direct usage of the API offered by the SDK itself.

Examples

Get the latest version of a secure SSM parameter

import { App, Stack } from '@aws-cdk/core';
import { SsmClient } from 'aws-cdk-sdk/clients/ssm';

const app = new App();
const stack = new Stack(app, 'ssm-stack');
const client = new SsmClient(stack, 'Client', ['*']);

const parameter = client.fetchParameter({ name: 'my-parameter', withDecryption: true }).parameter;

const value = parameter.value;
const type = parameter.type;