GetIpRanges
Use this data source to get the IP ranges of various AWS products and services. For more information about the contents of this data source and required JSON syntax if referencing a custom URL, see the AWS IP Address Ranges documention.
Using GetIpRanges
function getIpRanges(args: GetIpRangesArgs, opts?: InvokeOptions): Promise<GetIpRangesResult>function get_ip_ranges(regions=None, services=None, url=None, opts=None)func GetIpRanges(ctx *Context, args *GetIpRangesArgs, opts ...InvokeOption) (*GetIpRangesResult, error)public static class GetIpRanges {
public static Task<GetIpRangesResult> InvokeAsync(GetIpRangesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Services List<string>
Filter IP ranges by services. Valid items are
amazon(for amazon.com),amazon_connect,api_gateway,cloud9,cloudfront,codebuild,dynamodb,ec2,ec2_instance_connect,globalaccelerator,route53,route53_healthchecks,s3andworkspaces_gateways. See the [serviceattribute][2] documentation for other possible values.- Regions List<string>
Filter IP ranges by regions (or include all regions, if omitted). Valid items are
global(forcloudfront) as well as all AWS regions (e.g.eu-central-1)- Url string
Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to
https://ip-ranges.amazonaws.com/ip-ranges.json.
- Services []string
Filter IP ranges by services. Valid items are
amazon(for amazon.com),amazon_connect,api_gateway,cloud9,cloudfront,codebuild,dynamodb,ec2,ec2_instance_connect,globalaccelerator,route53,route53_healthchecks,s3andworkspaces_gateways. See the [serviceattribute][2] documentation for other possible values.- Regions []string
Filter IP ranges by regions (or include all regions, if omitted). Valid items are
global(forcloudfront) as well as all AWS regions (e.g.eu-central-1)- Url string
Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to
https://ip-ranges.amazonaws.com/ip-ranges.json.
- services string[]
Filter IP ranges by services. Valid items are
amazon(for amazon.com),amazon_connect,api_gateway,cloud9,cloudfront,codebuild,dynamodb,ec2,ec2_instance_connect,globalaccelerator,route53,route53_healthchecks,s3andworkspaces_gateways. See the [serviceattribute][2] documentation for other possible values.- regions string[]
Filter IP ranges by regions (or include all regions, if omitted). Valid items are
global(forcloudfront) as well as all AWS regions (e.g.eu-central-1)- url string
Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to
https://ip-ranges.amazonaws.com/ip-ranges.json.
- services List[str]
Filter IP ranges by services. Valid items are
amazon(for amazon.com),amazon_connect,api_gateway,cloud9,cloudfront,codebuild,dynamodb,ec2,ec2_instance_connect,globalaccelerator,route53,route53_healthchecks,s3andworkspaces_gateways. See the [serviceattribute][2] documentation for other possible values.- regions List[str]
Filter IP ranges by regions (or include all regions, if omitted). Valid items are
global(forcloudfront) as well as all AWS regions (e.g.eu-central-1)- url str
Custom URL for source JSON file. Syntax must match AWS IP Address Ranges documention. Defaults to
https://ip-ranges.amazonaws.com/ip-ranges.json.
GetIpRanges Result
The following output properties are available:
- Cidr
Blocks List<string> The lexically ordered list of CIDR blocks.
- Create
Date string The publication time of the IP ranges (e.g.
2016-08-03-23-46-05).- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Blocks List<string> The lexically ordered list of IPv6 CIDR blocks.
- Services List<string>
- Sync
Token int The publication time of the IP ranges, in Unix epoch time format (e.g.
1470267965).- Regions List<string>
- Url string
- Cidr
Blocks []string The lexically ordered list of CIDR blocks.
- Create
Date string The publication time of the IP ranges (e.g.
2016-08-03-23-46-05).- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Blocks []string The lexically ordered list of IPv6 CIDR blocks.
- Services []string
- Sync
Token int The publication time of the IP ranges, in Unix epoch time format (e.g.
1470267965).- Regions []string
- Url string
- cidr
Blocks string[] The lexically ordered list of CIDR blocks.
- create
Date string The publication time of the IP ranges (e.g.
2016-08-03-23-46-05).- id string
The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Blocks string[] The lexically ordered list of IPv6 CIDR blocks.
- services string[]
- sync
Token number The publication time of the IP ranges, in Unix epoch time format (e.g.
1470267965).- regions string[]
- url string
- cidr_
blocks List[str] The lexically ordered list of CIDR blocks.
- create_
date str The publication time of the IP ranges (e.g.
2016-08-03-23-46-05).- id str
The provider-assigned unique ID for this managed resource.
- ipv6_
cidr_ List[str]blocks The lexically ordered list of IPv6 CIDR blocks.
- services List[str]
- sync_
token float The publication time of the IP ranges, in Unix epoch time format (e.g.
1470267965).- regions List[str]
- url str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.