aws logo
AWS Classic v5.29.1, Feb 4 23

aws.emr.SecurityConfiguration

Provides a resource to manage AWS EMR Security Configurations

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var foo = new Aws.Emr.SecurityConfiguration("foo", new()
    {
        Configuration = @"{
  ""EncryptionConfiguration"": {
    ""AtRestEncryptionConfiguration"": {
      ""S3EncryptionConfiguration"": {
        ""EncryptionMode"": ""SSE-S3""
      },
      ""LocalDiskEncryptionConfiguration"": {
        ""EncryptionKeyProviderType"": ""AwsKms"",
        ""AwsKmsKey"": ""arn:aws:kms:us-west-2:187416307283:alias/my_emr_test_key""
      }
    },
    ""EnableInTransitEncryption"": false,
    ""EnableAtRestEncryption"": true
  }
}

",
    });

});
package main

import (
	"fmt"

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := emr.NewSecurityConfiguration(ctx, "foo", &emr.SecurityConfigurationArgs{
			Configuration: pulumi.String(fmt.Sprintf(`{
  "EncryptionConfiguration": {
    "AtRestEncryptionConfiguration": {
      "S3EncryptionConfiguration": {
        "EncryptionMode": "SSE-S3"
      },
      "LocalDiskEncryptionConfiguration": {
        "EncryptionKeyProviderType": "AwsKms",
        "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/my_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}

`)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.emr.SecurityConfiguration;
import com.pulumi.aws.emr.SecurityConfigurationArgs;
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 foo = new SecurityConfiguration("foo", SecurityConfigurationArgs.builder()        
            .configuration("""
{
  "EncryptionConfiguration": {
    "AtRestEncryptionConfiguration": {
      "S3EncryptionConfiguration": {
        "EncryptionMode": "SSE-S3"
      },
      "LocalDiskEncryptionConfiguration": {
        "EncryptionKeyProviderType": "AwsKms",
        "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/my_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}

            """)
            .build());

    }
}
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/my_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/my_emr_test_key"
      }
    },
    "EnableInTransitEncryption": false,
    "EnableAtRestEncryption": true
  }
}

`});
resources:
  foo:
    type: aws:emr:SecurityConfiguration
    properties:
      configuration: |+
        {
          "EncryptionConfiguration": {
            "AtRestEncryptionConfiguration": {
              "S3EncryptionConfiguration": {
                "EncryptionMode": "SSE-S3"
              },
              "LocalDiskEncryptionConfiguration": {
                "EncryptionKeyProviderType": "AwsKms",
                "AwsKmsKey": "arn:aws:kms:us-west-2:187416307283:alias/my_emr_test_key"
              }
            },
            "EnableInTransitEncryption": false,
            "EnableAtRestEncryption": true
          }
        }        

Create SecurityConfiguration Resource

new SecurityConfiguration(name: string, args: SecurityConfigurationArgs, opts?: CustomResourceOptions);
@overload
def SecurityConfiguration(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          configuration: Optional[str] = None,
                          name: Optional[str] = None,
                          name_prefix: Optional[str] = None)
@overload
def SecurityConfiguration(resource_name: str,
                          args: SecurityConfigurationArgs,
                          opts: Optional[ResourceOptions] = 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:emr:SecurityConfiguration
properties: # The arguments to resource properties.
options: # 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.
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.

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

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 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.

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.

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.

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.

creationDate String

Date the Security Configuration was created

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,
        configuration: Optional[str] = None,
        creation_date: Optional[str] = None,
        name: Optional[str] = None,
        name_prefix: 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.
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 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.

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.

Import

EMR Security Configurations can be imported using the name, e.g.,

 $ pulumi import aws:emr/securityConfiguration:SecurityConfiguration sc example-sc-name

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.