pub struct Client { /* private fields */ }
Expand description

Client for Amazon EMR

Client for invoking operations on Amazon EMR. Each operation on Amazon EMR is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_emr::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_emr::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_emr::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AddInstanceFleet operation.

Constructs a fluent builder for the AddInstanceGroups operation.

Constructs a fluent builder for the AddJobFlowSteps operation.

Constructs a fluent builder for the AddTags operation.

Constructs a fluent builder for the CancelSteps operation.

Constructs a fluent builder for the CreateSecurityConfiguration operation.

Constructs a fluent builder for the CreateStudio operation.

Constructs a fluent builder for the CreateStudioSessionMapping operation.

Constructs a fluent builder for the DeleteSecurityConfiguration operation.

Constructs a fluent builder for the DeleteStudio operation.

Constructs a fluent builder for the DeleteStudioSessionMapping operation.

Constructs a fluent builder for the DescribeCluster operation.

Constructs a fluent builder for the DescribeJobFlows operation.

Constructs a fluent builder for the DescribeNotebookExecution operation.

Constructs a fluent builder for the DescribeReleaseLabel operation.

Constructs a fluent builder for the DescribeSecurityConfiguration operation.

Constructs a fluent builder for the DescribeStep operation.

Constructs a fluent builder for the DescribeStudio operation.

Constructs a fluent builder for the GetAutoTerminationPolicy operation.

Constructs a fluent builder for the GetBlockPublicAccessConfiguration operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetBlockPublicAccessConfigurationOutput with field(s):
    • block_public_access_configuration(Option<BlockPublicAccessConfiguration>):

      A configuration for Amazon EMR block public access. The configuration applies to all clusters created in your account for the current Region. The configuration specifies whether block public access is enabled. If block public access is enabled, security groups associated with the cluster cannot have rules that allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges in the BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. You can change this by updating the block public access configuration to remove the exception.

      For accounts that created clusters in a Region before November 25, 2019, block public access is disabled by default in that Region. To use this feature, you must manually enable and configure it. For accounts that did not create an EMR cluster in a Region before this date, block public access is enabled by default in that Region.

    • block_public_access_configuration_metadata(Option<BlockPublicAccessConfigurationMetadata>):

      Properties that describe the Amazon Web Services principal that created the BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration action as well as the date and time that the configuration was created. Each time a configuration for block public access is updated, Amazon EMR updates this metadata.

  • On failure, responds with SdkError<GetBlockPublicAccessConfigurationError>

Constructs a fluent builder for the GetManagedScalingPolicy operation.

Constructs a fluent builder for the GetStudioSessionMapping operation.

Constructs a fluent builder for the ListBootstrapActions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListClusters operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListInstanceFleets operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListInstanceGroups operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListInstances operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListNotebookExecutions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListReleaseLabels operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListSecurityConfigurations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListSteps operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListStudios operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListStudioSessionMappings operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ModifyCluster operation.

Constructs a fluent builder for the ModifyInstanceFleet operation.

Constructs a fluent builder for the ModifyInstanceGroups operation.

Constructs a fluent builder for the PutAutoScalingPolicy operation.

Constructs a fluent builder for the PutAutoTerminationPolicy operation.

Constructs a fluent builder for the PutBlockPublicAccessConfiguration operation.

  • The fluent builder is configurable:
    • block_public_access_configuration(BlockPublicAccessConfiguration) / set_block_public_access_configuration(Option<BlockPublicAccessConfiguration>):

      A configuration for Amazon EMR block public access. The configuration applies to all clusters created in your account for the current Region. The configuration specifies whether block public access is enabled. If block public access is enabled, security groups associated with the cluster cannot have rules that allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges in the BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. You can change this by updating BlockPublicSecurityGroupRules to remove the exception.

      For accounts that created clusters in a Region before November 25, 2019, block public access is disabled by default in that Region. To use this feature, you must manually enable and configure it. For accounts that did not create an EMR cluster in a Region before this date, block public access is enabled by default in that Region.

  • On success, responds with PutBlockPublicAccessConfigurationOutput
  • On failure, responds with SdkError<PutBlockPublicAccessConfigurationError>

Constructs a fluent builder for the PutManagedScalingPolicy operation.

Constructs a fluent builder for the RemoveAutoScalingPolicy operation.

Constructs a fluent builder for the RemoveAutoTerminationPolicy operation.

Constructs a fluent builder for the RemoveManagedScalingPolicy operation.

Constructs a fluent builder for the RemoveTags operation.

Constructs a fluent builder for the RunJobFlow operation.

Constructs a fluent builder for the SetTerminationProtection operation.

Constructs a fluent builder for the SetVisibleToAllUsers operation.

Constructs a fluent builder for the StartNotebookExecution operation.

Constructs a fluent builder for the StopNotebookExecution operation.

Constructs a fluent builder for the TerminateJobFlows operation.

Constructs a fluent builder for the UpdateStudio operation.

Constructs a fluent builder for the UpdateStudioSessionMapping operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more