The dependencies of the resource.
The name of the resource.
The options of the resource.
Optional
parentAn optional parent that this resource belongs to.
The set of dependencies that affect each property.
The outputs of the resource.
Optional
providerThe provider of the resource.
The type of the resource.
The URN of the resource.
Returns the resource if the type of this resource is the same as resourceClass
,
otherwise undefined
.
For example:
const buckets = args.resources
.map(r = r.asType(aws.s3.Bucket))
.filter(b => b);
for (const bucket of buckets) {
// ...
}
Generated using TypeDoc
PolicyResource represents a resource in the stack.