com.amazonaws.services.s3.model.BucketLoggingConfiguration Java Examples
The following examples show how to use
com.amazonaws.services.s3.model.BucketLoggingConfiguration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BucketVH.java From pacbot with Apache License 2.0 | 5 votes |
/** * Instantiates a new bucket VH. * * @param bucket the bucket * @param location the location * @param versionConfig the version config * @param tags the tags */ public BucketVH(Bucket bucket,String location,BucketVersioningConfiguration versionConfig, List<Tag> tags, String bucketEncryp, boolean websiteConfiguration,BucketLoggingConfiguration bucketLoggingConfiguration){ this.bucket = bucket; this.location = location; this.versionStatus = versionConfig==null?"":versionConfig.getStatus(); this.mfaDelete = versionConfig==null?null:versionConfig.isMfaDeleteEnabled(); this.tags = tags; this.bucketEncryp = bucketEncryp; this.websiteConfiguration = websiteConfiguration; this.isLoggingEnabled = bucketLoggingConfiguration==null?null:bucketLoggingConfiguration.isLoggingEnabled(); this.destinationBucketName = bucketLoggingConfiguration==null?"":bucketLoggingConfiguration.getDestinationBucketName(); this.logFilePrefix = bucketLoggingConfiguration==null?"":bucketLoggingConfiguration.getLogFilePrefix(); }
Example #2
Source File: AwsSdkTest.java From s3proxy with Apache License 2.0 | 5 votes |
@Test public void testUnknownParameter() throws Exception { try { client.setBucketLoggingConfiguration( new SetBucketLoggingConfigurationRequest( containerName, new BucketLoggingConfiguration())); Fail.failBecauseExceptionWasNotThrown(AmazonS3Exception.class); } catch (AmazonS3Exception e) { assertThat(e.getErrorCode()).isEqualTo("NotImplemented"); } }
Example #3
Source File: DummyS3Client.java From ignite with Apache License 2.0 | 4 votes |
/** Unsupported Operation. */ @Override public BucketLoggingConfiguration getBucketLoggingConfiguration( String bucketName) throws SdkClientException { throw new UnsupportedOperationException("Operation not supported"); }
Example #4
Source File: DummyS3Client.java From ignite with Apache License 2.0 | 4 votes |
/** Unsupported Operation. */ @Override public BucketLoggingConfiguration getBucketLoggingConfiguration( GetBucketLoggingConfigurationRequest getBucketLoggingConfigurationReq) throws SdkClientException { throw new UnsupportedOperationException("Operation not supported"); }
Example #5
Source File: AmazonS3Mock.java From Scribengin with GNU Affero General Public License v3.0 | 4 votes |
@Override public BucketLoggingConfiguration getBucketLoggingConfiguration(String bucketName) throws AmazonClientException, AmazonServiceException { // TODO Auto-generated method stub return null; }