Try AWS Native preview for resources not in the classic version.
aws.emr.SecurityConfiguration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to manage AWS EMR Security Configurations
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const foo = new aws.emr.SecurityConfiguration("foo", {
name: "emrsc_other",
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 pulumi
import pulumi_aws as aws
foo = aws.emr.SecurityConfiguration("foo",
name="emrsc_other",
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 (
"github.com/pulumi/pulumi-aws/sdk/v6/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{
Name: pulumi.String("emrsc_other"),
Configuration: pulumi.String(`{
"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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var foo = new Aws.Emr.SecurityConfiguration("foo", new()
{
Name = "emrsc_other",
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 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()
.name("emrsc_other")
.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());
}
}
resources:
foo:
type: aws:emr:SecurityConfiguration
properties:
name: emrsc_other
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
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,
configuration: Optional[str] = None,
name: Optional[str] = None,
name_prefix: 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:emr: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 securityConfigurationResource = new Aws.Emr.SecurityConfiguration("securityConfigurationResource", new()
{
Configuration = "string",
Name = "string",
NamePrefix = "string",
});
example, err := emr.NewSecurityConfiguration(ctx, "securityConfigurationResource", &emr.SecurityConfigurationArgs{
Configuration: pulumi.String("string"),
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
})
var securityConfigurationResource = new SecurityConfiguration("securityConfigurationResource", SecurityConfigurationArgs.builder()
.configuration("string")
.name("string")
.namePrefix("string")
.build());
security_configuration_resource = aws.emr.SecurityConfiguration("securityConfigurationResource",
configuration="string",
name="string",
name_prefix="string")
const securityConfigurationResource = new aws.emr.SecurityConfiguration("securityConfigurationResource", {
configuration: "string",
name: "string",
namePrefix: "string",
});
type: aws:emr:SecurityConfiguration
properties:
configuration: string
name: string
namePrefix: 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
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.
- Name
Prefix 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.
- Name
Prefix 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.
- name
Prefix 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.
- name
Prefix 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.
- name
Prefix 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:
- Creation
Date string - Date the Security Configuration was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Creation
Date string - Date the Security Configuration was created
- Id string
- The provider-assigned unique ID for this managed resource.
- creation
Date String - Date the Security Configuration was created
- id String
- The provider-assigned unique ID for this managed resource.
- creation
Date 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.
- creation
Date 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.
- Configuration string
- A JSON formatted Security Configuration
- Creation
Date string - Date the Security Configuration was created
- Name string
- The name of the EMR Security Configuration. By default generated by this provider.
- Name
Prefix string - Creates a unique name beginning with the specified
prefix. Conflicts with
name
.
- Configuration string
- A JSON formatted Security Configuration
- Creation
Date string - Date the Security Configuration was created
- Name string
- The name of the EMR Security Configuration. By default generated by this provider.
- Name
Prefix string - Creates a unique name beginning with the specified
prefix. Conflicts with
name
.
- configuration String
- A JSON formatted Security Configuration
- creation
Date String - Date the Security Configuration was created
- name String
- The name of the EMR Security Configuration. By default generated by this provider.
- name
Prefix String - Creates a unique name beginning with the specified
prefix. Conflicts with
name
.
- configuration string
- A JSON formatted Security Configuration
- creation
Date string - Date the Security Configuration was created
- name string
- The name of the EMR Security Configuration. By default generated by this provider.
- name
Prefix 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
- creation
Date String - Date the Security Configuration was created
- name String
- The name of the EMR Security Configuration. By default generated by this provider.
- name
Prefix String - Creates a unique name beginning with the specified
prefix. Conflicts with
name
.
Import
Using pulumi import
, import EMR Security Configurations using the name
. For example:
$ pulumi import aws:emr/securityConfiguration:SecurityConfiguration sc example-sc-name
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.
Try AWS Native preview for resources not in the classic version.