create_security_configuration

EMR.Client.create_security_configuration(**kwargs)

Creates a security configuration, which is stored in the service and can be specified when a cluster is created.

See also: AWS API Documentation

Request Syntax

response = client.create_security_configuration(
    Name='string',
    SecurityConfiguration='string'
)
Parameters
  • Name (string) --

    [REQUIRED]

    The name of the security configuration.

  • SecurityConfiguration (string) --

    [REQUIRED]

    The security configuration details in JSON format. For JSON parameters and examples, see Use Security Configurations to Set Up Cluster Security in the Amazon EMR Management Guide .

Return type

dict

Returns

Response Syntax

{
    'Name': 'string',
    'CreationDateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Name (string) --

      The name of the security configuration.

    • CreationDateTime (datetime) --

      The date and time the security configuration was created.

Exceptions

  • EMR.Client.exceptions.InternalServerException
  • EMR.Client.exceptions.InvalidRequestException