aws.glue.SecurityConfiguration
Explore with Pulumi AI
Manages a Glue Security Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.SecurityConfiguration("example", {
name: "example",
encryptionConfiguration: {
cloudwatchEncryption: {
cloudwatchEncryptionMode: "DISABLED",
},
jobBookmarksEncryption: {
jobBookmarksEncryptionMode: "DISABLED",
},
s3Encryption: {
kmsKeyArn: exampleAwsKmsKey.arn,
s3EncryptionMode: "SSE-KMS",
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.glue.SecurityConfiguration("example",
name="example",
encryption_configuration={
"cloudwatch_encryption": {
"cloudwatch_encryption_mode": "DISABLED",
},
"job_bookmarks_encryption": {
"job_bookmarks_encryption_mode": "DISABLED",
},
"s3_encryption": {
"kms_key_arn": example_aws_kms_key["arn"],
"s3_encryption_mode": "SSE-KMS",
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewSecurityConfiguration(ctx, "example", &glue.SecurityConfigurationArgs{
Name: pulumi.String("example"),
EncryptionConfiguration: &glue.SecurityConfigurationEncryptionConfigurationArgs{
CloudwatchEncryption: &glue.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs{
CloudwatchEncryptionMode: pulumi.String("DISABLED"),
},
JobBookmarksEncryption: &glue.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs{
JobBookmarksEncryptionMode: pulumi.String("DISABLED"),
},
S3Encryption: &glue.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs{
KmsKeyArn: pulumi.Any(exampleAwsKmsKey.Arn),
S3EncryptionMode: pulumi.String("SSE-KMS"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.SecurityConfiguration("example", new()
{
Name = "example",
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 = exampleAwsKmsKey.Arn,
S3EncryptionMode = "SSE-KMS",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.SecurityConfiguration;
import com.pulumi.aws.glue.SecurityConfigurationArgs;
import com.pulumi.aws.glue.inputs.SecurityConfigurationEncryptionConfigurationArgs;
import com.pulumi.aws.glue.inputs.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs;
import com.pulumi.aws.glue.inputs.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs;
import com.pulumi.aws.glue.inputs.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs;
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 example = new SecurityConfiguration("example", SecurityConfigurationArgs.builder()
.name("example")
.encryptionConfiguration(SecurityConfigurationEncryptionConfigurationArgs.builder()
.cloudwatchEncryption(SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs.builder()
.cloudwatchEncryptionMode("DISABLED")
.build())
.jobBookmarksEncryption(SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs.builder()
.jobBookmarksEncryptionMode("DISABLED")
.build())
.s3Encryption(SecurityConfigurationEncryptionConfigurationS3EncryptionArgs.builder()
.kmsKeyArn(exampleAwsKmsKey.arn())
.s3EncryptionMode("SSE-KMS")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:glue:SecurityConfiguration
properties:
name: example
encryptionConfiguration:
cloudwatchEncryption:
cloudwatchEncryptionMode: DISABLED
jobBookmarksEncryption:
jobBookmarksEncryptionMode: DISABLED
s3Encryption:
kmsKeyArn: ${exampleAwsKmsKey.arn}
s3EncryptionMode: SSE-KMS
Create SecurityConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityConfiguration(name: string, args: SecurityConfigurationArgs, opts?: CustomResourceOptions);
@overload
def SecurityConfiguration(resource_name: str,
args: SecurityConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
encryption_configuration: Optional[SecurityConfigurationEncryptionConfigurationArgs] = None,
name: Optional[str] = None)
func NewSecurityConfiguration(ctx *Context, name string, args SecurityConfigurationArgs, opts ...ResourceOption) (*SecurityConfiguration, error)
public SecurityConfiguration(string name, SecurityConfigurationArgs args, CustomResourceOptions? opts = null)
public SecurityConfiguration(String name, SecurityConfigurationArgs args)
public SecurityConfiguration(String name, SecurityConfigurationArgs args, CustomResourceOptions options)
type: aws:glue:SecurityConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args SecurityConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args SecurityConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsSecurityConfigurationResource = new Aws.Glue.SecurityConfiguration("awsSecurityConfigurationResource", new()
{
EncryptionConfiguration = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationArgs
{
CloudwatchEncryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs
{
CloudwatchEncryptionMode = "string",
KmsKeyArn = "string",
},
JobBookmarksEncryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs
{
JobBookmarksEncryptionMode = "string",
KmsKeyArn = "string",
},
S3Encryption = new Aws.Glue.Inputs.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs
{
KmsKeyArn = "string",
S3EncryptionMode = "string",
},
},
Name = "string",
});
example, err := glue.NewSecurityConfiguration(ctx, "awsSecurityConfigurationResource", &glue.SecurityConfigurationArgs{
EncryptionConfiguration: &glue.SecurityConfigurationEncryptionConfigurationArgs{
CloudwatchEncryption: &glue.SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs{
CloudwatchEncryptionMode: pulumi.String("string"),
KmsKeyArn: pulumi.String("string"),
},
JobBookmarksEncryption: &glue.SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs{
JobBookmarksEncryptionMode: pulumi.String("string"),
KmsKeyArn: pulumi.String("string"),
},
S3Encryption: &glue.SecurityConfigurationEncryptionConfigurationS3EncryptionArgs{
KmsKeyArn: pulumi.String("string"),
S3EncryptionMode: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var awsSecurityConfigurationResource = new SecurityConfiguration("awsSecurityConfigurationResource", SecurityConfigurationArgs.builder()
.encryptionConfiguration(SecurityConfigurationEncryptionConfigurationArgs.builder()
.cloudwatchEncryption(SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs.builder()
.cloudwatchEncryptionMode("string")
.kmsKeyArn("string")
.build())
.jobBookmarksEncryption(SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs.builder()
.jobBookmarksEncryptionMode("string")
.kmsKeyArn("string")
.build())
.s3Encryption(SecurityConfigurationEncryptionConfigurationS3EncryptionArgs.builder()
.kmsKeyArn("string")
.s3EncryptionMode("string")
.build())
.build())
.name("string")
.build());
aws_security_configuration_resource = aws.glue.SecurityConfiguration("awsSecurityConfigurationResource",
encryption_configuration={
"cloudwatch_encryption": {
"cloudwatch_encryption_mode": "string",
"kms_key_arn": "string",
},
"job_bookmarks_encryption": {
"job_bookmarks_encryption_mode": "string",
"kms_key_arn": "string",
},
"s3_encryption": {
"kms_key_arn": "string",
"s3_encryption_mode": "string",
},
},
name="string")
const awsSecurityConfigurationResource = new aws.glue.SecurityConfiguration("awsSecurityConfigurationResource", {
encryptionConfiguration: {
cloudwatchEncryption: {
cloudwatchEncryptionMode: "string",
kmsKeyArn: "string",
},
jobBookmarksEncryption: {
jobBookmarksEncryptionMode: "string",
kmsKeyArn: "string",
},
s3Encryption: {
kmsKeyArn: "string",
s3EncryptionMode: "string",
},
},
name: "string",
});
type: aws:glue:SecurityConfiguration
properties:
encryptionConfiguration:
cloudwatchEncryption:
cloudwatchEncryptionMode: string
kmsKeyArn: string
jobBookmarksEncryption:
jobBookmarksEncryptionMode: string
kmsKeyArn: string
s3Encryption:
kmsKeyArn: string
s3EncryptionMode: string
name: string
SecurityConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityConfiguration resource accepts the following input properties:
- Encryption
Configuration SecurityConfiguration Encryption Configuration - Configuration block containing encryption configuration. Detailed below.
- Name string
- Name of the security configuration.
- 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 SecurityConfiguration Encryption Configuration Args - Configuration block containing encryption configuration. Detailed below.
- name str
- Name of the security configuration.
- encryption
Configuration Property Map - Configuration block containing encryption configuration. Detailed below.
- name String
- 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): SecurityConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
encryption_configuration: Optional[SecurityConfigurationEncryptionConfigurationArgs] = None,
name: Optional[str] = None) -> SecurityConfiguration
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)
public static SecurityConfiguration get(String name, Output<String> id, SecurityConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Encryption
Configuration SecurityConfiguration Encryption Configuration - Configuration block containing encryption configuration. Detailed below.
- Name string
- Name of the security configuration.
- 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 SecurityConfiguration Encryption Configuration Args - Configuration block containing encryption configuration. Detailed below.
- name str
- Name of the security configuration.
- encryption
Configuration Property Map - Configuration block containing encryption configuration. Detailed below.
- name String
- Name of the security configuration.
Supporting Types
SecurityConfigurationEncryptionConfiguration, SecurityConfigurationEncryptionConfigurationArgs
- Cloudwatch
Encryption SecurityConfiguration Encryption Configuration Cloudwatch Encryption - Job
Bookmarks SecurityEncryption Configuration Encryption Configuration Job Bookmarks Encryption - S3Encryption
Security
Configuration Encryption Configuration S3Encryption - A
s3_encryption
block 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_encryption
block 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_encryption
block 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_encryption
block 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 - s3_
encryption SecurityConfiguration Encryption Configuration S3Encryption - A
s3_encryption
block as described below, which contains encryption configuration for S3 data.
- cloudwatch
Encryption Property Map - job
Bookmarks Property MapEncryption - s3Encryption Property Map
- A
s3_encryption
block as described below, which contains encryption configuration for S3 data.
SecurityConfigurationEncryptionConfigurationCloudwatchEncryption, SecurityConfigurationEncryptionConfigurationCloudwatchEncryptionArgs
- 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 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.
- 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.
SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption, SecurityConfigurationEncryptionConfigurationJobBookmarksEncryptionArgs
- 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 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.
- 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.
SecurityConfigurationEncryptionConfigurationS3Encryption, SecurityConfigurationEncryptionConfigurationS3EncryptionArgs
- 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 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.
- s3_
encryption_ strmode - 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
.
Import
Using pulumi import
, import Glue Security Configurations using name
. For example:
$ pulumi import aws:glue/securityConfiguration:SecurityConfiguration example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.