awsCloudfrontFunction
Provides information about a CloudFront Function.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
/*Terraform Variables are not always the best fit for getting inputs in the context of Terraform CDK.
You can read more about this at https://cdk.tf/variables*/
const functionName = new cdktf.TerraformVariable(this, "function_name", {});
new aws.dataAwsCloudfrontFunction.DataAwsCloudfrontFunction(this, "existing", {
name: functionName.value,
});
Argument Reference
The following arguments are supported:
name- (Required) Name of the CloudFront function.stage- (Required) Function’s stage, eitherdevelopmentorlive.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn- ARN identifying your CloudFront Function.code- Source code of the functioncomment- Comment.etag- ETag hash of the functionlastModifiedTime- When this resource was last modified.runtime- Identifier of the function's runtime.status- Status of the function. Can beunpublished,unassociatedorassociated.