Data Source: awsOutpostsAssets
Information about hardware assets in an Outpost.
Example Usage
Basic
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsOutpostsAssets.DataAwsOutpostsAssets(this, "example", {
arn: "${data.aws_outposts_outpost.example.arn}",
});
With Host ID Filter
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsOutpostsAssets.DataAwsOutpostsAssets(this, "example", {
arn: "${data.aws_outposts_outpost.example.arn}",
hostIdFilter: ["h-x38g5n0yd2a0ueb61"],
});
With Status ID Filter
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsOutpostsAssets.DataAwsOutpostsAssets(this, "example", {
arn: "${data.aws_outposts_outpost.example.arn}",
statusIdFilter: ["ACTIVE"],
});
Argument Reference
The following arguments are supported:
arn
- (Required) Outpost ARN.hostIdFilter
- (Optional) Filters by list of Host IDs of a Dedicated Host.statusIdFilter
- (Optional) Filters by list of state status. Valid values: "ACTIVE", "RETIRING".
Attribute Reference
In addition to all arguments above, the following attributes are exported:
assetIds
- List of all the asset ids found. This data source will fail if none are found.