Field Level Encryption Config Args
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.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.FieldLevelEncryptionConfig;
import com.pulumi.aws.cloudfront.FieldLevelEncryptionConfigArgs;
import com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionConfigContentTypeProfileConfigArgs;
import com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesArgs;
import com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionConfigQueryArgProfileConfigArgs;
import com.pulumi.aws.cloudfront.inputs.FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new FieldLevelEncryptionConfig("test", FieldLevelEncryptionConfigArgs.builder()
.comment("test comment")
.contentTypeProfileConfig(FieldLevelEncryptionConfigContentTypeProfileConfigArgs.builder()
.forwardWhenContentTypeIsUnknown(true)
.contentTypeProfiles(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesArgs.builder()
.items(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItemArgs.builder()
.contentType("application/x-www-form-urlencoded")
.format("URLEncoded")
.build())
.build())
.build())
.queryArgProfileConfig(FieldLevelEncryptionConfigQueryArgProfileConfigArgs.builder()
.forwardWhenQueryArgProfileIsUnknown(true)
.queryArgProfiles(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesArgs.builder()
.items(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItemArgs.builder()
.profileId(aws_cloudfront_field_level_encryption_profile.test().id())
.queryArg("Arg1")
.build())
.build())
.build())
.build());
}
}
Content copied to clipboard
Import
Cloudfront Field Level Encryption Config can be imported using the id
, e.g.
$ pulumi import aws:cloudfront/fieldLevelEncryptionConfig:FieldLevelEncryptionConfig config E74FTE3AEXAMPLE
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(comment: Output<String>? = null, contentTypeProfileConfig: Output<FieldLevelEncryptionConfigContentTypeProfileConfigArgs>? = null, queryArgProfileConfig: Output<FieldLevelEncryptionConfigQueryArgProfileConfigArgs>? = null)
Properties
Link copied to clipboard
val contentTypeProfileConfig: Output<FieldLevelEncryptionConfigContentTypeProfileConfigArgs>? = null
Content Type Profile Config specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
Link copied to clipboard
Query Arg Profile Config that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.