/** * Convenience method to disable a distribution that you intend to delete. * This method merely calls the * {@link #updateDistributionConfig(String, Origin, String[], String, boolean, LoggingStatus)} * method with default values for most of the distribution's configuration * settings. * <p> * <strong>Warning</strong>: Do not use this method on distributions you * intend to keep, because it will reset most of the distribution's * configuration settings such as CNAMEs and logging status. * * @param id the distribution's unique identifier. * @throws CloudFrontServiceException */ public void disableDistributionForDeletion(String id) throws CloudFrontServiceException { updateDistributionConfig(id, null, new String[]{}, "Disabled prior to deletion", false, null); }
/** * Convenience method to disable a distribution that you intend to delete. * This method merely calls the * {@link #updateDistributionConfig(String, Origin, String[], String, boolean, LoggingStatus)} * method with default values for most of the distribution's configuration * settings. * <p> * <strong>Warning</strong>: Do not use this method on distributions you * intend to keep, because it will reset most of the distribution's * configuration settings such as CNAMEs and logging status. * * @param id the distribution's unique identifier. * @throws CloudFrontServiceException */ public void disableDistributionForDeletion(String id) throws CloudFrontServiceException { updateDistributionConfig(id, null, new String[]{}, "Disabled prior to deletion", false, null); }
String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus) throws CloudFrontServiceException { return updateDistributionConfig(id, origin, cnames, comment, enabled, loggingStatus, false, null, null, null);
String[] cnames, String comment, boolean enabled, LoggingStatus loggingStatus) throws CloudFrontServiceException { return updateDistributionConfig(id, origin, cnames, comment, enabled, loggingStatus, false, null, null, null);
cloudFrontService.updateDistributionConfig(distribution.getId(),
cloudFrontService.updateDistributionConfig(distribution.getId(),
DistributionConfig updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig); System.out.println("Distribution Config with custom MinTTL: " + updatedDistributionConfig); DistributionConfig disabledDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, null, new String[] {}, "Deleting distribution", false, null); System.out.println("Disabled Distribution Config: " + disabledDistributionConfig); updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, new S3Origin(originBucket, originAccessIdentityId),
DistributionConfig updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, updatedDistributionConfig); System.out.println("Distribution Config with custom MinTTL: " + updatedDistributionConfig); DistributionConfig disabledDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, null, new String[] {}, "Deleting distribution", false, null); System.out.println("Disabled Distribution Config: " + disabledDistributionConfig); updatedDistributionConfig = cloudFrontService.updateDistributionConfig( testDistributionId, new S3Origin(originBucket, originAccessIdentityId),