UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

15 lines (11 loc) 521 B
var EndpointMode = require('./get_endpoint_mode')(); var ENV_ENDPOINT_MODE_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE'; var CONFIG_ENDPOINT_MODE_NAME = 'ec2_metadata_service_endpoint_mode'; var getEndpointModeConfigOptions = function() { return { environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_MODE_NAME]; }, configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_MODE_NAME]; }, default: EndpointMode.IPv4, }; }; module.exports = getEndpointModeConfigOptions;