@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
71 lines (70 loc) • 2.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as fastly from "@pulumi/fastly";
*
* const fastly = fastly.getFastlyIpRanges({});
* const fromFastly = new aws.index.SecurityGroup("from_fastly", {
* name: "from_fastly",
* ingress: [{
* fromPort: "443",
* toPort: "443",
* protocol: "tcp",
* cidrBlocks: fastly.cidrBlocks,
* ipv6CidrBlocks: fastly.ipv6CidrBlocks,
* }],
* });
* ```
*
* [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges
*/
export declare function getFastlyIpRanges(opts?: pulumi.InvokeOptions): Promise<GetFastlyIpRangesResult>;
/**
* A collection of values returned by getFastlyIpRanges.
*/
export interface GetFastlyIpRangesResult {
/**
* The lexically ordered list of ipv4 CIDR blocks.
*/
readonly cidrBlocks: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The lexically ordered list of ipv6 CIDR blocks.
*/
readonly ipv6CidrBlocks: string[];
}
/**
* Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as fastly from "@pulumi/fastly";
*
* const fastly = fastly.getFastlyIpRanges({});
* const fromFastly = new aws.index.SecurityGroup("from_fastly", {
* name: "from_fastly",
* ingress: [{
* fromPort: "443",
* toPort: "443",
* protocol: "tcp",
* cidrBlocks: fastly.cidrBlocks,
* ipv6CidrBlocks: fastly.ipv6CidrBlocks,
* }],
* });
* ```
*
* [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges
*/
export declare function getFastlyIpRangesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFastlyIpRangesResult>;