lib/aws-sdk-xray/client.rb in aws-sdk-xray-1.28.0 vs lib/aws-sdk-xray/client.rb in aws-sdk-xray-1.30.0
- old
+ new
@@ -83,30 +83,45 @@
# following classes:
#
# * `Aws::Credentials` - Used for configuring static, non-refreshing
# credentials.
#
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
+ # shared file, such as `~/.aws/config`.
+ #
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
+ #
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
+ # assume a role after providing credentials via the web.
+ #
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
+ # access token generated from `aws login`.
+ #
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
+ # process that outputs to stdout.
+ #
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
# from an EC2 IMDS on an EC2 instance.
#
- # * `Aws::SharedCredentials` - Used for loading credentials from a
- # shared file, such as `~/.aws/config`.
+ # * `Aws::ECSCredentials` - Used for loading credentials from
+ # instances running in ECS.
#
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
+ # from the Cognito Identity service.
#
# When `:credentials` are not configured directly, the following
# locations will be searched for credentials:
#
# * `Aws.config[:credentials]`
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
# * `~/.aws/credentials`
# * `~/.aws/config`
- # * EC2 IMDS instance profile - When used by default, the timeouts are
- # very aggressive. Construct and pass an instance of
- # `Aws::InstanceProfileCredentails` to enable retries and extended
- # timeouts.
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
+ # are very aggressive. Construct and pass an instance of
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
+ # enable retries and extended timeouts.
#
# @option options [required, String] :region
# The AWS region to connect to. The configured `:region` is
# used to determine the service `:endpoint`. When not passed,
# a default `:region` is searched for in the following locations:
@@ -365,19 +380,27 @@
# and names must be unique.
#
# @option params [String] :filter_expression
# The filter expression defining criteria by which to group traces.
#
+ # @option params [Array<Types::Tag>] :tags
+ #
# @return [Types::CreateGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateGroupResult#group #group} => Types::Group
#
# @example Request syntax with placeholder values
#
# resp = client.create_group({
# group_name: "GroupName", # required
# filter_expression: "FilterExpression",
+ # tags: [
+ # {
+ # key: "TagKey", # required
+ # value: "TagValue", # required
+ # },
+ # ],
# })
#
# @example Response structure
#
# resp.group.group_name #=> String
@@ -403,10 +426,12 @@
# instead of borrowing from the reservoir.
#
# @option params [required, Types::SamplingRule] :sampling_rule
# The rule definition.
#
+ # @option params [Array<Types::Tag>] :tags
+ #
# @return [Types::CreateSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
#
# @example Request syntax with placeholder values
@@ -427,10 +452,16 @@
# version: 1, # required
# attributes: {
# "AttributeKey" => "AttributeValue",
# },
# },
+ # tags: [
+ # {
+ # key: "TagKey", # required
+ # value: "TagValue", # required
+ # },
+ # ],
# })
#
# @example Response structure
#
# resp.sampling_rule_record.sampling_rule.rule_name #=> String
@@ -1209,10 +1240,42 @@
def get_trace_summaries(params = {}, options = {})
req = build_request(:get_trace_summaries, params)
req.send_request(options)
end
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [String] :next_token
+ #
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
+ # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.list_tags_for_resource({
+ # resource_arn: "AmazonResourceName", # required
+ # next_token: "String",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.tags #=> Array
+ # resp.tags[0].key #=> String
+ # resp.tags[0].value #=> String
+ # resp.next_token #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListTagsForResource AWS API Documentation
+ #
+ # @overload list_tags_for_resource(params = {})
+ # @param [Hash] params ({})
+ def list_tags_for_resource(params = {}, options = {})
+ req = build_request(:list_tags_for_resource, params)
+ req.send_request(options)
+ end
+
# Updates the encryption configuration for X-Ray data.
#
# @option params [String] :key_id
# An AWS KMS customer master key (CMK) in one of the following formats:
#
@@ -1386,10 +1449,59 @@
def put_trace_segments(params = {}, options = {})
req = build_request(:put_trace_segments, params)
req.send_request(options)
end
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [required, Array<Types::Tag>] :tags
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.tag_resource({
+ # resource_arn: "AmazonResourceName", # required
+ # tags: [ # required
+ # {
+ # key: "TagKey", # required
+ # value: "TagValue", # required
+ # },
+ # ],
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TagResource AWS API Documentation
+ #
+ # @overload tag_resource(params = {})
+ # @param [Hash] params ({})
+ def tag_resource(params = {}, options = {})
+ req = build_request(:tag_resource, params)
+ req.send_request(options)
+ end
+
+ # @option params [required, String] :resource_arn
+ #
+ # @option params [required, Array<String>] :tag_keys
+ #
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.untag_resource({
+ # resource_arn: "AmazonResourceName", # required
+ # tag_keys: ["TagKey"], # required
+ # })
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UntagResource AWS API Documentation
+ #
+ # @overload untag_resource(params = {})
+ # @param [Hash] params ({})
+ def untag_resource(params = {}, options = {})
+ req = build_request(:untag_resource, params)
+ req.send_request(options)
+ end
+
# Updates a group resource.
#
# @option params [String] :group_name
# The case-sensitive name of the group.
#
@@ -1496,10 +1608,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-xray'
- context[:gem_version] = '1.28.0'
+ context[:gem_version] = '1.30.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated