lib/aws-sdk-chatbot/client.rb in aws-sdk-chatbot-1.2.0 vs lib/aws-sdk-chatbot/client.rb in aws-sdk-chatbot-1.5.0

- old
+ new

@@ -299,12 +299,13 @@ # in the future. # # # @option options [String] :sdk_ua_app_id # A unique and opaque application ID that is appended to the - # User-Agent header as app/<sdk_ua_app_id>. It should have a - # maximum length of 50. + # User-Agent header as app/sdk_ua_app_id. It should have a + # maximum length of 50. This variable is sourced from environment + # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id. # # @option options [String] :secret_access_key # # @option options [String] :session_token # @@ -434,10 +435,13 @@ # The name of the configuration. # # @option params [String] :logging_level # Logging levels include ERROR, INFO, or NONE. # + # @option params [Array<Types::Tag>] :tags + # A list of tags to apply to the configuration. + # # @return [Types::CreateChimeWebhookConfigurationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateChimeWebhookConfigurationResult#webhook_configuration #webhook_configuration} => Types::ChimeWebhookConfiguration # # @example Request syntax with placeholder values @@ -447,10 +451,16 @@ # webhook_url: "ChimeWebhookUrl", # required # sns_topic_arns: ["Arn"], # required # iam_role_arn: "Arn", # required # configuration_name: "ConfigurationName", # required # logging_level: "CustomerCwLogLevel", + # tags: [ + # { + # tag_key: "TagKey", # required + # tag_value: "TagValue", # required + # }, + # ], # }) # # @example Response structure # # resp.webhook_configuration.webhook_description #=> String @@ -458,10 +468,13 @@ # resp.webhook_configuration.iam_role_arn #=> String # resp.webhook_configuration.sns_topic_arns #=> Array # resp.webhook_configuration.sns_topic_arns[0] #=> String # resp.webhook_configuration.configuration_name #=> String # resp.webhook_configuration.logging_level #=> String + # resp.webhook_configuration.tags #=> Array + # resp.webhook_configuration.tags[0].tag_key #=> String + # resp.webhook_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/CreateChimeWebhookConfiguration AWS API Documentation # # @overload create_chime_webhook_configuration(params = {}) # @param [Hash] params ({}) @@ -513,10 +526,13 @@ # if this is not set. # # @option params [Boolean] :user_authorization_required # Enables use of a user role requirement in your chat configuration. # + # @option params [Array<Types::Tag>] :tags + # A list of tags to apply to the configuration. + # # @return [Types::CreateTeamsChannelConfigurationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateTeamsChannelConfigurationResult#channel_configuration #channel_configuration} => Types::TeamsChannelConfiguration # # @example Request syntax with placeholder values @@ -531,10 +547,16 @@ # iam_role_arn: "Arn", # required # configuration_name: "ConfigurationName", # required # logging_level: "CustomerCwLogLevel", # guardrail_policy_arns: ["GuardrailPolicyArn"], # user_authorization_required: false, + # tags: [ + # { + # tag_key: "TagKey", # required + # tag_value: "TagValue", # required + # }, + # ], # }) # # @example Response structure # # resp.channel_configuration.channel_id #=> String @@ -549,10 +571,13 @@ # resp.channel_configuration.configuration_name #=> String # resp.channel_configuration.logging_level #=> String # resp.channel_configuration.guardrail_policy_arns #=> Array # resp.channel_configuration.guardrail_policy_arns[0] #=> String # resp.channel_configuration.user_authorization_required #=> Boolean + # resp.channel_configuration.tags #=> Array + # resp.channel_configuration.tags[0].tag_key #=> String + # resp.channel_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/CreateMicrosoftTeamsChannelConfiguration AWS API Documentation # # @overload create_microsoft_teams_channel_configuration(params = {}) # @param [Hash] params ({}) @@ -596,10 +621,13 @@ # if this is not set. # # @option params [Boolean] :user_authorization_required # Enables use of a user role requirement in your chat configuration. # + # @option params [Array<Types::Tag>] :tags + # A list of tags to apply to the configuration. + # # @return [Types::CreateSlackChannelConfigurationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateSlackChannelConfigurationResult#channel_configuration #channel_configuration} => Types::SlackChannelConfiguration # # @example Request syntax with placeholder values @@ -612,10 +640,16 @@ # iam_role_arn: "Arn", # required # configuration_name: "ConfigurationName", # required # logging_level: "CustomerCwLogLevel", # guardrail_policy_arns: ["GuardrailPolicyArn"], # user_authorization_required: false, + # tags: [ + # { + # tag_key: "TagKey", # required + # tag_value: "TagValue", # required + # }, + # ], # }) # # @example Response structure # # resp.channel_configuration.slack_team_name #=> String @@ -629,10 +663,13 @@ # resp.channel_configuration.configuration_name #=> String # resp.channel_configuration.logging_level #=> String # resp.channel_configuration.guardrail_policy_arns #=> Array # resp.channel_configuration.guardrail_policy_arns[0] #=> String # resp.channel_configuration.user_authorization_required #=> Boolean + # resp.channel_configuration.tags #=> Array + # resp.channel_configuration.tags[0].tag_key #=> String + # resp.channel_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/CreateSlackChannelConfiguration AWS API Documentation # # @overload create_slack_channel_configuration(params = {}) # @param [Hash] params ({}) @@ -859,10 +896,13 @@ # resp.webhook_configurations[0].iam_role_arn #=> String # resp.webhook_configurations[0].sns_topic_arns #=> Array # resp.webhook_configurations[0].sns_topic_arns[0] #=> String # resp.webhook_configurations[0].configuration_name #=> String # resp.webhook_configurations[0].logging_level #=> String + # resp.webhook_configurations[0].tags #=> Array + # resp.webhook_configurations[0].tags[0].tag_key #=> String + # resp.webhook_configurations[0].tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/DescribeChimeWebhookConfigurations AWS API Documentation # # @overload describe_chime_webhook_configurations(params = {}) # @param [Hash] params ({}) @@ -918,10 +958,13 @@ # resp.slack_channel_configurations[0].configuration_name #=> String # resp.slack_channel_configurations[0].logging_level #=> String # resp.slack_channel_configurations[0].guardrail_policy_arns #=> Array # resp.slack_channel_configurations[0].guardrail_policy_arns[0] #=> String # resp.slack_channel_configurations[0].user_authorization_required #=> Boolean + # resp.slack_channel_configurations[0].tags #=> Array + # resp.slack_channel_configurations[0].tags[0].tag_key #=> String + # resp.slack_channel_configurations[0].tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/DescribeSlackChannelConfigurations AWS API Documentation # # @overload describe_slack_channel_configurations(params = {}) # @param [Hash] params ({}) @@ -1073,10 +1116,13 @@ # resp.channel_configuration.configuration_name #=> String # resp.channel_configuration.logging_level #=> String # resp.channel_configuration.guardrail_policy_arns #=> Array # resp.channel_configuration.guardrail_policy_arns[0] #=> String # resp.channel_configuration.user_authorization_required #=> Boolean + # resp.channel_configuration.tags #=> Array + # resp.channel_configuration.tags[0].tag_key #=> String + # resp.channel_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/GetMicrosoftTeamsChannelConfiguration AWS API Documentation # # @overload get_microsoft_teams_channel_configuration(params = {}) # @param [Hash] params ({}) @@ -1137,10 +1183,13 @@ # resp.team_channel_configurations[0].configuration_name #=> String # resp.team_channel_configurations[0].logging_level #=> String # resp.team_channel_configurations[0].guardrail_policy_arns #=> Array # resp.team_channel_configurations[0].guardrail_policy_arns[0] #=> String # resp.team_channel_configurations[0].user_authorization_required #=> Boolean + # resp.team_channel_configurations[0].tags #=> Array + # resp.team_channel_configurations[0].tags[0].tag_key #=> String + # resp.team_channel_configurations[0].tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/ListMicrosoftTeamsChannelConfigurations AWS API Documentation # # @overload list_microsoft_teams_channel_configurations(params = {}) # @param [Hash] params ({}) @@ -1244,10 +1293,97 @@ def list_microsoft_teams_user_identities(params = {}, options = {}) req = build_request(:list_microsoft_teams_user_identities, params) req.send_request(options) end + # Retrieves the list of tags applied to a configuration. + # + # @option params [required, String] :resource_arn + # The ARN of the configuration. + # + # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt; + # + # @example Request syntax with placeholder values + # + # resp = client.list_tags_for_resource({ + # resource_arn: "AmazonResourceName", # required + # }) + # + # @example Response structure + # + # resp.tags #=> Array + # resp.tags[0].tag_key #=> String + # resp.tags[0].tag_value #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/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 + + # Applies the supplied tags to a configuration. + # + # @option params [required, String] :resource_arn + # The ARN of the configuration. + # + # @option params [required, Array<Types::Tag>] :tags + # A list of tags to apply to the configuration. + # + # @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 + # { + # tag_key: "TagKey", # required + # tag_value: "TagValue", # required + # }, + # ], + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/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 + + # Removes the supplied tags from a configuration + # + # @option params [required, String] :resource_arn + # The ARN of the configuration. + # + # @option params [required, Array<String>] :tag_keys + # A list of tag keys to remove from the configuration. + # + # @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/chatbot-2017-10-11/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 + # Update Chatbot account level preferences # # @option params [Boolean] :user_authorization_required # Enables use of a user role requirement in your chat configuration. # @@ -1335,10 +1471,13 @@ # resp.webhook_configuration.iam_role_arn #=> String # resp.webhook_configuration.sns_topic_arns #=> Array # resp.webhook_configuration.sns_topic_arns[0] #=> String # resp.webhook_configuration.configuration_name #=> String # resp.webhook_configuration.logging_level #=> String + # resp.webhook_configuration.tags #=> Array + # resp.webhook_configuration.tags[0].tag_key #=> String + # resp.webhook_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/UpdateChimeWebhookConfiguration AWS API Documentation # # @overload update_chime_webhook_configuration(params = {}) # @param [Hash] params ({}) @@ -1409,10 +1548,13 @@ # resp.channel_configuration.configuration_name #=> String # resp.channel_configuration.logging_level #=> String # resp.channel_configuration.guardrail_policy_arns #=> Array # resp.channel_configuration.guardrail_policy_arns[0] #=> String # resp.channel_configuration.user_authorization_required #=> Boolean + # resp.channel_configuration.tags #=> Array + # resp.channel_configuration.tags[0].tag_key #=> String + # resp.channel_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/UpdateMicrosoftTeamsChannelConfiguration AWS API Documentation # # @overload update_microsoft_teams_channel_configuration(params = {}) # @param [Hash] params ({}) @@ -1485,10 +1627,13 @@ # resp.channel_configuration.configuration_name #=> String # resp.channel_configuration.logging_level #=> String # resp.channel_configuration.guardrail_policy_arns #=> Array # resp.channel_configuration.guardrail_policy_arns[0] #=> String # resp.channel_configuration.user_authorization_required #=> Boolean + # resp.channel_configuration.tags #=> Array + # resp.channel_configuration.tags[0].tag_key #=> String + # resp.channel_configuration.tags[0].tag_value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/UpdateSlackChannelConfiguration AWS API Documentation # # @overload update_slack_channel_configuration(params = {}) # @param [Hash] params ({}) @@ -1508,10 +1653,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-chatbot' - context[:gem_version] = '1.2.0' + context[:gem_version] = '1.5.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated