Package-level declarations

Types

Link copied to clipboard

The following example below creates a CloudFront cache policy.

Link copied to clipboard
data class CachePolicyArgs(val comment: Output<String>? = null, val defaultTtl: Output<Int>? = null, val maxTtl: Output<Int>? = null, val minTtl: Output<Int>? = null, val name: Output<String>? = null, val parametersInCacheKeyAndForwardedToOrigin: Output<CachePolicyParametersInCacheKeyAndForwardedToOriginArgs>? = null) : ConvertibleToJava<CachePolicyArgs>

The following example below creates a CloudFront cache policy.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Creates an Amazon CloudFront web distribution. For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For specific information about creating CloudFront web distributions, see the POST Distribution page in the Amazon CloudFront API Reference.

Link copied to clipboard
data class DistributionArgs(val aliases: Output<List<String>>? = null, val comment: Output<String>? = null, val customErrorResponses: Output<List<DistributionCustomErrorResponseArgs>>? = null, val defaultCacheBehavior: Output<DistributionDefaultCacheBehaviorArgs>? = null, val defaultRootObject: Output<String>? = null, val enabled: Output<Boolean>? = null, val httpVersion: Output<String>? = null, val isIpv6Enabled: Output<Boolean>? = null, val loggingConfig: Output<DistributionLoggingConfigArgs>? = null, val orderedCacheBehaviors: Output<List<DistributionOrderedCacheBehaviorArgs>>? = null, val originGroups: Output<List<DistributionOriginGroupArgs>>? = null, val origins: Output<List<DistributionOriginArgs>>? = null, val priceClass: Output<String>? = null, val restrictions: Output<DistributionRestrictionsArgs>? = null, val retainOnDelete: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val viewerCertificate: Output<DistributionViewerCertificateArgs>? = null, val waitForDeployment: Output<Boolean>? = null, val webAclId: Output<String>? = null) : ConvertibleToJava<DistributionArgs>

Creates an Amazon CloudFront web distribution. For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For specific information about creating CloudFront web distributions, see the POST Distribution page in the Amazon CloudFront API Reference.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Provides a CloudFront Field-level Encryption Config resource.

Link copied to clipboard
data class FieldLevelEncryptionConfigArgs(val comment: Output<String>? = null, val contentTypeProfileConfig: Output<FieldLevelEncryptionConfigContentTypeProfileConfigArgs>? = null, val queryArgProfileConfig: Output<FieldLevelEncryptionConfigQueryArgProfileConfigArgs>? = null) : ConvertibleToJava<FieldLevelEncryptionConfigArgs>

Provides a CloudFront Field-level Encryption Config resource.

Link copied to clipboard

Provides a CloudFront Field-level Encryption Profile resource.

Link copied to clipboard
data class FieldLevelEncryptionProfileArgs(val comment: Output<String>? = null, val encryptionEntities: Output<FieldLevelEncryptionProfileEncryptionEntitiesArgs>? = null, val name: Output<String>? = null) : ConvertibleToJava<FieldLevelEncryptionProfileArgs>

Provides a CloudFront Field-level Encryption Profile resource.

Link copied to clipboard

Provides a CloudFront Function resource. With CloudFront Functions in Amazon CloudFront, you can write lightweight functions in JavaScript for high-scale, latency-sensitive CDN customizations. See CloudFront Functions

Link copied to clipboard
data class FunctionArgs(val code: Output<String>? = null, val comment: Output<String>? = null, val name: Output<String>? = null, val publish: Output<Boolean>? = null, val runtime: Output<String>? = null) : ConvertibleToJava<FunctionArgs>

Provides a CloudFront Function resource. With CloudFront Functions in Amazon CloudFront, you can write lightweight functions in JavaScript for high-scale, latency-sensitive CDN customizations. See CloudFront Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The following example below creates a CloudFront key group.

Link copied to clipboard
data class KeyGroupArgs(val comment: Output<String>? = null, val items: Output<List<String>>? = null, val name: Output<String>? = null) : ConvertibleToJava<KeyGroupArgs>

The following example below creates a CloudFront key group.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Provides a CloudFront real-time log configuration resource.

Link copied to clipboard
data class MonitoringSubscriptionArgs(val distributionId: Output<String>? = null, val monitoringSubscription: Output<MonitoringSubscriptionMonitoringSubscriptionArgs>? = null) : ConvertibleToJava<MonitoringSubscriptionArgs>

