/** * Create a minimally-configured CloudFront distribution for an S3 bucket that will * be publicly available once created. * * @param origin the origin to associate with the distribution, either an Amazon S3 bucket or * a custom HTTP/S-accessible location. * @return an object that describes the newly-created distribution, in particular the * distribution's identifier and domain name values. * @throws CloudFrontServiceException */ public Distribution createDistribution(Origin origin) throws CloudFrontServiceException { return this.createDistribution(origin, null, null, null, true, null); }
/** * Create a minimally-configured CloudFront distribution for an S3 bucket that will * be publicly available once created. * * @param origin the origin to associate with the distribution, either an Amazon S3 bucket or * a custom HTTP/S-accessible location. * @return an object that describes the newly-created distribution, in particular the * distribution's identifier and domain name values. * @throws CloudFrontServiceException */ public Distribution createDistribution(Origin origin) throws CloudFrontServiceException { return this.createDistribution(origin, null, null, null, true, null); }
/** * Create a public CloudFront distribution for an S3 bucket. * * @param origin the origin to associate with the distribution, either an Amazon S3 bucket or * a custom HTTP/S-accessible location. * @param callerReference A user-set unique reference value that ensures the request can't be replayed * (max UTF-8 encoding size 128 bytes). This parameter may be null, in which * case your computer's local epoch time in milliseconds will be used. * @param cnames A list of up to 10 CNAME aliases to associate with the distribution. This * parameter may be a null or empty array. * @param comment An optional comment to describe the distribution in your own terms * (max 128 characters). May be null. * @param enabled Should the distribution should be enabled and publicly accessible upon creation? * @param loggingStatus Logging status settings (bucket, prefix) for the distribution. If this value * is null, logging will be disabled for the distribution. * @return an object that describes the newly-created distribution, in particular the * distribution's identifier and domain name values. * @throws CloudFrontServiceException */ public Distribution createDistribution(Origin origin, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus) throws CloudFrontServiceException { return createDistribution(origin, callerReference, cnames, comment, enabled, loggingStatus, false, null, null, null); }
/** * Create a public CloudFront distribution for an S3 bucket. * * @param origin the origin to associate with the distribution, either an Amazon S3 bucket or * a custom HTTP/S-accessible location. * @param callerReference A user-set unique reference value that ensures the request can't be replayed * (max UTF-8 encoding size 128 bytes). This parameter may be null, in which * case your computer's local epoch time in milliseconds will be used. * @param cnames A list of up to 10 CNAME aliases to associate with the distribution. This * parameter may be a null or empty array. * @param comment An optional comment to describe the distribution in your own terms * (max 128 characters). May be null. * @param enabled Should the distribution should be enabled and publicly accessible upon creation? * @param loggingStatus Logging status settings (bucket, prefix) for the distribution. If this value * is null, logging will be disabled for the distribution. * @return an object that describes the newly-created distribution, in particular the * distribution's identifier and domain name values. * @throws CloudFrontServiceException */ public Distribution createDistribution(Origin origin, String callerReference, String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus) throws CloudFrontServiceException { return createDistribution(origin, callerReference, cnames, comment, enabled, loggingStatus, false, null, null, null); }
String[] requiredProtocols, String defaultRootObject) throws CloudFrontServiceException { return this.createDistribution( origin, callerReference, cnames, comment, enabled, loggingStatus, trustedSignerSelf, trustedSignerAwsAccountNumbers, requiredProtocols, defaultRootObject,
String[] requiredProtocols, String defaultRootObject) throws CloudFrontServiceException { return this.createDistribution( origin, callerReference, cnames, comment, enabled, loggingStatus, trustedSignerSelf, trustedSignerAwsAccountNumbers, requiredProtocols, defaultRootObject,
cloudFrontService.createDistribution( new S3Origin(bucketName), null, cnamesTableModel.getCnames(), commentTextArea.getText(),
cloudFrontService.createDistribution( new S3Origin(bucketName), null, cnamesTableModel.getCnames(), commentTextArea.getText(),
Distribution newDistribution = cloudFrontService.createDistribution( new S3Origin(originBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value Distribution privateDistribution = cloudFrontService.createDistribution( new S3Origin(originBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value Distribution customOriginDistribution = cloudFrontService.createDistribution( customOrigin, "" + System.currentTimeMillis(), // Caller reference - a unique string value
Distribution newDistribution = cloudFrontService.createDistribution( new S3Origin(originBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value Distribution privateDistribution = cloudFrontService.createDistribution( new S3Origin(originBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value Distribution customOriginDistribution = cloudFrontService.createDistribution( customOrigin, "" + System.currentTimeMillis(), // Caller reference - a unique string value