Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import { Resource } from 'aws-cdk-lib'; import { CfnConfigurationAssociation } from 'aws-cdk-lib/aws-amazonmq'; import { Construct } from 'constructs'; import { IBrokerDeployment } from './broker-deployment'; import { IBrokerConfiguration } from './configuration'; export interface ConfigurationAssociationProps { readonly broker: IBrokerDeployment; readonly configuration: IBrokerConfiguration; } export class ConfigurationAssociation extends Resource { constructor(scope: Construct, id: string, props: ConfigurationAssociationProps) { super(scope, id); new CfnConfigurationAssociation(this, 'Resource', { broker: props.broker.id, configuration: { id: props.configuration.id, revision: props.configuration.revision, }, }); } } |