Provides a CloudFront real-time log configuration resource.

Link copied to clipboard

Manages an AWS CloudFront Origin Access Control, which is used by CloudFront Distributions with an Amazon S3 bucket as the origin. Read more about Origin Access Control in the CloudFront Developer Guide.

Link copied to clipboard
data class OriginAccessControlArgs(val description: Output<String>? = null, val name: Output<String>? = null, val originAccessControlOriginType: Output<String>? = null, val signingBehavior: Output<String>? = null, val signingProtocol: Output<String>? = null) : ConvertibleToJava<OriginAccessControlArgs>

Manages an AWS CloudFront Origin Access Control, which is used by CloudFront Distributions with an Amazon S3 bucket as the origin. Read more about Origin Access Control in the CloudFront Developer Guide.

Link copied to clipboard

Creates an Amazon CloudFront origin access identity. For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For more information on generating origin access identities, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.

Link copied to clipboard
data class OriginAccessIdentityArgs(val comment: Output<String>? = null) : ConvertibleToJava<OriginAccessIdentityArgs>

Creates an Amazon CloudFront origin access identity. For information about CloudFront distributions, see the Amazon CloudFront Developer Guide. For more information on generating origin access identities, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content.

Link copied to clipboard

The following example below creates a CloudFront origin request policy.

Link copied to clipboard
data class OriginRequestPolicyArgs(val comment: Output<String>? = null, val cookiesConfig: Output<OriginRequestPolicyCookiesConfigArgs>? = null, val headersConfig: Output<OriginRequestPolicyHeadersConfigArgs>? = null, val name: Output<String>? = null, val queryStringsConfig: Output<OriginRequestPolicyQueryStringsConfigArgs>? = null) : ConvertibleToJava<OriginRequestPolicyArgs>

The following example below creates a CloudFront origin request policy.

Link copied to clipboard

The following example below creates a CloudFront public key.

Link copied to clipboard
data class PublicKeyArgs(val comment: Output<String>? = null, val encodedKey: Output<String>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null) : ConvertibleToJava<PublicKeyArgs>

The following example below creates a CloudFront public key.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Provides a CloudFront real-time log configuration resource.

Link copied to clipboard
data class RealtimeLogConfigArgs(val endpoint: Output<RealtimeLogConfigEndpointArgs>? = null, val fields: Output<List<String>>? = null, val name: Output<String>? = null, val samplingRate: Output<Int>? = null) : ConvertibleToJava<RealtimeLogConfigArgs>

Provides a CloudFront real-time log configuration resource.

Link copied to clipboard

Provides a CloudFront response headers policy resource. A response headers policy contains information about a set of HTTP response headers and their values. After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront adds the headers in the policy to every response that it sends for requests that match the cache behavior.

Link copied to clipboard
data class ResponseHeadersPolicyArgs(val comment: Output<String>? = null, val corsConfig: Output<ResponseHeadersPolicyCorsConfigArgs>? = null, val customHeadersConfig: Output<ResponseHeadersPolicyCustomHeadersConfigArgs>? = null, val etag: Output<String>? = null, val name: Output<String>? = null, val securityHeadersConfig: Output<ResponseHeadersPolicySecurityHeadersConfigArgs>? = null, val serverTimingHeadersConfig: Output<ResponseHeadersPolicyServerTimingHeadersConfigArgs>? = null) : ConvertibleToJava<ResponseHeadersPolicyArgs>

Provides a CloudFront response headers policy resource. A response headers policy contains information about a set of HTTP response headers and their values. After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront adds the headers in the policy to every response that it sends for requests that match the cache behavior.

Functions

Link copied to clipboard
suspend fun cachePolicyResource(name: String, block: suspend CachePolicyResourceBuilder.() -> Unit): CachePolicy
Link copied to clipboard
suspend fun distributionResource(name: String, block: suspend DistributionResourceBuilder.() -> Unit): Distribution
Link copied to clipboard
suspend fun functionResource(name: String, block: suspend FunctionResourceBuilder.() -> Unit): Function
Link copied to clipboard
suspend fun keyGroupResource(name: String, block: suspend KeyGroupResourceBuilder.() -> Unit): KeyGroup
Link copied to clipboard
suspend fun publicKeyResource(name: String, block: suspend PublicKeyResourceBuilder.() -> Unit): PublicKey
Link copied to clipboard