interface ApiDestinationAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Events.ApiDestinationAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#ApiDestinationAttributes |
![]() | software.amazon.awscdk.services.events.ApiDestinationAttributes |
![]() | aws_cdk.aws_events.ApiDestinationAttributes |
![]() | aws-cdk-lib » aws_events » ApiDestinationAttributes |
The properties to import an existing Api Destination.
Example
const connection = events.Connection.fromEventBusArn(
this,
'Connection',
'arn:aws:events:us-east-1:123456789012:event-bus/EventBusName',
'arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-f3gDy9',
);
const apiDestinationArn = 'arn:aws:events:us-east-1:123456789012:api-destination/DestinationName';
const destination = events.ApiDestination.fromApiDestinationAttributes(
this,
'Destination',
{ apiDestinationArn, connection },
);
const rule = new events.Rule(this, 'OtherRule', {
schedule: events.Schedule.rate(Duration.minutes(10)),
targets: [new targets.ApiDestination(destination)],
});
Properties
Name | Type | Description |
---|---|---|
api | string | The ARN of the Api Destination. |
connection | IConnection | The Connection to associate with the Api Destination. |
apiDestinationArn
Type:
string
The ARN of the Api Destination.
connection
Type:
IConnection
The Connection to associate with the Api Destination.