module Aws::Partitions

def add(new_partitions)

Other tags:
    Api: - private For internal use only.

Parameters:
  • new_partitions (Hash) --
def add(new_partitions)
  new_partitions['partitions'].each do |partition|
    default_partition_list.add_partition(Partition.build(partition))
    defaults['partitions'] << partition
  end
end

def clear

Other tags:
    Api: - private For internal use only.
def clear
  default_partition_list.clear
  defaults['partitions'].clear
end

def default_metadata

Other tags:
    Api: - private

Returns:
  • (Hash) -
def default_metadata
  @default_metadata ||= begin
    path = File.expand_path('../../partitions-metadata.json', __FILE__)
    defaults = JSON.parse(File.read(path), freeze: true)
    defaults.merge('partitions' => defaults['partitions'].dup)
  end
end

def default_partition_list

Other tags:
    Api: - private

Returns:
  • (PartitionList) -
def default_partition_list
  @default_partition_list ||= begin
    partitions = PartitionList.build(defaults)
    partitions.merge_metadata(default_metadata)
    partitions
  end
end

def defaults

Other tags:
    Api: - private

Returns:
  • (Hash) -
def defaults
  @defaults ||= begin
    path = File.expand_path('../../partitions.json', __FILE__)
    defaults = JSON.parse(File.read(path), freeze: true)
    defaults.merge('partitions' => defaults['partitions'].dup)
  end
end

def each(&block)

Returns:
  • (Enumerable) -
def each(&block)
  default_partition_list.each(&block)
end

def merge_metadata(partition_metadata)

Other tags:
    Api: - private For Internal use only

Parameters:
  • partition_metadata (Hash) --
def merge_metadata(partition_metadata)
  default_partition_list.merge_metadata(partition_metadata)
end

def partition(name)

Raises:
  • (ArgumentError) - Raises an `ArgumentError` if a partition is

Returns:
  • (Partition) -

Parameters:
  • name (String) -- The name of the partition to return.
def partition(name)
  default_partition_list.partition(name)
end

def partitions

Returns:
  • (Enumerable) - Returns an enumerable of all
def partitions
  default_partition_list
end

def service_ids

Other tags:
    Api: - private For internal use only.

Returns:
  • (Hash) - Returns a map of service module names
