

# S3ConnectionConfig

The Amazon S3 location that a connection reads evidence from.

## Contents
<a name="API_S3ConnectionConfig_Contents"></a>

 ** sourceUri **   <a name="assurance-Type-S3ConnectionConfig-sourceUri"></a>
The S3 URI of the bucket or prefix, for example `s3://amzn-s3-demo-bucket/compliance/`. The bucket must be in the same AWS Region as the governance environment.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9](/.*)?`   
Required: Yes

 ** expectedBucketOwner **   <a name="assurance-Type-S3ConnectionConfig-expectedBucketOwner"></a>
The ID of the AWS account that must own the bucket. Required for a bucket in another account. AWS Assurance sends this value with each request to the bucket, and the request fails if a different account owns the bucket.  
Type: String  
Length Constraints: Fixed length of 12.  
Pattern: `[0-9]{12}`   
Required: No

## See Also
<a name="API_S3ConnectionConfig_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/assurance-2022-07-26/S3ConnectionConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/assurance-2022-07-26/S3ConnectionConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/assurance-2022-07-26/S3ConnectionConfig) 