<?php
// This file was auto-generated from sdk-root/src/data/kinesis/2013-12-02/endpoint-tests-1.json
return [ 'testCases' => [ [ 'documentation' => 'For region af-south-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.af-south-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'af-south-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-northeast-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-northeast-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-northeast-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-northeast-2 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-northeast-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-northeast-2', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-northeast-3 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-northeast-3.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-northeast-3', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-south-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-south-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-south-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-southeast-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-southeast-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-southeast-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-southeast-2 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-southeast-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-southeast-2', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ap-southeast-3 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ap-southeast-3.amazonaws.com', ], ], 'params' => [ 'Region' => 'ap-southeast-3', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region ca-central-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.ca-central-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'ca-central-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-central-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-central-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-central-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-north-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-north-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-north-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-south-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-south-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-south-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-west-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-west-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-west-2 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-west-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-west-2', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region eu-west-3 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.eu-west-3.amazonaws.com', ], ], 'params' => [ 'Region' => 'eu-west-3', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region me-south-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.me-south-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'me-south-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region sa-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.sa-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'sa-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-east-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-east-2 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-east-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-2', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-east-2 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-east-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-2', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-west-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-west-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-west-2 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-west-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-2', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-west-2 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-west-2.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-2', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-east-1 with FIPS enabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region us-east-1 with FIPS disabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region cn-north-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.cn-north-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-north-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region cn-northwest-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.cn-northwest-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region cn-north-1 with FIPS enabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.cn-north-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-north-1', 'UseFIPS' => true, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region cn-north-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.cn-north-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-north-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region cn-north-1 with FIPS disabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.cn-north-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-north-1', 'UseFIPS' => false, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region us-gov-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-gov-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-gov-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-gov-east-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-gov-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-gov-east-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-gov-west-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-gov-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-gov-west-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-gov-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-gov-east-1 with FIPS enabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-gov-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-gov-east-1', 'UseFIPS' => true, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region us-gov-east-1 with FIPS disabled and DualStack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-gov-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-gov-east-1', 'UseFIPS' => false, 'UseDualStack' => true, ], ], [ 'documentation' => 'For region us-iso-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-iso-west-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-west-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-west-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-iso-east-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-isob-east-1 with FIPS disabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => false, 'UseDualStack' => false, ], ], [ 'documentation' => 'For region us-isob-east-1 with FIPS enabled and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => true, 'UseDualStack' => false, ], ], [ 'documentation' => 'For custom endpoint with region set and fips disabled and dualstack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'For custom endpoint with region not set and fips disabled and dualstack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'UseFIPS' => false, 'UseDualStack' => false, 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'For custom endpoint with fips enabled and dualstack disabled', 'expect' => [ 'error' => 'Invalid Configuration: FIPS and custom endpoint are not supported', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'For custom endpoint with fips disabled and dualstack enabled', 'expect' => [ 'error' => 'Invalid Configuration: Dualstack and custom endpoint are not supported', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => true, 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'Missing region', 'expect' => [ 'error' => 'Invalid Configuration: Missing Region', ], ], [ 'documentation' => 'Invalid ARN: Failed to parse ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn', ], ], [ 'documentation' => 'Invalid ARN: partition missing from ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn::kinesis:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'Invalid ARN: partitions mismatch.', 'expect' => [ 'error' => 'Partition: aws from ARN doesn\'t match with partition name: aws-us-gov.', ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'Invalid ARN: Not Kinesis', 'expect' => [ 'error' => 'Invalid ARN: The ARN was not for the Kinesis service, found: s3.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:s3:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'Invalid ARN: Region is missing in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis::123456789012:stream/testStream', ], ], [ 'documentation' => 'Invalid ARN: Region is empty string in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis: :123456789012:stream/testStream', ], ], [ 'documentation' => 'Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis:us-east-1::stream/testStream', 'OperationType' => 'control', ], ], [ 'documentation' => 'Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis:us-east-1: :stream/testStream', 'OperationType' => 'control', ], ], [ 'documentation' => 'Invalid ARN: Kinesis ARNs only support stream arn types', 'expect' => [ 'error' => 'Invalid ARN: Kinesis ARNs don\'t support `accesspoint` arn types.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:accesspoint/testStream', ], ], [ 'documentation' => 'OperationType not set', 'expect' => [ 'error' => 'Operation Type is not set. Please contact service team for resolution.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'StreamARN' => 'arn:aws:kinesis:us-east-1:123456789012:stream/testStream', ], ], [ 'documentation' => 'Custom Endpoint is specified', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'Account endpoint targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with fips targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with fips targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with Dual Stack and FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'control', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with Dual Stack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-west-1.api.aws', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => true, 'OperationType' => 'data', 'StreamARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with FIPS and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'RegionMismatch: client region should be used for endpoint region', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws:kinesis:us-west-1:123:stream/testStream', ], ], [ 'documentation' => 'Account endpoint with FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with FIPS and DualStack enabled for cn regions.', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'data', 'StreamARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-west-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws-iso:kinesis:us-iso-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with fips targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'StreamARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Account endpoint with fips targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'Invalid ConsumerARN: Failed to parse ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn', ], ], [ 'documentation' => 'Invalid ConsumerARN: partition missing from ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn::kinesis:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Invalid ARN: partitions mismatch.', 'expect' => [ 'error' => 'Partition: aws from ARN doesn\'t match with partition name: aws-us-gov.', ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Invalid ARN: Not Kinesis', 'expect' => [ 'error' => 'Invalid ARN: The ARN was not for the Kinesis service, found: s3.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:s3:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Invalid ARN: Region is missing in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis::123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Invalid ARN: Region is empty string in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis: :123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis:us-east-1::stream/testStream/consumer/test-consumer:1525898737', 'OperationType' => 'control', ], ], [ 'documentation' => 'Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis:us-east-1: :stream/testStream/consumer/test-consumer:1525898737', 'OperationType' => 'control', ], ], [ 'documentation' => 'Invalid ARN: Kinesis ARNs only support stream arn/consumer arn types', 'expect' => [ 'error' => 'Invalid ARN: Kinesis ARNs don\'t support `accesspoint` arn types.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:accesspoint/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'OperationType not set', 'expect' => [ 'error' => 'Operation Type is not set. Please contact service team for resolution.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Custom Endpoint is specified', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'Account endpoint targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with fips targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with fips targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with Dual Stack and FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with Dual Stack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-west-1.api.aws', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => true, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with FIPS and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'RegionMismatch: client region should be used for endpoint region', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws:kinesis:us-west-1:123:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with FIPS and DualStack enabled for cn regions.', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-west-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws-iso:kinesis:us-iso-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with fips targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ConsumerARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Account endpoint with fips targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ConsumerARN targeting US-EAST-1', 'expect' => [ 'endpoint' => [ 'url' => 'https://123456789123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123456789123:stream/foobar/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'Both StreamARN and ConsumerARN specified. StreamARN should take precedence', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'StreamARN' => 'arn:aws:kinesis:us-east-1:123:stream/foobar', 'ConsumerARN' => 'arn:aws:kinesis:us-east-1:123456789123:stream/foobar/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN test: Invalid ARN: Failed to parse ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: partition missing from ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn::kinesis:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: partitions mismatch.', 'expect' => [ 'error' => 'Partition: aws from ARN doesn\'t match with partition name: aws-us-gov.', ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Not Kinesis', 'expect' => [ 'error' => 'Invalid ARN: The ARN was not for the Kinesis service, found: s3.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:s3:us-west-2:123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Region is missing in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis::123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Region is empty string in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis: :123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1::stream/testStream', 'OperationType' => 'control', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1: :stream/testStream', 'OperationType' => 'control', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Invalid ARN: Kinesis ARNs only support stream arn types', 'expect' => [ 'error' => 'Invalid ARN: Kinesis ARNs don\'t support `accesspoint` arn types.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:accesspoint/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: OperationType not set', 'expect' => [ 'error' => 'Operation Type is not set. Please contact service team for resolution.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123456789012:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Custom Endpoint is specified', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with fips targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with fips targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with Dual Stack and FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with Dual Stack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-west-1.api.aws', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => true, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with FIPS and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: RegionMismatch: client region should be used for endpoint region', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/testStream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with FIPS and DualStack enabled for cn regions.', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-west-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-west-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with fips targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as StreamARN test: Account endpoint with fips targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: partition missing from ARN.', 'expect' => [ 'error' => 'Invalid ARN: Failed to parse ARN.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn::kinesis:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: partitions mismatch.', 'expect' => [ 'error' => 'Partition: aws from ARN doesn\'t match with partition name: aws-us-gov.', ], 'params' => [ 'Region' => 'us-gov-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Not Kinesis', 'expect' => [ 'error' => 'Invalid ARN: The ARN was not for the Kinesis service, found: s3.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:s3:us-west-2:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Region is missing in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis::123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Region is empty string in ARN', 'expect' => [ 'error' => 'Invalid ARN: Invalid region.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis: :123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1::stream/testStream/consumer/test-consumer:1525898737', 'OperationType' => 'control', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Invalid account id', 'expect' => [ 'error' => 'Invalid ARN: Invalid account id.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1: :stream/testStream/consumer/test-consumer:1525898737', 'OperationType' => 'control', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Invalid ARN: Kinesis ARNs only support stream arn/consumer arn types', 'expect' => [ 'error' => 'Invalid ARN: Kinesis ARNs don\'t support `accesspoint` arn types.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:accesspoint/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: OperationType not set', 'expect' => [ 'error' => 'Operation Type is not set. Please contact service team for resolution.', ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123456789012:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Custom Endpoint is specified', 'expect' => [ 'endpoint' => [ 'url' => 'https://example.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', 'Endpoint' => 'https://example.com', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with fips targeting data operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with fips targeting control operation type', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with Dual Stack and FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis-fips.us-east-1.api.aws', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with Dual Stack enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-west-1.api.aws', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => true, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with FIPS and DualStack disabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.control-kinesis.us-west-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: RegionMismatch: client region should be used for endpoint region', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis.us-east-1.amazonaws.com', ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws:kinesis:us-west-1:123:stream/testStream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with FIPS enabled', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.amazonaws.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with FIPS and DualStack enabled for cn regions.', 'expect' => [ 'endpoint' => [ 'url' => 'https://123.data-kinesis-fips.cn-northwest-1.api.amazonwebservices.com.cn', ], ], 'params' => [ 'Region' => 'cn-northwest-1', 'UseFIPS' => true, 'UseDualStack' => true, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-cn:kinesis:cn-northwest-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-iso-west-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-west-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-west-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with fips targeting control operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-iso-east-1.c2s.ic.gov', ], ], 'params' => [ 'Region' => 'us-iso-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'control', 'ResourceARN' => 'arn:aws-iso:kinesis:us-iso-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], [ 'documentation' => 'ResourceARN as ConsumerARN test: Account endpoint with fips targeting data operation type in ADC regions', 'expect' => [ 'endpoint' => [ 'url' => 'https://kinesis-fips.us-isob-east-1.sc2s.sgov.gov', ], ], 'params' => [ 'Region' => 'us-isob-east-1', 'UseFIPS' => true, 'UseDualStack' => false, 'OperationType' => 'data', 'ResourceARN' => 'arn:aws-iso-b:kinesis:us-isob-east-1:123:stream/test-stream/consumer/test-consumer:1525898737', ], ], ], 'version' => '1.0',];
