SecurityConfiguration

Manages a Glue Security Configuration.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Glue.SecurityConfiguration("example", new Aws.Glue.SecurityConfigurationArgs
        {
            EncryptionConfiguration = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationArgs
            {
                CloudwatchEncryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs
                {
                    CloudwatchEncryptionMode = "DISABLED",
                },
                JobBookmarksEncryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs
                {
                    JobBookmarksEncryptionMode = "DISABLED",
                },
                S3Encryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs
                {
                    KmsKeyArn = data.Aws_kms_key.Example.Arn,
                    S3EncryptionMode = "SSE-KMS",
                },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/glue"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := glue.NewSecurityConfiguration(ctx, "example", &glue.SecurityConfigurationArgs{
            EncryptionConfiguration: &glue.SecurityConfigurationEncryptionConfigurationArgs{
                CloudwatchEncryption: &glue.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs{
                    CloudwatchEncryptionMode: pulumi.String("DISABLED"),
                },
                JobBookmarksEncryption: &glue.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs{
                    JobBookmarksEncryptionMode: pulumi.String("DISABLED"),
                },
                S3Encryption: &glue.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs{
                    KmsKeyArn:        pulumi.String(data.Aws_kms_key.Example.Arn),
                    S3EncryptionMode: pulumi.String("SSE-KMS"),
                },
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.glue.SecurityConfiguration("example", encryption_configuration={
    "cloudwatchEncryption": {
        "cloudwatchEncryptionMode": "DISABLED",
    },
    "jobBookmarksEncryption": {
        "jobBookmarksEncryptionMode": "DISABLED",
    },
    "s3Encryption": {
        "kms_key_arn": data["aws_kms_key"]["example"]["arn"],
        "s3EncryptionMode": "SSE-KMS",
    },
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.glue.SecurityConfiguration("example", {
    encryptionConfiguration: {
        cloudwatchEncryption: {
            cloudwatchEncryptionMode: "DISABLED",
        },
        jobBookmarksEncryption: {
            jobBookmarksEncryptionMode: "DISABLED",
        },
        s3Encryption: {
            kmsKeyArn: aws_kms_key_example.arn,
            s3EncryptionMode: "SSE-KMS",
        },
    },
});

Create a SecurityConfiguration Resource

def SecurityConfiguration(resource_name, opts=None, encryption_configuration=None, name=None, __props__=None);
name string
The unique name of the resource.
args SecurityConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SecurityConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecurityConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecurityConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SecurityConfiguration resource accepts the following input properties:

EncryptionConfiguration SecurityConfigurationEncryptionConfigurationArgs

Configuration block containing encryption configuration. Detailed below.

Name string

Name of the security configuration.

EncryptionConfiguration SecurityConfigurationEncryptionConfiguration

Configuration block containing encryption configuration. Detailed below.

Name string

Name of the security configuration.

encryptionConfiguration SecurityConfigurationEncryptionConfiguration

Configuration block containing encryption configuration. Detailed below.

name string

Name of the security configuration.

encryption_configuration Dict[SecurityConfigurationEncryptionConfiguration]

Configuration block containing encryption configuration. Detailed below.

name str

Name of the security configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecurityConfiguration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing SecurityConfiguration Resource

Get an existing SecurityConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, encryption_configuration=None, name=None, __props__=None);
func GetSecurityConfiguration(ctx *Context, name string, id IDInput, state *SecurityConfigurationState, opts ...ResourceOption) (*SecurityConfiguration, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

EncryptionConfiguration SecurityConfigurationEncryptionConfigurationArgs

Configuration block containing encryption configuration. Detailed below.

Name string

Name of the security configuration.

EncryptionConfiguration SecurityConfigurationEncryptionConfiguration

Configuration block containing encryption configuration. Detailed below.

Name string

Name of the security configuration.

encryptionConfiguration SecurityConfigurationEncryptionConfiguration

Configuration block containing encryption configuration. Detailed below.

name string

Name of the security configuration.

encryption_configuration Dict[SecurityConfigurationEncryptionConfiguration]

Configuration block containing encryption configuration. Detailed below.

name str

Name of the security configuration.

Supporting Types

SecurityConfigurationEncryptionConfiguration

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CloudwatchEncryption SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs
JobBookmarksEncryption SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs
S3Encryption SecurityConfigurationEncryptionConfigurationS3EncryptionArgs

A s3_encryption block as described below, which contains encryption configuration for S3 data.

CloudwatchEncryption SecurityConfigurationEncryptionConfigurationCloudwatchEncryption
JobBookmarksEncryption SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption
S3Encryption SecurityConfigurationEncryptionConfigurationS3Encryption

A s3_encryption block as described below, which contains encryption configuration for S3 data.

cloudwatchEncryption SecurityConfigurationEncryptionConfigurationCloudwatchEncryption
jobBookmarksEncryption SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption
s3Encryption SecurityConfigurationEncryptionConfigurationS3Encryption

A s3_encryption block as described below, which contains encryption configuration for S3 data.

cloudwatchEncryption Dict[SecurityConfigurationEncryptionConfigurationCloudwatchEncryption]
jobBookmarksEncryption Dict[SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption]
s3Encryption Dict[SecurityConfigurationEncryptionConfigurationS3Encryption]

A s3_encryption block as described below, which contains encryption configuration for S3 data.

SecurityConfigurationEncryptionConfigurationCloudwatchEncryption

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CloudwatchEncryptionMode string

Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

CloudwatchEncryptionMode string

Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

cloudwatchEncryptionMode string

Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED.

kmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

cloudwatchEncryptionMode str

Encryption mode to use for CloudWatch data. Valid values: DISABLED, SSE-KMS. Default value: DISABLED.

kms_key_arn str

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

JobBookmarksEncryptionMode string

Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

JobBookmarksEncryptionMode string

Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

jobBookmarksEncryptionMode string

Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED.

kmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

jobBookmarksEncryptionMode str

Encryption mode to use for job bookmarks data. Valid values: CSE-KMS, DISABLED. Default value: DISABLED.

kms_key_arn str

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

SecurityConfigurationEncryptionConfigurationS3Encryption

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

S3EncryptionMode string

Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED.

KmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

S3EncryptionMode string

Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED.

kmsKeyArn string

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

s3EncryptionMode string

Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED.

kms_key_arn str

Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.

s3EncryptionMode str

Encryption mode to use for S3 data. Valid values: DISABLED, SSE-KMS, SSE-S3. Default value: DISABLED.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.