def service_ids
  @service_ids ||= begin
    # service ids
    {
      'ACM' => 'acm',
      'ACMPCA' => 'acm-pca',
      'APIGateway' => 'apigateway',
      'ARCZonalShift' => 'arc-zonal-shift',
      'AccessAnalyzer' => 'access-analyzer',
      'Account' => 'account',
      'Amplify' => 'amplify',
      'AmplifyBackend' => 'amplifybackend',
      'AmplifyUIBuilder' => 'amplifyuibuilder',
      'ApiGatewayManagementApi' => 'execute-api',
      'ApiGatewayV2' => 'apigateway',
      'AppConfig' => 'appconfig',
      'AppConfigData' => 'appconfigdata',
      'AppFabric' => 'appfabric',
      'AppIntegrationsService' => 'app-integrations',
      'AppMesh' => 'appmesh',
      'AppRegistry' => 'servicecatalog-appregistry',
      'AppRunner' => 'apprunner',
      'AppStream' => 'appstream2',
      'AppSync' => 'appsync',
      'AppTest' => 'apptest',
      'Appflow' => 'appflow',
      'ApplicationAutoScaling' => 'application-autoscaling',
      'ApplicationCostProfiler' => 'application-cost-profiler',
      'ApplicationDiscoveryService' => 'discovery',
      'ApplicationInsights' => 'applicationinsights',
      'ApplicationSignals' => 'application-signals',
      'Artifact' => 'artifact',
      'Athena' => 'athena',
      'AuditManager' => 'auditmanager',
      'AugmentedAIRuntime' => 'a2i-runtime.sagemaker',
      'AutoScaling' => 'autoscaling',
      'AutoScalingPlans' => 'autoscaling-plans',
      'B2bi' => 'b2bi',
      'BCMDataExports' => 'bcm-data-exports',
      'BCMPricingCalculator' => 'bcm-pricing-calculator',
      'Backup' => 'backup',
      'BackupGateway' => 'backup-gateway',
      'BackupSearch' => 'backup-search',
      'Batch' => 'batch',
      'Bedrock' => 'bedrock',
      'BedrockAgent' => 'bedrock-agent',
      'BedrockAgentRuntime' => 'bedrock-agent-runtime',
      'BedrockDataAutomation' => 'bedrock-data-automation',
      'BedrockDataAutomationRuntime' => 'bedrock-data-automation-runtime',
      'BedrockRuntime' => 'bedrock-runtime',
      'Billing' => 'billing',
      'BillingConductor' => 'billingconductor',
      'Braket' => 'braket',
      'Budgets' => 'budgets',
      'Chatbot' => 'chatbot',
      'Chime' => 'chime',
      'ChimeSDKIdentity' => 'identity-chime',
      'ChimeSDKMediaPipelines' => 'media-pipelines-chime',
      'ChimeSDKMeetings' => 'meetings-chime',
      'ChimeSDKMessaging' => 'messaging-chime',
      'ChimeSDKVoice' => 'voice-chime',
      'CleanRooms' => 'cleanrooms',
      'CleanRoomsML' => 'cleanrooms-ml',
      'Cloud9' => 'cloud9',
      'CloudControlApi' => 'cloudcontrolapi',
      'CloudDirectory' => 'clouddirectory',
      'CloudFormation' => 'cloudformation',
      'CloudFront' => 'cloudfront',
      'CloudFrontKeyValueStore' => 'cloudfront-keyvaluestore',
      'CloudHSM' => 'cloudhsm',
      'CloudHSMV2' => 'cloudhsmv2',
      'CloudSearch' => 'cloudsearch',
      'CloudTrail' => 'cloudtrail',
      'CloudTrailData' => 'cloudtrail-data',
      'CloudWatch' => 'monitoring',
      'CloudWatchEvents' => 'events',
      'CloudWatchEvidently' => 'evidently',
      'CloudWatchLogs' => 'logs',
      'CloudWatchRUM' => 'rum',
      'CodeArtifact' => 'codeartifact',
      'CodeBuild' => 'codebuild',
      'CodeCatalyst' => 'codecatalyst',
      'CodeCommit' => 'codecommit',
      'CodeConnections' => 'codeconnections',
      'CodeDeploy' => 'codedeploy',
      'CodeGuruProfiler' => 'codeguru-profiler',
      'CodeGuruReviewer' => 'codeguru-reviewer',
      'CodeGuruSecurity' => 'codeguru-security',
      'CodePipeline' => 'codepipeline',
      'CodeStarNotifications' => 'codestar-notifications',
      'CodeStarconnections' => 'codestar-connections',
      'CognitoIdentity' => 'cognito-identity',
      'CognitoIdentityProvider' => 'cognito-idp',
      'CognitoSync' => 'cognito-sync',
      'Comprehend' => 'comprehend',
      'ComprehendMedical' => 'comprehendmedical',
      'ComputeOptimizer' => 'compute-optimizer',
      'ConfigService' => 'config',
      'Connect' => 'connect',
      'ConnectCampaignService' => 'connect-campaigns',
      'ConnectCampaignsV2' => 'connect-campaigns',
      'ConnectCases' => 'cases',
      'ConnectContactLens' => 'contact-lens',
      'ConnectParticipant' => 'participant.connect',
      'ConnectWisdomService' => 'wisdom',
      'ControlCatalog' => 'controlcatalog',
      'ControlTower' => 'controltower',
      'CostExplorer' => 'ce',
      'CostOptimizationHub' => 'cost-optimization-hub',
      'CostandUsageReportService' => 'cur',
      'CustomerProfiles' => 'profile',
      'DAX' => 'dax',
      'DLM' => 'dlm',
      'DSQL' => 'dsql',
      'DataExchange' => 'dataexchange',
      'DataPipeline' => 'datapipeline',
      'DataSync' => 'datasync',
      'DataZone' => 'datazone',
      'DatabaseMigrationService' => 'dms',
      'Deadline' => 'deadline',
      'Detective' => 'api.detective',
      'DevOpsGuru' => 'devops-guru',
      'DeviceFarm' => 'devicefarm',
      'DirectConnect' => 'directconnect',
      'DirectoryService' => 'ds',
      'DirectoryServiceData' => 'ds-data',
      'DocDB' => 'rds',
      'DocDBElastic' => 'docdb-elastic',
      'Drs' => 'drs',
      'DynamoDB' => 'dynamodb',
      'DynamoDBStreams' => 'streams.dynamodb',
      'EBS' => 'ebs',
      'EC2' => 'ec2',
      'EC2InstanceConnect' => 'ec2-instance-connect',
      'ECR' => 'api.ecr',
      'ECRPublic' => 'api.ecr-public',
      'ECS' => 'ecs',
      'EFS' => 'elasticfilesystem',
      'EKS' => 'eks',
      'EKSAuth' => 'eks-auth',
      'EMR' => 'elasticmapreduce',
      'EMRContainers' => 'emr-containers',
      'EMRServerless' => 'emr-serverless',
      'ElastiCache' => 'elasticache',
      'ElasticBeanstalk' => 'elasticbeanstalk',
      'ElasticInference' => 'api.elastic-inference',
      'ElasticLoadBalancing' => 'elasticloadbalancing',
      'ElasticLoadBalancingV2' => 'elasticloadbalancing',
      'ElasticTranscoder' => 'elastictranscoder',
      'ElasticsearchService' => 'es',
      'EntityResolution' => 'entityresolution',
      'EventBridge' => 'events',
      'FIS' => 'fis',
      'FMS' => 'fms',
      'FSx' => 'fsx',
      'FinSpaceData' => 'finspace-api',
      'Finspace' => 'finspace',
      'Firehose' => 'firehose',
      'ForecastQueryService' => 'forecastquery',
      'ForecastService' => 'forecast',
      'FraudDetector' => 'frauddetector',
      'FreeTier' => 'freetier',
      'GameLift' => 'gamelift',
      'GeoMaps' => 'geo-maps',
      'GeoPlaces' => 'geo-places',
      'GeoRoutes' => 'geo-routes',
      'Glacier' => 'glacier',
      'GlobalAccelerator' => 'globalaccelerator',
      'Glue' => 'glue',
      'GlueDataBrew' => 'databrew',
      'Greengrass' => 'greengrass',
      'GreengrassV2' => 'greengrass',
      'GroundStation' => 'groundstation',
      'GuardDuty' => 'guardduty',
      'Health' => 'health',
      'HealthLake' => 'healthlake',
      'IAM' => 'iam',
      'IVS' => 'ivs',
      'IVSRealTime' => 'ivsrealtime',
      'IdentityStore' => 'identitystore',
      'Imagebuilder' => 'imagebuilder',
      'ImportExport' => 'importexport',
      'Inspector' => 'inspector',
      'Inspector2' => 'inspector2',
      'InspectorScan' => 'inspector-scan',
      'InternetMonitor' => 'internetmonitor',
      'Invoicing' => 'invoicing',
      'IoT' => 'iot',
      'IoT1ClickDevicesService' => 'devices.iot1click',
      'IoT1ClickProjects' => 'projects.iot1click',
      'IoTAnalytics' => 'iotanalytics',
      'IoTDeviceAdvisor' => 'api.iotdeviceadvisor',
      'IoTEvents' => 'iotevents',
      'IoTEventsData' => 'data.iotevents',
      'IoTFleetHub' => 'api.fleethub.iot',
      'IoTFleetWise' => 'iotfleetwise',
      'IoTJobsDataPlane' => 'data.jobs.iot',
      'IoTSecureTunneling' => 'api.tunneling.iot',
      'IoTSiteWise' => 'iotsitewise',
      'IoTThingsGraph' => 'iotthingsgraph',
      'IoTTwinMaker' => 'iottwinmaker',
      'IoTWireless' => 'api.iotwireless',
      'Ivschat' => 'ivschat',
      'KMS' => 'kms',
      'Kafka' => 'kafka',
      'KafkaConnect' => 'kafkaconnect',
      'Kendra' => 'kendra',
      'KendraRanking' => 'kendra-ranking',
      'Keyspaces' => 'cassandra',
      'Kinesis' => 'kinesis',
      'KinesisAnalytics' => 'kinesisanalytics',
      'KinesisAnalyticsV2' => 'kinesisanalytics',
      'KinesisVideo' => 'kinesisvideo',
      'KinesisVideoArchivedMedia' => 'kinesisvideo',
      'KinesisVideoMedia' => 'kinesisvideo',
      'KinesisVideoSignalingChannels' => 'kinesisvideo',
      'KinesisVideoWebRTCStorage' => 'kinesisvideo',
      'LakeFormation' => 'lakeformation',
      'Lambda' => 'lambda',
      'LaunchWizard' => 'launchwizard',
      'Lex' => 'runtime.lex',
      'LexModelBuildingService' => 'models.lex',
      'LexModelsV2' => 'models-v2-lex',
      'LexRuntimeV2' => 'runtime-v2-lex',
      'LicenseManager' => 'license-manager',
      'LicenseManagerLinuxSubscriptions' => 'license-manager-linux-subscriptions',
      'LicenseManagerUserSubscriptions' => 'license-manager-user-subscriptions',
      'Lightsail' => 'lightsail',
      'LocationService' => 'geo',
      'LookoutEquipment' => 'lookoutequipment',
      'LookoutMetrics' => 'lookoutmetrics',
      'LookoutforVision' => 'lookoutvision',
      'MQ' => 'mq',
      'MTurk' => 'mturk-requester',
      'MWAA' => 'airflow',
      'MachineLearning' => 'machinelearning',
      'Macie2' => 'macie2',
      'MailManager' => 'mail-manager',
      'MainframeModernization' => 'm2',
      'ManagedBlockchain' => 'managedblockchain',
      'ManagedBlockchainQuery' => 'managedblockchain-query',
      'ManagedGrafana' => 'grafana',
      'MarketplaceAgreement' => 'agreement-marketplace',
      'MarketplaceCatalog' => 'catalog.marketplace',
      'MarketplaceCommerceAnalytics' => 'marketplacecommerceanalytics',
      'MarketplaceDeployment' => 'deployment-marketplace',
      'MarketplaceEntitlementService' => 'entitlement.marketplace',
      'MarketplaceMetering' => 'metering.marketplace',
      'MarketplaceReporting' => 'reporting-marketplace',
      'MediaConnect' => 'mediaconnect',
      'MediaConvert' => 'mediaconvert',
      'MediaLive' => 'medialive',
      'MediaPackage' => 'mediapackage',
      'MediaPackageV2' => 'mediapackagev2',
      'MediaPackageVod' => 'mediapackage-vod',
      'MediaStore' => 'mediastore',
      'MediaStoreData' => 'data.mediastore',
      'MediaTailor' => 'api.mediatailor',
      'MedicalImaging' => 'medical-imaging',
      'MemoryDB' => 'memory-db',
      'Mgn' => 'mgn',
      'MigrationHub' => 'mgh',
      'MigrationHubConfig' => 'migrationhub-config',
      'MigrationHubOrchestrator' => 'migrationhub-orchestrator',
      'MigrationHubRefactorSpaces' => 'refactor-spaces',
      'MigrationHubStrategyRecommendations' => 'migrationhub-strategy',
      'Neptune' => 'rds',
      'NeptuneGraph' => 'neptune-graph',
      'Neptunedata' => 'neptune-db',
      'NetworkFirewall' => 'network-firewall',
      'NetworkFlowMonitor' => 'networkflowmonitor',
      'NetworkManager' => 'networkmanager',
      'NetworkMonitor' => 'networkmonitor',
      'Notifications' => 'notifications',
      'NotificationsContacts' => 'notifications-contacts',
      'OAM' => 'oam',
      'OSIS' => 'osis',
      'ObservabilityAdmin' => 'observabilityadmin',
      'Omics' => 'omics',
      'OpenSearchServerless' => 'aoss',
      'OpenSearchService' => 'es',
      'OpsWorks' => 'opsworks',
      'OpsWorksCM' => 'opsworks-cm',
      'Organizations' => 'organizations',
      'Outposts' => 'outposts',
      'PCS' => 'pcs',
      'PI' => 'pi',
      'Panorama' => 'panorama',
      'PartnerCentralSelling' => 'partnercentral-selling',
      'PaymentCryptography' => 'controlplane.payment-cryptography',
      'PaymentCryptographyData' => 'dataplane.payment-cryptography',
      'PcaConnectorAd' => 'pca-connector-ad',
      'PcaConnectorScep' => 'pca-connector-scep',
      'Personalize' => 'personalize',
      'PersonalizeEvents' => 'personalize-events',
      'PersonalizeRuntime' => 'personalize-runtime',
      'Pinpoint' => 'pinpoint',
      'PinpointEmail' => 'email',
      'PinpointSMSVoice' => 'sms-voice.pinpoint',
      'PinpointSMSVoiceV2' => 'sms-voice',
      'Pipes' => 'pipes',
      'Polly' => 'polly',
      'Pricing' => 'api.pricing',
      'PrivateNetworks' => 'private-networks',
      'PrometheusService' => 'aps',
      'Proton' => 'proton',
      'QApps' => 'data.qapps',
      'QBusiness' => 'qbusiness',
      'QConnect' => 'wisdom',
      'QLDB' => 'qldb',
      'QLDBSession' => 'session.qldb',
      'QuickSight' => 'quicksight',
      'RAM' => 'ram',
      'RDS' => 'rds',
      'RDSDataService' => 'rds-data',
      'RecycleBin' => 'rbin',
      'Redshift' => 'redshift',
      'RedshiftDataAPIService' => 'redshift-data',
      'RedshiftServerless' => 'redshift-serverless',
      'Rekognition' => 'rekognition',
      'Repostspace' => 'repostspace',
      'ResilienceHub' => 'resiliencehub',
      'ResourceExplorer2' => 'resource-explorer-2',
      'ResourceGroups' => 'resource-groups',
      'ResourceGroupsTaggingAPI' => 'tagging',
      'RoboMaker' => 'robomaker',
      'RolesAnywhere' => 'rolesanywhere',
      'Route53' => 'route53',
      'Route53Domains' => 'route53domains',
      'Route53Profiles' => 'route53profiles',
      'Route53RecoveryCluster' => 'route53-recovery-cluster',
      'Route53RecoveryControlConfig' => 'route53-recovery-control-config',
      'Route53RecoveryReadiness' => 'route53-recovery-readiness',
      'Route53Resolver' => 'route53resolver',
      'S3' => 's3',
      'S3Control' => 's3-control',
      'S3Outposts' => 's3-outposts',
      'S3Tables' => 's3tables',
      'SES' => 'email',
      'SESV2' => 'email',
      'SMS' => 'sms',
      'SNS' => 'sns',
      'SQS' => 'sqs',
      'SSM' => 'ssm',
      'SSMContacts' => 'ssm-contacts',
      'SSMIncidents' => 'ssm-incidents',
      'SSMQuickSetup' => 'ssm-quicksetup',
      'SSO' => 'portal.sso',
      'SSOAdmin' => 'sso',
      'SSOOIDC' => 'oidc',
      'STS' => 'sts',
      'SWF' => 'swf',
      'SageMaker' => 'api.sagemaker',
      'SageMakerFeatureStoreRuntime' => 'featurestore-runtime.sagemaker',
      'SageMakerGeospatial' => 'sagemaker-geospatial',
      'SageMakerMetrics' => 'metrics.sagemaker',
      'SageMakerRuntime' => 'runtime.sagemaker',
      'SagemakerEdgeManager' => 'edge.sagemaker',
      'SavingsPlans' => 'savingsplans',
      'Scheduler' => 'scheduler',
      'Schemas' => 'schemas',
      'SecretsManager' => 'secretsmanager',
      'SecurityHub' => 'securityhub',
      'SecurityIR' => 'security-ir',
      'SecurityLake' => 'securitylake',
      'ServerlessApplicationRepository' => 'serverlessrepo',
      'ServiceCatalog' => 'servicecatalog',
      'ServiceDiscovery' => 'servicediscovery',
      'ServiceQuotas' => 'servicequotas',
      'Shield' => 'shield',
      'Signer' => 'signer',
      'SimSpaceWeaver' => 'simspaceweaver',
      'SimpleDB' => 'sdb',
      'SnowDeviceManagement' => 'snow-device-management',
      'Snowball' => 'snowball',
      'SocialMessaging' => 'social-messaging',
      'SsmSap' => 'ssm-sap',
      'States' => 'states',
      'StorageGateway' => 'storagegateway',
      'SupplyChain' => 'scn',
      'Support' => 'support',
      'SupportApp' => 'supportapp',
      'Synthetics' => 'synthetics',
      'TaxSettings' => 'tax',
      'Textract' => 'textract',
      'TimestreamInfluxDB' => 'timestream-influxdb',
      'TimestreamQuery' => 'query.timestream',
      'TimestreamWrite' => 'ingest.timestream',
      'Tnb' => 'tnb',
      'TranscribeService' => 'transcribe',
      'TranscribeStreamingService' => 'transcribestreaming',
      'Transfer' => 'transfer',
      'Translate' => 'translate',
      'TrustedAdvisor' => 'trustedadvisor',
      'VPCLattice' => 'vpc-lattice',
      'VerifiedPermissions' => 'verifiedpermissions',
      'VoiceID' => 'voiceid',
      'WAF' => 'waf',
      'WAFRegional' => 'waf-regional',
      'WAFV2' => 'wafv2',
      'WellArchitected' => 'wellarchitected',
      'WorkDocs' => 'workdocs',
      'WorkMail' => 'workmail',
      'WorkMailMessageFlow' => 'workmailmessageflow',
      'WorkSpaces' => 'workspaces',
      'WorkSpacesThinClient' => 'thinclient',
      'WorkSpacesWeb' => 'workspaces-web',
      'XRay' => 'xray',
    }
    # end service ids
  end
end