4 lines
174 KiB
PHP
4 lines
174 KiB
PHP
|
|
<?php
|
||
|
|
// This file was auto-generated from sdk-root/src/data/s3/2006-03-01/endpoint-tests-1.json
|
||
|
|
return [ 'testCases' => [ [ 'documentation' => 'region is not a valid DNS-suffix', 'expect' => [ 'error' => 'Invalid region: region was not a valid DNS name.', ], 'params' => [ 'Region' => 'a b', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, ], ], [ 'documentation' => 'Invalid access point ARN: Not S3', 'expect' => [ 'error' => 'Invalid ARN: The ARN was not for the S3 service, found: not-s3', ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:not-s3:us-west-2:123456789012:accesspoint:myendpoint', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'Bucket' => 'arn:aws:not-s3:us-west-2:123456789012:accesspoint:myendpoint', ], ], [ 'documentation' => 'Invalid access point ARN: invalid resource', 'expect' => [ 'error' => 'Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.', ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint:more-data', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint:more-data', ], ], [ 'documentation' => 'Invalid access point ARN: invalid no ap name', 'expect' => [ 'error' => 'Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided', ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:', ], ], [ 'documentation' => 'Invalid access point ARN: AccountId is invalid', 'expect' => [ 'error' => 'Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `123456_789012`', ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:s3:us-west-2:123456_789012:accesspoint:apname', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'Bucket' => 'arn:aws:s3:us-west-2:123456_789012:accesspoint:apname', ], ], [ 'documentation' => 'Invalid access point ARN: access point name is invalid', 'expect' => [ 'error' => 'Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `ap_name`', ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:ap_name', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:ap_name', ], ], [ 'documentation' => 'Access points (disable access points explicitly false)', 'expect' => [ 'endpoint' => [ 'properties' => [ 'authSchemes' => [ [ 'name' => 'sigv4', 'signingName' => 's3', 'signingRegion' => 'us-west-2', 'disableDoubleEncoding' => true, ], ], ], 'url' => 'https://myendpoint-123456789012.s3-accesspoint.us-west-2.amazonaws.com', ], ], 'operationInputs' => [ [ 'builtInParams' => [ 'AWS::Region' => 'us-east-1', ], 'operationName' => 'GetObject', 'operationParams' => [ 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint', 'Key' => 'key', ], ], ], 'params' => [ 'Region' => 'us-east-1', 'UseFIPS' => false, 'UseDualStack' => false, 'Accelerate' => false, 'DisableAccessPoints' => false, 'Bucket' => 'arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint', ], ], [ 'documenta
|