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
new SecurityConfiguration(name: string, args: SecurityConfigurationArgs, opts?: CustomResourceOptions);def SecurityConfiguration(resource_name, opts=None, encryption_configuration=None, name=None, __props__=None);func NewSecurityConfiguration(ctx *Context, name string, args SecurityConfigurationArgs, opts ...ResourceOption) (*SecurityConfiguration, error)public SecurityConfiguration(string name, SecurityConfigurationArgs args, CustomResourceOptions? opts = null)- 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:
- Encryption
Configuration SecurityConfiguration Encryption Configuration Args Configuration block containing encryption configuration. Detailed below.
- Name string
Name of the security configuration.
- Encryption
Configuration SecurityConfiguration Encryption Configuration Configuration block containing encryption configuration. Detailed below.
- Name string
Name of the security configuration.
- encryption
Configuration SecurityConfiguration Encryption Configuration Configuration block containing encryption configuration. Detailed below.
- name string
Name of the security configuration.
- encryption_
configuration Dict[SecurityConfiguration Encryption Configuration] 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:
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.
public static get(name: string, id: Input<ID>, state?: SecurityConfigurationState, opts?: CustomResourceOptions): SecurityConfigurationstatic 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)public static SecurityConfiguration Get(string name, Input<string> id, SecurityConfigurationState? state, CustomResourceOptions? opts = null)- 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:
- Encryption
Configuration SecurityConfiguration Encryption Configuration Args Configuration block containing encryption configuration. Detailed below.
- Name string
Name of the security configuration.
- Encryption
Configuration SecurityConfiguration Encryption Configuration Configuration block containing encryption configuration. Detailed below.
- Name string
Name of the security configuration.
- encryption
Configuration SecurityConfiguration Encryption Configuration Configuration block containing encryption configuration. Detailed below.
- name string
Name of the security configuration.
- encryption_
configuration Dict[SecurityConfiguration Encryption Configuration] Configuration block containing encryption configuration. Detailed below.
- name str
Name of the security configuration.
Supporting Types
SecurityConfigurationEncryptionConfiguration
- Cloudwatch
Encryption SecurityConfiguration Encryption Configuration Cloudwatch Encryption Args - Job
Bookmarks SecurityEncryption Configuration Encryption Configuration Job Bookmarks Encryption Args - S3Encryption
Security
Configuration Encryption Configuration S3Encryption Args A
s3_encryptionblock as described below, which contains encryption configuration for S3 data.
- Cloudwatch
Encryption SecurityConfiguration Encryption Configuration Cloudwatch Encryption - Job
Bookmarks SecurityEncryption Configuration Encryption Configuration Job Bookmarks Encryption - S3Encryption
Security
Configuration Encryption Configuration S3Encryption A
s3_encryptionblock as described below, which contains encryption configuration for S3 data.
- cloudwatch
Encryption SecurityConfiguration Encryption Configuration Cloudwatch Encryption - job
Bookmarks SecurityEncryption Configuration Encryption Configuration Job Bookmarks Encryption - s3Encryption
Security
Configuration Encryption Configuration S3Encryption A
s3_encryptionblock as described below, which contains encryption configuration for S3 data.
- cloudwatch
Encryption Dict[SecurityConfiguration Encryption Configuration Cloudwatch Encryption] - job
Bookmarks Dict[SecurityEncryption Configuration Encryption Configuration Job Bookmarks Encryption] - s3Encryption
Dict[Security
Configuration Encryption Configuration S3Encryption] A
s3_encryptionblock as described below, which contains encryption configuration for S3 data.
SecurityConfigurationEncryptionConfigurationCloudwatchEncryption
- Cloudwatch
Encryption stringMode Encryption mode to use for CloudWatch data. Valid values:
DISABLED,SSE-KMS. Default value:DISABLED.- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- Cloudwatch
Encryption stringMode Encryption mode to use for CloudWatch data. Valid values:
DISABLED,SSE-KMS. Default value:DISABLED.- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- cloudwatch
Encryption stringMode Encryption mode to use for CloudWatch data. Valid values:
DISABLED,SSE-KMS. Default value:DISABLED.- kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- cloudwatch
Encryption strMode Encryption mode to use for CloudWatch data. Valid values:
DISABLED,SSE-KMS. Default value:DISABLED.- kms_
key_ strarn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption
- Job
Bookmarks stringEncryption Mode Encryption mode to use for job bookmarks data. Valid values:
CSE-KMS,DISABLED. Default value:DISABLED.- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- Job
Bookmarks stringEncryption Mode Encryption mode to use for job bookmarks data. Valid values:
CSE-KMS,DISABLED. Default value:DISABLED.- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- job
Bookmarks stringEncryption Mode Encryption mode to use for job bookmarks data. Valid values:
CSE-KMS,DISABLED. Default value:DISABLED.- kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- job
Bookmarks strEncryption Mode Encryption mode to use for job bookmarks data. Valid values:
CSE-KMS,DISABLED. Default value:DISABLED.- kms_
key_ strarn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
SecurityConfigurationEncryptionConfigurationS3Encryption
- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- S3Encryption
Mode string Encryption mode to use for S3 data. Valid values:
DISABLED,SSE-KMS,SSE-S3. Default value:DISABLED.
- Kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- S3Encryption
Mode string Encryption mode to use for S3 data. Valid values:
DISABLED,SSE-KMS,SSE-S3. Default value:DISABLED.
- kms
Key stringArn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- s3Encryption
Mode string Encryption mode to use for S3 data. Valid values:
DISABLED,SSE-KMS,SSE-S3. Default value:DISABLED.
- kms_
key_ strarn Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- s3Encryption
Mode 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
awsTerraform Provider.