mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(cloudfront): implement CloudFront service emulation (#969)
* feat(cloudfront): implement CloudFront service emulation Adds full CloudFront emulation covering both core and extended operations using the REST XML protocol (2020-05-31 API). Core resources: - Distributions (CRUDL, copy, enable/disable, ETag concurrency) - Cache Behaviors (default + ordered) - Invalidations (create, get, list) - Origin Access Controls and Origin Access Identities - CloudFront Functions (create, update, publish, test, describe) Extended resources: - Continuous Deployment Policies - Public Keys and Key Groups - Realtime Log Configs (non-standard POST-based get/delete) - Streaming Distributions (legacy RTMP, enforces disabled before delete) - Field-Level Encryption Configs and Profiles - Monitoring Subscriptions Infrastructure: - Registers CloudFrontController in ResolvedServiceCatalog as REST_XML - Adds CloudFrontServiceConfig and CloudFrontStorageConfig to EmulatorConfig - Adds CLOUDFRONT namespace constant to AwsNamespaces - Registers CloudFrontService for GraalVM runtime initialization to avoid SecureRandom heap-baking in native builds - Wires storage through StorageFactory with per-resource JSON files - Adds cloudfront.md documentation page * docs: revert docker-compose.yml
This commit is contained in:
1 parent
eda92677dd
commit
b200280a83
30 files changed
+4886
-1
No files matched your search
@@ -133,6 +133,7 @@ public interface EmulatorConfig {
|
||||
RdsStorageConfig rds();
|
||||
NeptuneStorageConfig neptune();
|
||||
BackupStorageConfig backup();
|
||||
CloudFrontStorageConfig cloudfront();
|
||||
}
|
||||
|
||||
interface SsmStorageConfig {
|
||||
@@ -242,6 +243,10 @@ public interface EmulatorConfig {
|
||||
long flushIntervalMs();
|
||||
}
|
||||
|
||||
interface CloudFrontStorageConfig {
|
||||
Optional<String> mode();
|
||||
}
|
||||
|
||||
interface WalConfig {
|
||||
@WithDefault("30000")
|
||||
long compactionIntervalMs();
|
||||
@@ -313,6 +318,7 @@ public interface EmulatorConfig {
|
||||
CurServiceConfig cur();
|
||||
BcmDataExportsServiceConfig bcmDataExports();
|
||||
ConfigServiceConfig configservice();
|
||||
CloudFrontServiceConfig cloudfront();
|
||||
}
|
||||
|
||||
interface TransferServiceConfig {
|
||||
@@ -736,6 +742,14 @@ public interface EmulatorConfig {
|
||||
String stagingBucket();
|
||||
}
|
||||
|
||||
interface CloudFrontServiceConfig {
|
||||
@WithDefault("true")
|
||||
boolean enabled();
|
||||
|
||||
@WithDefault("cloudfront.net")
|
||||
String domainSuffix();
|
||||
}
|
||||
|
||||
interface BcmDataExportsServiceConfig {
|
||||
@WithDefault("true")
|
||||
boolean enabled();
|
||||
|
||||
@@ -20,6 +20,7 @@ public final class AwsNamespaces {
|
||||
public static final String ELB_V2 = "https://elasticloadbalancing.amazonaws.com/doc/2015-12-01/";
|
||||
public static final String AUTOSCALING = "https://autoscaling.amazonaws.com/doc/2011-01-01/";
|
||||
public static final String ROUTE53 = "https://route53.amazonaws.com/doc/2013-04-01/";
|
||||
public static final String CLOUDFRONT = "http://cloudfront.amazonaws.com/doc/2020-05-31/";
|
||||
|
||||
private AwsNamespaces() {}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import io.github.hectorvent.floci.services.eks.EksController;
|
||||
import io.github.hectorvent.floci.services.pipes.PipesController;
|
||||
import io.github.hectorvent.floci.services.lambda.LambdaController;
|
||||
import io.github.hectorvent.floci.services.opensearch.OpenSearchController;
|
||||
import io.github.hectorvent.floci.services.cloudfront.CloudFrontController;
|
||||
import io.github.hectorvent.floci.services.route53.Route53Controller;
|
||||
import io.github.hectorvent.floci.services.ses.SesController;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
@@ -272,7 +273,12 @@ public class ResolvedServiceCatalog {
|
||||
descriptor("bcm-data-exports", "bcmdataexports", config.services().bcmDataExports().enabled(), true,
|
||||
"bcmdataexports", config.storage().mode(), 5000L, null, ServiceProtocol.JSON,
|
||||
protocols(ServiceProtocol.JSON),
|
||||
Set.of("AWSBillingAndCostManagementDataExports."), Set.of("bcm-data-exports"), Set.of(), Set.of())
|
||||
Set.of("AWSBillingAndCostManagementDataExports."), Set.of("bcm-data-exports"), Set.of(), Set.of()),
|
||||
descriptor("cloudfront", "cloudfront", config.services().cloudfront().enabled(), true,
|
||||
"cloudfront", storageMode(config.storage().services().cloudfront().mode(), config.storage().mode()),
|
||||
5000L, AwsNamespaces.CLOUDFRONT, ServiceProtocol.REST_XML,
|
||||
protocols(ServiceProtocol.REST_XML),
|
||||
Set.of(), Set.of("cloudfront"), Set.of(), Set.of(CloudFrontController.class))
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
+2775
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,74 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class CacheBehavior {
|
||||
|
||||
private String pathPattern;
|
||||
private String targetOriginId;
|
||||
private String viewerProtocolPolicy = "redirect-to-https";
|
||||
private List<String> allowedMethods;
|
||||
private List<String> cachedMethods;
|
||||
private String cachePolicyId;
|
||||
private String originRequestPolicyId;
|
||||
private String responseHeadersPolicyId;
|
||||
private String fieldLevelEncryptionId;
|
||||
private String realtimeLogConfigArn;
|
||||
private List<Map<String, String>> functionAssociations;
|
||||
private List<Map<String, Object>> lambdaFunctionAssociations;
|
||||
private boolean compress;
|
||||
private long defaultTTL;
|
||||
private long minTTL;
|
||||
private long maxTTL;
|
||||
|
||||
public CacheBehavior() {}
|
||||
|
||||
public String getPathPattern() { return pathPattern; }
|
||||
public void setPathPattern(String pathPattern) { this.pathPattern = pathPattern; }
|
||||
|
||||
public String getTargetOriginId() { return targetOriginId; }
|
||||
public void setTargetOriginId(String targetOriginId) { this.targetOriginId = targetOriginId; }
|
||||
|
||||
public String getViewerProtocolPolicy() { return viewerProtocolPolicy; }
|
||||
public void setViewerProtocolPolicy(String viewerProtocolPolicy) { this.viewerProtocolPolicy = viewerProtocolPolicy; }
|
||||
|
||||
public List<String> getAllowedMethods() { return allowedMethods; }
|
||||
public void setAllowedMethods(List<String> allowedMethods) { this.allowedMethods = allowedMethods; }
|
||||
|
||||
public List<String> getCachedMethods() { return cachedMethods; }
|
||||
public void setCachedMethods(List<String> cachedMethods) { this.cachedMethods = cachedMethods; }
|
||||
|
||||
public String getCachePolicyId() { return cachePolicyId; }
|
||||
public void setCachePolicyId(String cachePolicyId) { this.cachePolicyId = cachePolicyId; }
|
||||
|
||||
public String getOriginRequestPolicyId() { return originRequestPolicyId; }
|
||||
public void setOriginRequestPolicyId(String originRequestPolicyId) { this.originRequestPolicyId = originRequestPolicyId; }
|
||||
|
||||
public String getResponseHeadersPolicyId() { return responseHeadersPolicyId; }
|
||||
public void setResponseHeadersPolicyId(String responseHeadersPolicyId) { this.responseHeadersPolicyId = responseHeadersPolicyId; }
|
||||
|
||||
public String getFieldLevelEncryptionId() { return fieldLevelEncryptionId; }
|
||||
public void setFieldLevelEncryptionId(String fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; }
|
||||
|
||||
public String getRealtimeLogConfigArn() { return realtimeLogConfigArn; }
|
||||
public void setRealtimeLogConfigArn(String realtimeLogConfigArn) { this.realtimeLogConfigArn = realtimeLogConfigArn; }
|
||||
|
||||
public List<Map<String, String>> getFunctionAssociations() { return functionAssociations; }
|
||||
public void setFunctionAssociations(List<Map<String, String>> functionAssociations) { this.functionAssociations = functionAssociations; }
|
||||
|
||||
public List<Map<String, Object>> getLambdaFunctionAssociations() { return lambdaFunctionAssociations; }
|
||||
public void setLambdaFunctionAssociations(List<Map<String, Object>> lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; }
|
||||
|
||||
public boolean isCompress() { return compress; }
|
||||
public void setCompress(boolean compress) { this.compress = compress; }
|
||||
|
||||
public long getDefaultTTL() { return defaultTTL; }
|
||||
public void setDefaultTTL(long defaultTTL) { this.defaultTTL = defaultTTL; }
|
||||
|
||||
public long getMinTTL() { return minTTL; }
|
||||
public void setMinTTL(long minTTL) { this.minTTL = minTTL; }
|
||||
|
||||
public long getMaxTTL() { return maxTTL; }
|
||||
public void setMaxTTL(long maxTTL) { this.maxTTL = maxTTL; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Map;
|
||||
|
||||
public class CachePolicy {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
private String comment;
|
||||
private String etag;
|
||||
private Instant lastModifiedTime;
|
||||
private Map<String, Object> config;
|
||||
|
||||
public CachePolicy() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public Map<String, Object> getConfig() { return config; }
|
||||
public void setConfig(Map<String, Object> config) { this.config = config; }
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class CloudFrontFunction {
|
||||
|
||||
private String name;
|
||||
private String stage;
|
||||
private String status;
|
||||
private String functionCode;
|
||||
private String runtime;
|
||||
private String comment;
|
||||
private String etag;
|
||||
private Instant createdTime;
|
||||
private Instant lastModifiedTime;
|
||||
|
||||
public CloudFrontFunction() {}
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getStage() { return stage; }
|
||||
public void setStage(String stage) { this.stage = stage; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public String getFunctionCode() { return functionCode; }
|
||||
public void setFunctionCode(String functionCode) { this.functionCode = functionCode; }
|
||||
|
||||
public String getRuntime() { return runtime; }
|
||||
public void setRuntime(String runtime) { this.runtime = runtime; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Instant getCreatedTime() { return createdTime; }
|
||||
public void setCreatedTime(Instant createdTime) { this.createdTime = createdTime; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
public class CloudFrontOriginAccessIdentity {
|
||||
|
||||
private String id;
|
||||
private String s3CanonicalUserId;
|
||||
private String callerReference;
|
||||
private String comment;
|
||||
private String etag;
|
||||
|
||||
public CloudFrontOriginAccessIdentity() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getS3CanonicalUserId() { return s3CanonicalUserId; }
|
||||
public void setS3CanonicalUserId(String s3CanonicalUserId) { this.s3CanonicalUserId = s3CanonicalUserId; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public class ContinuousDeploymentPolicy {
|
||||
|
||||
private String id;
|
||||
private Instant lastModifiedTime;
|
||||
private String etag;
|
||||
private boolean enabled;
|
||||
private List<String> stagingDistributionDnsNames;
|
||||
private String trafficConfig;
|
||||
|
||||
public ContinuousDeploymentPolicy() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
|
||||
public List<String> getStagingDistributionDnsNames() { return stagingDistributionDnsNames; }
|
||||
public void setStagingDistributionDnsNames(List<String> stagingDistributionDnsNames) {
|
||||
this.stagingDistributionDnsNames = stagingDistributionDnsNames;
|
||||
}
|
||||
|
||||
public String getTrafficConfig() { return trafficConfig; }
|
||||
public void setTrafficConfig(String trafficConfig) { this.trafficConfig = trafficConfig; }
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class DefaultCacheBehavior {
|
||||
|
||||
private String targetOriginId;
|
||||
private String viewerProtocolPolicy = "redirect-to-https";
|
||||
private List<String> allowedMethods;
|
||||
private List<String> cachedMethods;
|
||||
private String cachePolicyId;
|
||||
private String originRequestPolicyId;
|
||||
private String responseHeadersPolicyId;
|
||||
private String fieldLevelEncryptionId;
|
||||
private String realtimeLogConfigArn;
|
||||
private List<Map<String, String>> functionAssociations;
|
||||
private List<Map<String, Object>> lambdaFunctionAssociations;
|
||||
private boolean compress;
|
||||
private long defaultTTL;
|
||||
private long minTTL;
|
||||
private long maxTTL;
|
||||
|
||||
public DefaultCacheBehavior() {}
|
||||
|
||||
public String getTargetOriginId() { return targetOriginId; }
|
||||
public void setTargetOriginId(String targetOriginId) { this.targetOriginId = targetOriginId; }
|
||||
|
||||
public String getViewerProtocolPolicy() { return viewerProtocolPolicy; }
|
||||
public void setViewerProtocolPolicy(String viewerProtocolPolicy) { this.viewerProtocolPolicy = viewerProtocolPolicy; }
|
||||
|
||||
public List<String> getAllowedMethods() { return allowedMethods; }
|
||||
public void setAllowedMethods(List<String> allowedMethods) { this.allowedMethods = allowedMethods; }
|
||||
|
||||
public List<String> getCachedMethods() { return cachedMethods; }
|
||||
public void setCachedMethods(List<String> cachedMethods) { this.cachedMethods = cachedMethods; }
|
||||
|
||||
public String getCachePolicyId() { return cachePolicyId; }
|
||||
public void setCachePolicyId(String cachePolicyId) { this.cachePolicyId = cachePolicyId; }
|
||||
|
||||
public String getOriginRequestPolicyId() { return originRequestPolicyId; }
|
||||
public void setOriginRequestPolicyId(String originRequestPolicyId) { this.originRequestPolicyId = originRequestPolicyId; }
|
||||
|
||||
public String getResponseHeadersPolicyId() { return responseHeadersPolicyId; }
|
||||
public void setResponseHeadersPolicyId(String responseHeadersPolicyId) { this.responseHeadersPolicyId = responseHeadersPolicyId; }
|
||||
|
||||
public String getFieldLevelEncryptionId() { return fieldLevelEncryptionId; }
|
||||
public void setFieldLevelEncryptionId(String fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; }
|
||||
|
||||
public String getRealtimeLogConfigArn() { return realtimeLogConfigArn; }
|
||||
public void setRealtimeLogConfigArn(String realtimeLogConfigArn) { this.realtimeLogConfigArn = realtimeLogConfigArn; }
|
||||
|
||||
public List<Map<String, String>> getFunctionAssociations() { return functionAssociations; }
|
||||
public void setFunctionAssociations(List<Map<String, String>> functionAssociations) { this.functionAssociations = functionAssociations; }
|
||||
|
||||
public List<Map<String, Object>> getLambdaFunctionAssociations() { return lambdaFunctionAssociations; }
|
||||
public void setLambdaFunctionAssociations(List<Map<String, Object>> lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; }
|
||||
|
||||
public boolean isCompress() { return compress; }
|
||||
public void setCompress(boolean compress) { this.compress = compress; }
|
||||
|
||||
public long getDefaultTTL() { return defaultTTL; }
|
||||
public void setDefaultTTL(long defaultTTL) { this.defaultTTL = defaultTTL; }
|
||||
|
||||
public long getMinTTL() { return minTTL; }
|
||||
public void setMinTTL(long minTTL) { this.minTTL = minTTL; }
|
||||
|
||||
public long getMaxTTL() { return maxTTL; }
|
||||
public void setMaxTTL(long maxTTL) { this.maxTTL = maxTTL; }
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Map;
|
||||
|
||||
public class Distribution {
|
||||
|
||||
private String id;
|
||||
private String arn;
|
||||
private String domainName;
|
||||
private String status;
|
||||
private Instant lastModifiedTime;
|
||||
private String etag;
|
||||
private Map<String, String> tags;
|
||||
private DistributionConfig config;
|
||||
|
||||
public Distribution() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getArn() { return arn; }
|
||||
public void setArn(String arn) { this.arn = arn; }
|
||||
|
||||
public String getDomainName() { return domainName; }
|
||||
public void setDomainName(String domainName) { this.domainName = domainName; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Map<String, String> getTags() { return tags; }
|
||||
public void setTags(Map<String, String> tags) { this.tags = tags; }
|
||||
|
||||
public DistributionConfig getConfig() { return config; }
|
||||
public void setConfig(DistributionConfig config) { this.config = config; }
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class DistributionConfig {
|
||||
|
||||
private String callerReference;
|
||||
private boolean enabled;
|
||||
private String comment;
|
||||
private String defaultRootObject;
|
||||
private List<Origin> origins;
|
||||
private DefaultCacheBehavior defaultCacheBehavior;
|
||||
private List<CacheBehavior> cacheBehaviors;
|
||||
private List<String> aliases;
|
||||
private Map<String, String> viewerCertificate;
|
||||
private Map<String, Object> geoRestriction;
|
||||
private String httpVersion = "http2";
|
||||
private String priceClass = "PriceClass_All";
|
||||
private boolean isIPV6Enabled = true;
|
||||
private String webAclId;
|
||||
private List<Map<String, Object>> customErrorResponses;
|
||||
private Map<String, Object> logging;
|
||||
private String continuousDeploymentPolicyId;
|
||||
private boolean staging;
|
||||
|
||||
public DistributionConfig() {}
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getDefaultRootObject() { return defaultRootObject; }
|
||||
public void setDefaultRootObject(String defaultRootObject) { this.defaultRootObject = defaultRootObject; }
|
||||
|
||||
public List<Origin> getOrigins() { return origins; }
|
||||
public void setOrigins(List<Origin> origins) { this.origins = origins; }
|
||||
|
||||
public DefaultCacheBehavior getDefaultCacheBehavior() { return defaultCacheBehavior; }
|
||||
public void setDefaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior) { this.defaultCacheBehavior = defaultCacheBehavior; }
|
||||
|
||||
public List<CacheBehavior> getCacheBehaviors() { return cacheBehaviors; }
|
||||
public void setCacheBehaviors(List<CacheBehavior> cacheBehaviors) { this.cacheBehaviors = cacheBehaviors; }
|
||||
|
||||
public List<String> getAliases() { return aliases; }
|
||||
public void setAliases(List<String> aliases) { this.aliases = aliases; }
|
||||
|
||||
public Map<String, String> getViewerCertificate() { return viewerCertificate; }
|
||||
public void setViewerCertificate(Map<String, String> viewerCertificate) { this.viewerCertificate = viewerCertificate; }
|
||||
|
||||
public Map<String, Object> getGeoRestriction() { return geoRestriction; }
|
||||
public void setGeoRestriction(Map<String, Object> geoRestriction) { this.geoRestriction = geoRestriction; }
|
||||
|
||||
public String getHttpVersion() { return httpVersion; }
|
||||
public void setHttpVersion(String httpVersion) { this.httpVersion = httpVersion; }
|
||||
|
||||
public String getPriceClass() { return priceClass; }
|
||||
public void setPriceClass(String priceClass) { this.priceClass = priceClass; }
|
||||
|
||||
public boolean isIPV6Enabled() { return isIPV6Enabled; }
|
||||
public void setIPV6Enabled(boolean IPV6Enabled) { this.isIPV6Enabled = IPV6Enabled; }
|
||||
|
||||
public String getWebAclId() { return webAclId; }
|
||||
public void setWebAclId(String webAclId) { this.webAclId = webAclId; }
|
||||
|
||||
public List<Map<String, Object>> getCustomErrorResponses() { return customErrorResponses; }
|
||||
public void setCustomErrorResponses(List<Map<String, Object>> customErrorResponses) { this.customErrorResponses = customErrorResponses; }
|
||||
|
||||
public Map<String, Object> getLogging() { return logging; }
|
||||
public void setLogging(Map<String, Object> logging) { this.logging = logging; }
|
||||
|
||||
public String getContinuousDeploymentPolicyId() { return continuousDeploymentPolicyId; }
|
||||
public void setContinuousDeploymentPolicyId(String continuousDeploymentPolicyId) { this.continuousDeploymentPolicyId = continuousDeploymentPolicyId; }
|
||||
|
||||
public boolean isStaging() { return staging; }
|
||||
public void setStaging(boolean staging) { this.staging = staging; }
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class FieldLevelEncryptionConfig {
|
||||
|
||||
private String id;
|
||||
private Instant lastModifiedTime;
|
||||
private String etag;
|
||||
private String callerReference;
|
||||
private String comment;
|
||||
|
||||
public FieldLevelEncryptionConfig() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class FieldLevelEncryptionProfile {
|
||||
|
||||
private String id;
|
||||
private Instant lastModifiedTime;
|
||||
private String etag;
|
||||
private String name;
|
||||
private String callerReference;
|
||||
private String comment;
|
||||
|
||||
public FieldLevelEncryptionProfile() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public class Invalidation {
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
private Instant createTime;
|
||||
private List<String> paths;
|
||||
private String callerReference;
|
||||
|
||||
public Invalidation() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public Instant getCreateTime() { return createTime; }
|
||||
public void setCreateTime(Instant createTime) { this.createTime = createTime; }
|
||||
|
||||
public List<String> getPaths() { return paths; }
|
||||
public void setPaths(List<String> paths) { this.paths = paths; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public class KeyGroup {
|
||||
|
||||
private String id;
|
||||
private Instant lastModifiedTime;
|
||||
private String etag;
|
||||
private String name;
|
||||
private String comment;
|
||||
private List<String> items;
|
||||
|
||||
public KeyGroup() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public List<String> getItems() { return items; }
|
||||
public void setItems(List<String> items) { this.items = items; }
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
public class MonitoringSubscription {
|
||||
|
||||
private String distributionId;
|
||||
private String realtimeMetricsSubscriptionStatus;
|
||||
|
||||
public MonitoringSubscription() {}
|
||||
|
||||
public String getDistributionId() { return distributionId; }
|
||||
public void setDistributionId(String distributionId) { this.distributionId = distributionId; }
|
||||
|
||||
public String getRealtimeMetricsSubscriptionStatus() { return realtimeMetricsSubscriptionStatus; }
|
||||
public void setRealtimeMetricsSubscriptionStatus(String realtimeMetricsSubscriptionStatus) {
|
||||
this.realtimeMetricsSubscriptionStatus = realtimeMetricsSubscriptionStatus;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class Origin {
|
||||
|
||||
private String id;
|
||||
private String domainName;
|
||||
private String originPath;
|
||||
private String originAccessControlId;
|
||||
private Map<String, String> s3OriginConfig;
|
||||
private Map<String, Object> customOriginConfig;
|
||||
private int connectionAttempts = 3;
|
||||
private int connectionTimeout = 10;
|
||||
private List<Map<String, String>> customHeaders;
|
||||
|
||||
public Origin() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getDomainName() { return domainName; }
|
||||
public void setDomainName(String domainName) { this.domainName = domainName; }
|
||||
|
||||
public String getOriginPath() { return originPath; }
|
||||
public void setOriginPath(String originPath) { this.originPath = originPath; }
|
||||
|
||||
public String getOriginAccessControlId() { return originAccessControlId; }
|
||||
public void setOriginAccessControlId(String originAccessControlId) { this.originAccessControlId = originAccessControlId; }
|
||||
|
||||
public Map<String, String> getS3OriginConfig() { return s3OriginConfig; }
|
||||
public void setS3OriginConfig(Map<String, String> s3OriginConfig) { this.s3OriginConfig = s3OriginConfig; }
|
||||
|
||||
public Map<String, Object> getCustomOriginConfig() { return customOriginConfig; }
|
||||
public void setCustomOriginConfig(Map<String, Object> customOriginConfig) { this.customOriginConfig = customOriginConfig; }
|
||||
|
||||
public int getConnectionAttempts() { return connectionAttempts; }
|
||||
public void setConnectionAttempts(int connectionAttempts) { this.connectionAttempts = connectionAttempts; }
|
||||
|
||||
public int getConnectionTimeout() { return connectionTimeout; }
|
||||
public void setConnectionTimeout(int connectionTimeout) { this.connectionTimeout = connectionTimeout; }
|
||||
|
||||
public List<Map<String, String>> getCustomHeaders() { return customHeaders; }
|
||||
public void setCustomHeaders(List<Map<String, String>> customHeaders) { this.customHeaders = customHeaders; }
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class OriginAccessControl {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
private String description;
|
||||
private String etag;
|
||||
private Instant lastModifiedTime;
|
||||
private String signingBehavior;
|
||||
private String signingProtocol;
|
||||
private String originAccessControlOriginType;
|
||||
|
||||
public OriginAccessControl() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getDescription() { return description; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getSigningBehavior() { return signingBehavior; }
|
||||
public void setSigningBehavior(String signingBehavior) { this.signingBehavior = signingBehavior; }
|
||||
|
||||
public String getSigningProtocol() { return signingProtocol; }
|
||||
public void setSigningProtocol(String signingProtocol) { this.signingProtocol = signingProtocol; }
|
||||
|
||||
public String getOriginAccessControlOriginType() { return originAccessControlOriginType; }
|
||||
public void setOriginAccessControlOriginType(String originAccessControlOriginType) { this.originAccessControlOriginType = originAccessControlOriginType; }
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Map;
|
||||
|
||||
public class OriginRequestPolicy {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
private String comment;
|
||||
private String etag;
|
||||
private Instant lastModifiedTime;
|
||||
private Map<String, Object> config;
|
||||
|
||||
public OriginRequestPolicy() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public Map<String, Object> getConfig() { return config; }
|
||||
public void setConfig(Map<String, Object> config) { this.config = config; }
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class PublicKey {
|
||||
|
||||
private String id;
|
||||
private Instant createdTime;
|
||||
private String etag;
|
||||
private String callerReference;
|
||||
private String name;
|
||||
private String encodedKey;
|
||||
private String comment;
|
||||
|
||||
public PublicKey() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public Instant getCreatedTime() { return createdTime; }
|
||||
public void setCreatedTime(Instant createdTime) { this.createdTime = createdTime; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getEncodedKey() { return encodedKey; }
|
||||
public void setEncodedKey(String encodedKey) { this.encodedKey = encodedKey; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class RealtimeLogConfig {
|
||||
|
||||
private String arn;
|
||||
private String name;
|
||||
private long samplingRate;
|
||||
private List<String> fields;
|
||||
private List<Map<String, Object>> endPoints;
|
||||
|
||||
public RealtimeLogConfig() {}
|
||||
|
||||
public String getArn() { return arn; }
|
||||
public void setArn(String arn) { this.arn = arn; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public long getSamplingRate() { return samplingRate; }
|
||||
public void setSamplingRate(long samplingRate) { this.samplingRate = samplingRate; }
|
||||
|
||||
public List<String> getFields() { return fields; }
|
||||
public void setFields(List<String> fields) { this.fields = fields; }
|
||||
|
||||
public List<Map<String, Object>> getEndPoints() { return endPoints; }
|
||||
public void setEndPoints(List<Map<String, Object>> endPoints) { this.endPoints = endPoints; }
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.Map;
|
||||
|
||||
public class ResponseHeadersPolicy {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
private String comment;
|
||||
private String etag;
|
||||
private Instant lastModifiedTime;
|
||||
private Map<String, Object> config;
|
||||
|
||||
public ResponseHeadersPolicy() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public Map<String, Object> getConfig() { return config; }
|
||||
public void setConfig(Map<String, Object> config) { this.config = config; }
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
package io.github.hectorvent.floci.services.cloudfront.model;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public class StreamingDistribution {
|
||||
|
||||
private String id;
|
||||
private String arn;
|
||||
private String status;
|
||||
private Instant lastModifiedTime;
|
||||
private String domainName;
|
||||
private String etag;
|
||||
private String callerReference;
|
||||
private boolean enabled;
|
||||
private String comment;
|
||||
private String s3Bucket;
|
||||
private String s3OriginAccessIdentity;
|
||||
private List<String> aliases;
|
||||
private String priceClass;
|
||||
|
||||
public StreamingDistribution() {}
|
||||
|
||||
public String getId() { return id; }
|
||||
public void setId(String id) { this.id = id; }
|
||||
|
||||
public String getArn() { return arn; }
|
||||
public void setArn(String arn) { this.arn = arn; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public Instant getLastModifiedTime() { return lastModifiedTime; }
|
||||
public void setLastModifiedTime(Instant lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; }
|
||||
|
||||
public String getDomainName() { return domainName; }
|
||||
public void setDomainName(String domainName) { this.domainName = domainName; }
|
||||
|
||||
public String getEtag() { return etag; }
|
||||
public void setEtag(String etag) { this.etag = etag; }
|
||||
|
||||
public String getCallerReference() { return callerReference; }
|
||||
public void setCallerReference(String callerReference) { this.callerReference = callerReference; }
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
|
||||
public String getComment() { return comment; }
|
||||
public void setComment(String comment) { this.comment = comment; }
|
||||
|
||||
public String getS3Bucket() { return s3Bucket; }
|
||||
public void setS3Bucket(String s3Bucket) { this.s3Bucket = s3Bucket; }
|
||||
|
||||
public String getS3OriginAccessIdentity() { return s3OriginAccessIdentity; }
|
||||
public void setS3OriginAccessIdentity(String s3OriginAccessIdentity) {
|
||||
this.s3OriginAccessIdentity = s3OriginAccessIdentity;
|
||||
}
|
||||
|
||||
public List<String> getAliases() { return aliases; }
|
||||
public void setAliases(List<String> aliases) { this.aliases = aliases; }
|
||||
|
||||
public String getPriceClass() { return priceClass; }
|
||||
public void setPriceClass(String priceClass) { this.priceClass = priceClass; }
|
||||
}
|
||||
Reference in new issue
Block a user