lib/aws-sdk-emr/client.rb in aws-sdk-emr-1.20.0 vs lib/aws-sdk-emr/client.rb in aws-sdk-emr-1.21.0

- old
+ new

@@ -971,10 +971,42 @@ def describe_step(params = {}, options = {}) req = build_request(:describe_step, params) req.send_request(options) end + # Returns the Amazon EMR block public access configuration for your AWS + # account in the current Region. For more information see [Configure + # Block Public Access for Amazon EMR][1] in the *Amazon EMR Management + # Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html + # + # @return [Types::GetBlockPublicAccessConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetBlockPublicAccessConfigurationOutput#block_public_access_configuration #block_public_access_configuration} => Types::BlockPublicAccessConfiguration + # * {Types::GetBlockPublicAccessConfigurationOutput#block_public_access_configuration_metadata #block_public_access_configuration_metadata} => Types::BlockPublicAccessConfigurationMetadata + # + # @example Response structure + # + # resp.block_public_access_configuration.block_public_security_group_rules #=> Boolean + # resp.block_public_access_configuration.permitted_public_security_group_rule_ranges #=> Array + # resp.block_public_access_configuration.permitted_public_security_group_rule_ranges[0].min_range #=> Integer + # resp.block_public_access_configuration.permitted_public_security_group_rule_ranges[0].max_range #=> Integer + # resp.block_public_access_configuration_metadata.creation_date_time #=> Time + # resp.block_public_access_configuration_metadata.created_by_arn #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetBlockPublicAccessConfiguration AWS API Documentation + # + # @overload get_block_public_access_configuration(params = {}) + # @param [Hash] params ({}) + def get_block_public_access_configuration(params = {}, options = {}) + req = build_request(:get_block_public_access_configuration, params) + req.send_request(options) + end + # Provides information about the bootstrap actions associated with a # cluster. # # @option params [required, String] :cluster_id # The cluster identifier for the bootstrap actions to list. @@ -1612,10 +1644,57 @@ def put_auto_scaling_policy(params = {}, options = {}) req = build_request(:put_auto_scaling_policy, params) req.send_request(options) end + # Creates or updates an Amazon EMR block public access configuration for + # your AWS account in the current Region. For more information see + # [Configure Block Public Access for Amazon EMR][1] in the *Amazon EMR + # Management Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html + # + # @option params [required, Types::BlockPublicAccessConfiguration] :block_public_access_configuration + # 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. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.put_block_public_access_configuration({ + # block_public_access_configuration: { # required + # block_public_security_group_rules: false, # required + # permitted_public_security_group_rule_ranges: [ + # { + # min_range: 1, # required + # max_range: 1, + # }, + # ], + # }, + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutBlockPublicAccessConfiguration AWS API Documentation + # + # @overload put_block_public_access_configuration(params = {}) + # @param [Hash] params ({}) + def put_block_public_access_configuration(params = {}, options = {}) + req = build_request(:put_block_public_access_configuration, params) + req.send_request(options) + end + # Removes an automatic scaling policy from a specified instance group # within an EMR cluster. # # @option params [required, String] :cluster_id # Specifies the ID of a cluster. The instance group to which the @@ -1734,15 +1813,15 @@ # # @option params [String] :release_label # The Amazon EMR release label, which determines the version of # open-source application packages installed on the cluster. Release # labels are in the form `emr-x.x.x`, where x.x.x is an Amazon EMR - # release version, for example, `emr-5.14.0`. For more information about + # release version such as `emr-5.14.0`. For more information about # Amazon EMR release versions and included application versions and # features, see # [https://docs.aws.amazon.com/emr/latest/ReleaseGuide/][1]. The release - # label applies only to Amazon EMR releases versions 4.x and later. + # label applies only to Amazon EMR releases version 4.0 and later. # Earlier versions use `AmiVersion`. # # # # [1]: https://docs.aws.amazon.com/emr/latest/ReleaseGuide/ @@ -1825,10 +1904,12 @@ # @option params [Array<Types::Configuration>] :configurations # For Amazon EMR releases 4.0 and later. The list of configurations # supplied for the EMR cluster you are creating. # # @option params [Boolean] :visible_to_all_users + # *This member will be deprecated.* + # # Whether the cluster is visible to all IAM users of the AWS account # associated with the cluster. If this value is set to `true`, all IAM # users of that AWS account can view and (if they have the proper policy # permissions set) manage the cluster. If it is set to `false`, only the # IAM user that created the cluster can view and manage it. @@ -2207,10 +2288,12 @@ def set_termination_protection(params = {}, options = {}) req = build_request(:set_termination_protection, params) req.send_request(options) end + # *This member will be deprecated.* + # # Sets whether all AWS Identity and Access Management (IAM) users under # your account can access the specified clusters (job flows). This # action works on running clusters. You can also set the visibility of a # cluster when you launch it using the `VisibleToAllUsers` parameter of # RunJobFlow. The SetVisibleToAllUsers action can be called only by an @@ -2219,10 +2302,12 @@ # # @option params [required, Array<String>] :job_flow_ids # Identifiers of the job flows to receive the new visibility setting. # # @option params [required, Boolean] :visible_to_all_users + # *This member will be deprecated.* + # # Whether the specified clusters are visible to all IAM users of the AWS # account associated with the cluster. If this value is set to True, all # IAM users of that AWS account can view and, if they have the proper # IAM policy permissions set, manage the clusters. If it is set to # False, only the IAM user that created a cluster can view and manage @@ -2289,10 +2374,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-emr' - context[:gem_version] = '1.20.0' + context[:gem_version] = '1.21.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #