CreateSecurityConfiguration - Amazon EMR on EKS

CreateSecurityConfiguration

Creates a security configuration. Security configurations in Amazon EMR on EKS are templates for different security setups. You can use security configurations to configure the AWS Lake Formation integration setup. You can also create a security configuration to re-use a security setup each time you create a virtual cluster.

Request Syntax

POST /securityconfigurations HTTP/1.1 Content-type: application/json { "clientToken": "string", "name": "string", "securityConfigurationData": { "authorizationConfiguration": { "encryptionConfiguration": { "inTransitEncryptionConfiguration": { "tlsCertificateConfiguration": { "certificateProviderType": "string", "privateCertificateSecretArn": "string", "publicCertificateSecretArn": "string" } } }, "lakeFormationConfiguration": { "authorizedSessionTagValue": "string", "queryEngineRoleArn": "string", "secureNamespaceInfo": { "clusterId": "string", "namespace": "string" } } } }, "tags": { "string" : "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

clientToken

The client idempotency token to use when creating the security configuration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: .*\S.*

Required: Yes

name

The name of the security configuration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_/#A-Za-z0-9]+

Required: Yes

securityConfigurationData

Security configuration input for the request.

Type: SecurityConfigurationData object

Required: Yes

tags

The tags to add to the security configuration.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: .*\S.*

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Value Pattern: .*\S.*

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "arn": "string", "id": "string", "name": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

arn

The ARN (Amazon Resource Name) of the security configuration.

Type: String

Length Constraints: Minimum length of 60. Maximum length of 1024.

Pattern: ^arn:(aws[a-zA-Z0-9-]*):emr-containers:.+:(\d{12}):\/securityconfigurations\/[0-9a-zA-Z]+$

id

The ID of the security configuration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [0-9a-z]+

name

The name of the security configuration.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [\.\-_/#A-Za-z0-9]+

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerException

This is an internal server exception.

HTTP Status Code: 500

ValidationException

There are invalid parameters in the client request.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: