Class GetFastlyIpRanges
Inheritance
System.Object
GetFastlyIpRanges
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Fastly
Assembly: Pulumi.Fastly.dll
Syntax
public static class GetFastlyIpRanges
Methods
View SourceInvokeAsync(InvokeOptions)
Use this data source to get the IP ranges of Fastly edge nodes.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
using Fastly = Pulumi.Fastly;
class MyStack : Stack
{
public MyStack()
{
var fastly = Output.Create(Fastly.GetFastlyIpRanges.InvokeAsync());
var fromFastly = new Aws.Ec2.SecurityGroup("fromFastly", new Aws.Ec2.SecurityGroupArgs
{
Ingress =
{
new Aws.Ec2.Inputs.SecurityGroupIngressArgs
{
CidrBlocks = fastly.Apply(fastly => fastly.CidrBlocks),
FromPort = "443",
Ipv6CidrBlocks = fastly.Apply(fastly => fastly.Ipv6CidrBlocks),
Protocol = "tcp",
ToPort = "443",
},
},
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetFastlyIpRangesResult> InvokeAsync(InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetFastlyIpRangesResult> |