Skip to main content

This resource uses AWS Cloud Control API to perform a lookup of a resource of a given type (such as, `AWS::EC2::VPC`) in your AWS account and current region, based on a query you specify. If only one match is found, this resource returns the primary ID of the resource (in the `AWS::EC2::VPC` example, the VPC ID) and the resource properties, that you can then reference in your template with the `Fn::GetAtt` intrinsic function. Specify resource type search targets that are supported by Cloud Control API.

Project description

awscommunity-resource-lookup

AWS CDK L1 construct and data structures for the AWS CloudFormation Registry type AwsCommunity::Resource::Lookup v1.10.0.

Description

This resource uses AWS Cloud Control API to perform a lookup of a resource of a given type (such as, AWS::EC2::VPC) in your AWS account and current region, based on a query you specify. If only one match is found, this resource returns the primary ID of the resource (in the AWS::EC2::VPC example, the VPC ID) and the resource properties, that you can then reference in your template with the Fn::GetAtt intrinsic function. Specify resource type search targets that are supported by Cloud Control API.

References

Usage

In order to use this library, you will need to activate this AWS CloudFormation Registry type in your account. You can do this via the AWS Management Console or using the AWS CLI using the following command:

aws cloudformation activate-type \
  --type-name AwsCommunity::Resource::Lookup \
  --publisher-id c830e97710da0c9954d80ba8df021e5439e7134b \
  --type RESOURCE \
  --execution-role-arn ROLE-ARN

Alternatively:

aws cloudformation activate-type \
  --public-type-arn arn:aws:cloudformation:us-east-1::type/resource/c830e97710da0c9954d80ba8df021e5439e7134b/AwsCommunity-Resource-Lookup \
  --execution-role-arn ROLE-ARN

You can find more information about activating this type in the AWS CloudFormation documentation.

Feedback

This library is auto-generated and published to all supported programming languages by the cdklabs/cdk-cloudformation project based on the API schema published for AwsCommunity::Resource::Lookup.

  • Issues related to this generated library should be reported here.
  • Issues related to AwsCommunity::Resource::Lookup should be reported to the publisher.

License

Distributed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file cdk-cloudformation-awscommunity-resource-lookup-1.10.0a7.tar.gz.

File metadata

File hashes

Hashes for cdk-cloudformation-awscommunity-resource-lookup-1.10.0a7.tar.gz
Algorithm Hash digest
SHA256 228fc4c9002e0d57282e9f0ece69eb7cb34370883180e9ef79ca7e4412ba14b7
MD5 d3603af743e816ef11afb04cf831c005
BLAKE2b-256 72cdda218b88b5b9d58aeed6e1112538d193441b4afe0cba43466a82a1075ea6

See more details on using hashes here.

File details

Details for the file cdk_cloudformation_awscommunity_resource_lookup-1.10.0a7-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_cloudformation_awscommunity_resource_lookup-1.10.0a7-py3-none-any.whl
Algorithm Hash digest
SHA256 ef30245ba1037138d9753167ea4023f81012d6c8eed0baaec3f7f8e0c75860a6
MD5 1ec629164b0554eec9c710d5cae7dbf4
BLAKE2b-256 ac7124519ed8b30c3c844020e5077655dc7ad32163395900854612d3e3c08414

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page