SecurityConfiguration

Provides a resource to manage AWS EMR Security Configurations

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aws.Emr.SecurityConfiguration("foo", new Aws.Emr.SecurityConfigurationArgs
        {
            Configuration = @"{
  ""EncryptionConfiguration"": {
    ""AtRestEncryptionConfiguration"": {
      ""S3EncryptionConfiguration"": {
        ""EncryptionMode"": ""SSE-S3""
      },
      ""LocalDiskEncryptionConfiguration"": {
        ""EncryptionKeyProviderType"": ""AwsKms"",
        ""AwsKmsKey"": ""arn:aws:kms:us-west-2:187416307283:alias/tf_emr_test_key""
      }
    },
    ""EnableInTransitEncryption"": false,
    ""EnableAtRestEncryption"": true
  }
}

",
        });
    }

}
package main

import (
    "fmt"

    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/emr"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := emr.NewSecurityConfiguration(ctx, "foo", &emr.SecurityConfigurationArgs{
            Configuration: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"EncryptionConfiguration\": {\n", "    \"AtRestEncryptionConfiguration\": {\n", "      \"S3EncryptionConfiguration\": {\n", "        \"EncryptionMode\": \"SSE-S3\"\n", "      },\n", "      \"LocalDiskEncryptionConfiguration\": {\n", "        \"EncryptionKeyProviderType\": \"AwsKms\",\n", "        \"AwsKmsKey\": \"arn:aws:kms:us-west-2:187416307283:alias/tf_emr_test_key\"\n", "      }\n", "    },\n", "    \"EnableInTransitEncryption\": false,\n", "    \"EnableAtRestEncryption\": true\n", "  }\n", "}\n", "\n")),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

foo = aws.emr.SecurityConfiguration("foo", configuration="""{
  "EncryptionConfiguration": {
    "AtRestEncryptionConfiguration": {
      "S3EncryptionConfiguration": {
        "EncryptionMode": "SSE-S3"
      },
      "LocalDiskEncryptionConfiguration": {
        "EncryptionKeyProviderType": "AwsKms",
        "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/tf_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}

""")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.emr.SecurityConfiguration("foo", {
    configuration: `{
  "EncryptionConfiguration": {
    "AtRestEncryptionConfiguration": {
      "S3EncryptionConfiguration": {
        "EncryptionMode": "SSE-S3"
      },
      "LocalDiskEncryptionConfiguration": {
        "EncryptionKeyProviderType": "AwsKms",
        "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/tf_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}
`,
});

Create a SecurityConfiguration Resource

def SecurityConfiguration(resource_name, opts=None, configuration=None, name=None, name_prefix=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:

Configuration string

A JSON formatted Security Configuration

Name string

The name of the EMR Security Configuration. By default generated by this provider.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

Configuration string

A JSON formatted Security Configuration

Name string

The name of the EMR Security Configuration. By default generated by this provider.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

configuration string

A JSON formatted Security Configuration

name string

The name of the EMR Security Configuration. By default generated by this provider.

namePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

configuration str

A JSON formatted Security Configuration

name str

The name of the EMR Security Configuration. By default generated by this provider.

name_prefix str

Creates a unique name beginning with the specified prefix. Conflicts with name.

Outputs

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

CreationDate string

Date the Security Configuration was created

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

Date the Security Configuration was created

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

Date the Security Configuration was created

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

Date the Security Configuration was created

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, configuration=None, creation_date=None, name=None, name_prefix=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:

Configuration string

A JSON formatted Security Configuration

CreationDate string

Date the Security Configuration was created

Name string

The name of the EMR Security Configuration. By default generated by this provider.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

Configuration string

A JSON formatted Security Configuration

CreationDate string

Date the Security Configuration was created

Name string

The name of the EMR Security Configuration. By default generated by this provider.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

configuration string

A JSON formatted Security Configuration

creationDate string

Date the Security Configuration was created

name string

The name of the EMR Security Configuration. By default generated by this provider.

namePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

configuration str

A JSON formatted Security Configuration

creation_date str

Date the Security Configuration was created

name str

The name of the EMR Security Configuration. By default generated by this provider.

name_prefix str

Creates a unique name beginning with the specified prefix. Conflicts with name.

Package Details

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