C# Class Amazon.Util.AWSPublicIpAddressRanges

This class can be used to discover the public address ranges for AWS. The information is retrieved from the publicly accessible https://ip-ranges.amazonaws.com/ip-ranges.json file.
The information in this file is generated from our internal system-of-record and is authoritative. You can expect it to change several times per week and should poll accordingly.
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AddressRangesByRegion ( string regionIdentifier ) : IEnumerable

Filtered collection of public IP ranges for the given region (us-east-1 etc) or GLOBAL.

AddressRangesByServiceKey ( string serviceKey ) : IEnumerable

Filtered collection of public IP ranges for the given service key

Load ( ) : AWSPublicIpAddressRanges

Downloads the most recent copy of the endpoint address file and parses it to a collection of address range objects.

Private Methods

Method Description
AWSPublicIpAddressRanges ( ) : System
Parse ( string fileContent ) : AWSPublicIpAddressRanges
ParseRange ( JsonData ranges, AWSPublicIpAddressRange addressFormat ) : IEnumerable

Method Details

AddressRangesByRegion() public method

Filtered collection of public IP ranges for the given region (us-east-1 etc) or GLOBAL.
public AddressRangesByRegion ( string regionIdentifier ) : IEnumerable
regionIdentifier string
return IEnumerable

AddressRangesByServiceKey() public method

Filtered collection of public IP ranges for the given service key
public AddressRangesByServiceKey ( string serviceKey ) : IEnumerable
serviceKey string
return IEnumerable

Load() public static method

Downloads the most recent copy of the endpoint address file and parses it to a collection of address range objects.
public static Load ( ) : AWSPublicIpAddressRanges
return AWSPublicIpAddressRanges