aws-sdk-supportapp 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-supportapp/client.rb +146 -9
- data/lib/aws-sdk-supportapp/client_api.rb +27 -0
- data/lib/aws-sdk-supportapp/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-supportapp/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-supportapp/endpoints.rb +155 -0
- data/lib/aws-sdk-supportapp/plugins/endpoints.rb +88 -0
- data/lib/aws-sdk-supportapp/types.rb +127 -14
- data/lib/aws-sdk-supportapp.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ef6b9825c427b008a8e6c43308a483ab422118ef5dab4be9d0d8aa913313697
|
4
|
+
data.tar.gz: 4338bc563f239a09bb4cac2a169c061a905c909403fed31c681e394660604e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2b3fbc8192664baef26ad75d55c01bfd029fdca4e26772a5547352e85dfd1a19bc2282772cee97709714e88cd217b69b8848505914cf573d7202481351313a
|
7
|
+
data.tar.gz: e343cbf5d43b74b3221c648ecf31591e9bf2c351f9510e9e8350128fa0e998cec127ddb3b166853c20bab4641f47503249804f5b239d143c9e6363c48da007d0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.2.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.1.0 (2022-10-19)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds the RegisterSlackWorkspaceForOrganization API. You can use the API to register a Slack workspace for an AWS account that is part of an organization.
|
13
|
+
|
4
14
|
1.0.0 (2022-08-22)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:supportapp)
|
@@ -79,8 +79,9 @@ module Aws::SupportApp
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::SupportApp::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::SupportApp
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::SupportApp
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::SupportApp::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SupportApp::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -401,7 +418,28 @@ module Aws::SupportApp
|
|
401
418
|
# The case severity for a support case that you want to receive
|
402
419
|
# notifications.
|
403
420
|
#
|
404
|
-
#
|
421
|
+
# If you specify `high` or `all`, you must specify `true` for at least
|
422
|
+
# one of the following parameters:
|
423
|
+
#
|
424
|
+
# * `notifyOnAddCorrespondenceToCase`
|
425
|
+
#
|
426
|
+
# * `notifyOnCreateOrReopenCase`
|
427
|
+
#
|
428
|
+
# * `notifyOnResolveCase`
|
429
|
+
#
|
430
|
+
# If you specify `none`, the following parameters must be null or
|
431
|
+
# `false`\:
|
432
|
+
#
|
433
|
+
# * `notifyOnAddCorrespondenceToCase`
|
434
|
+
#
|
435
|
+
# * `notifyOnCreateOrReopenCase`
|
436
|
+
#
|
437
|
+
# * `notifyOnResolveCase`
|
438
|
+
#
|
439
|
+
# <note markdown="1"> If you don't specify these parameters in your request, they default
|
440
|
+
# to `false`.
|
441
|
+
#
|
442
|
+
# </note>
|
405
443
|
#
|
406
444
|
# @option params [Boolean] :notify_on_create_or_reopen_case
|
407
445
|
# Whether you want to get notified when a support case is created or
|
@@ -411,7 +449,8 @@ module Aws::SupportApp
|
|
411
449
|
# Whether you want to get notified when a support case is resolved.
|
412
450
|
#
|
413
451
|
# @option params [required, String] :team_id
|
414
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
452
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
453
|
+
# such as `T012ABCDEFG`.
|
415
454
|
#
|
416
455
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
417
456
|
#
|
@@ -461,7 +500,8 @@ module Aws::SupportApp
|
|
461
500
|
# workspace.
|
462
501
|
#
|
463
502
|
# @option params [required, String] :team_id
|
464
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
503
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
504
|
+
# such as `T012ABCDEFG`.
|
465
505
|
#
|
466
506
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
467
507
|
#
|
@@ -485,7 +525,8 @@ module Aws::SupportApp
|
|
485
525
|
# account. This operation doesn't delete your Slack workspace.
|
486
526
|
#
|
487
527
|
# @option params [required, String] :team_id
|
488
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
528
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
529
|
+
# such as `T012ABCDEFG`.
|
489
530
|
#
|
490
531
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
491
532
|
#
|
@@ -600,7 +641,9 @@ module Aws::SupportApp
|
|
600
641
|
#
|
601
642
|
# resp.next_token #=> String
|
602
643
|
# resp.slack_workspace_configurations #=> Array
|
644
|
+
# resp.slack_workspace_configurations[0].allow_organization_member_account #=> Boolean
|
603
645
|
# resp.slack_workspace_configurations[0].team_id #=> String
|
646
|
+
# resp.slack_workspace_configurations[0].team_name #=> String
|
604
647
|
#
|
605
648
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/ListSlackWorkspaceConfigurations AWS API Documentation
|
606
649
|
#
|
@@ -636,6 +679,78 @@ module Aws::SupportApp
|
|
636
679
|
req.send_request(options)
|
637
680
|
end
|
638
681
|
|
682
|
+
# Registers a Slack workspace for your Amazon Web Services account. To
|
683
|
+
# call this API, your account must be part of an organization in
|
684
|
+
# Organizations.
|
685
|
+
#
|
686
|
+
# If you're the *management account* and you want to register Slack
|
687
|
+
# workspaces for your organization, you must complete the following
|
688
|
+
# tasks:
|
689
|
+
#
|
690
|
+
# 1. Sign in to the [Amazon Web Services Support Center][1] and
|
691
|
+
# authorize the Slack workspaces where you want your organization to
|
692
|
+
# have access to. See [Authorize a Slack workspace][2] in the
|
693
|
+
# *Amazon Web Services Support User Guide*.
|
694
|
+
#
|
695
|
+
# 2. Call the `RegisterSlackWorkspaceForOrganization` API to authorize
|
696
|
+
# each Slack workspace for the organization.
|
697
|
+
#
|
698
|
+
# After the management account authorizes the Slack workspace, member
|
699
|
+
# accounts can call this API to authorize the same Slack workspace for
|
700
|
+
# their individual accounts. Member accounts don't need to authorize
|
701
|
+
# the Slack workspace manually through the [Amazon Web Services Support
|
702
|
+
# Center][1].
|
703
|
+
#
|
704
|
+
# To use the Amazon Web Services Support App, each account must then
|
705
|
+
# complete the following tasks:
|
706
|
+
#
|
707
|
+
# * Create an Identity and Access Management (IAM) role with the
|
708
|
+
# required permission. For more information, see [Managing access to
|
709
|
+
# the Amazon Web Services Support App][3].
|
710
|
+
#
|
711
|
+
# * Configure a Slack channel to use the Amazon Web Services Support App
|
712
|
+
# for support cases for that account. For more information, see
|
713
|
+
# [Configuring a Slack channel][4].
|
714
|
+
#
|
715
|
+
#
|
716
|
+
#
|
717
|
+
# [1]: https://console.aws.amazon.com/support/app
|
718
|
+
# [2]: https://docs.aws.amazon.com/awssupport/latest/user/authorize-slack-workspace.html
|
719
|
+
# [3]: https://docs.aws.amazon.com/awssupport/latest/user/support-app-permissions.html
|
720
|
+
# [4]: https://docs.aws.amazon.com/awssupport/latest/user/add-your-slack-channel.html
|
721
|
+
#
|
722
|
+
# @option params [required, String] :team_id
|
723
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
724
|
+
# such as `T012ABCDEFG`. Specify the Slack workspace that you want to
|
725
|
+
# use for your organization.
|
726
|
+
#
|
727
|
+
# @return [Types::RegisterSlackWorkspaceForOrganizationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
728
|
+
#
|
729
|
+
# * {Types::RegisterSlackWorkspaceForOrganizationResult#account_type #account_type} => String
|
730
|
+
# * {Types::RegisterSlackWorkspaceForOrganizationResult#team_id #team_id} => String
|
731
|
+
# * {Types::RegisterSlackWorkspaceForOrganizationResult#team_name #team_name} => String
|
732
|
+
#
|
733
|
+
# @example Request syntax with placeholder values
|
734
|
+
#
|
735
|
+
# resp = client.register_slack_workspace_for_organization({
|
736
|
+
# team_id: "teamId", # required
|
737
|
+
# })
|
738
|
+
#
|
739
|
+
# @example Response structure
|
740
|
+
#
|
741
|
+
# resp.account_type #=> String, one of "management", "member"
|
742
|
+
# resp.team_id #=> String
|
743
|
+
# resp.team_name #=> String
|
744
|
+
#
|
745
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/RegisterSlackWorkspaceForOrganization AWS API Documentation
|
746
|
+
#
|
747
|
+
# @overload register_slack_workspace_for_organization(params = {})
|
748
|
+
# @param [Hash] params ({})
|
749
|
+
def register_slack_workspace_for_organization(params = {}, options = {})
|
750
|
+
req = build_request(:register_slack_workspace_for_organization, params)
|
751
|
+
req.send_request(options)
|
752
|
+
end
|
753
|
+
|
639
754
|
# Updates the configuration for a Slack channel, such as case update
|
640
755
|
# notifications.
|
641
756
|
#
|
@@ -664,7 +779,28 @@ module Aws::SupportApp
|
|
664
779
|
# The case severity for a support case that you want to receive
|
665
780
|
# notifications.
|
666
781
|
#
|
667
|
-
#
|
782
|
+
# If you specify `high` or `all`, at least one of the following
|
783
|
+
# parameters must be `true`\:
|
784
|
+
#
|
785
|
+
# * `notifyOnAddCorrespondenceToCase`
|
786
|
+
#
|
787
|
+
# * `notifyOnCreateOrReopenCase`
|
788
|
+
#
|
789
|
+
# * `notifyOnResolveCase`
|
790
|
+
#
|
791
|
+
# If you specify `none`, any of the following parameters that you
|
792
|
+
# specify in your request must be `false`\:
|
793
|
+
#
|
794
|
+
# * `notifyOnAddCorrespondenceToCase`
|
795
|
+
#
|
796
|
+
# * `notifyOnCreateOrReopenCase`
|
797
|
+
#
|
798
|
+
# * `notifyOnResolveCase`
|
799
|
+
#
|
800
|
+
# <note markdown="1"> If you don't specify these parameters in your request, the Amazon Web
|
801
|
+
# Services Support App uses the current values by default.
|
802
|
+
#
|
803
|
+
# </note>
|
668
804
|
#
|
669
805
|
# @option params [Boolean] :notify_on_create_or_reopen_case
|
670
806
|
# Whether you want to get notified when a support case is created or
|
@@ -674,7 +810,8 @@ module Aws::SupportApp
|
|
674
810
|
# Whether you want to get notified when a support case is resolved.
|
675
811
|
#
|
676
812
|
# @option params [required, String] :team_id
|
677
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
813
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
814
|
+
# such as `T012ABCDEFG`.
|
678
815
|
#
|
679
816
|
# @return [Types::UpdateSlackChannelConfigurationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
680
817
|
#
|
@@ -733,7 +870,7 @@ module Aws::SupportApp
|
|
733
870
|
params: params,
|
734
871
|
config: config)
|
735
872
|
context[:gem_name] = 'aws-sdk-supportapp'
|
736
|
-
context[:gem_version] = '1.
|
873
|
+
context[:gem_version] = '1.2.0'
|
737
874
|
Seahorse::Client::Request.new(handlers, context)
|
738
875
|
end
|
739
876
|
|
@@ -14,6 +14,7 @@ module Aws::SupportApp
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AccountType = Shapes::StringShape.new(name: 'AccountType')
|
17
18
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
18
19
|
CreateSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationRequest')
|
19
20
|
CreateSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationResult')
|
@@ -33,6 +34,8 @@ module Aws::SupportApp
|
|
33
34
|
NotificationSeverityLevel = Shapes::StringShape.new(name: 'NotificationSeverityLevel')
|
34
35
|
PutAccountAliasRequest = Shapes::StructureShape.new(name: 'PutAccountAliasRequest')
|
35
36
|
PutAccountAliasResult = Shapes::StructureShape.new(name: 'PutAccountAliasResult')
|
37
|
+
RegisterSlackWorkspaceForOrganizationRequest = Shapes::StructureShape.new(name: 'RegisterSlackWorkspaceForOrganizationRequest')
|
38
|
+
RegisterSlackWorkspaceForOrganizationResult = Shapes::StructureShape.new(name: 'RegisterSlackWorkspaceForOrganizationResult')
|
36
39
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
37
40
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
38
41
|
SlackChannelConfiguration = Shapes::StructureShape.new(name: 'SlackChannelConfiguration')
|
@@ -50,6 +53,7 @@ module Aws::SupportApp
|
|
50
53
|
roleArn = Shapes::StringShape.new(name: 'roleArn')
|
51
54
|
slackChannelConfigurationList = Shapes::ListShape.new(name: 'slackChannelConfigurationList')
|
52
55
|
teamId = Shapes::StringShape.new(name: 'teamId')
|
56
|
+
teamName = Shapes::StringShape.new(name: 'teamName')
|
53
57
|
|
54
58
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
55
59
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
@@ -111,6 +115,14 @@ module Aws::SupportApp
|
|
111
115
|
|
112
116
|
PutAccountAliasResult.struct_class = Types::PutAccountAliasResult
|
113
117
|
|
118
|
+
RegisterSlackWorkspaceForOrganizationRequest.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
|
119
|
+
RegisterSlackWorkspaceForOrganizationRequest.struct_class = Types::RegisterSlackWorkspaceForOrganizationRequest
|
120
|
+
|
121
|
+
RegisterSlackWorkspaceForOrganizationResult.add_member(:account_type, Shapes::ShapeRef.new(shape: AccountType, location_name: "accountType"))
|
122
|
+
RegisterSlackWorkspaceForOrganizationResult.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, location_name: "teamId"))
|
123
|
+
RegisterSlackWorkspaceForOrganizationResult.add_member(:team_name, Shapes::ShapeRef.new(shape: teamName, location_name: "teamName"))
|
124
|
+
RegisterSlackWorkspaceForOrganizationResult.struct_class = Types::RegisterSlackWorkspaceForOrganizationResult
|
125
|
+
|
114
126
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
115
127
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
116
128
|
|
@@ -127,7 +139,9 @@ module Aws::SupportApp
|
|
127
139
|
SlackChannelConfiguration.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
|
128
140
|
SlackChannelConfiguration.struct_class = Types::SlackChannelConfiguration
|
129
141
|
|
142
|
+
SlackWorkspaceConfiguration.add_member(:allow_organization_member_account, Shapes::ShapeRef.new(shape: booleanValue, location_name: "allowOrganizationMemberAccount"))
|
130
143
|
SlackWorkspaceConfiguration.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
|
144
|
+
SlackWorkspaceConfiguration.add_member(:team_name, Shapes::ShapeRef.new(shape: teamName, location_name: "teamName"))
|
131
145
|
SlackWorkspaceConfiguration.struct_class = Types::SlackWorkspaceConfiguration
|
132
146
|
|
133
147
|
SlackWorkspaceConfigurationList.member = Shapes::ShapeRef.new(shape: SlackWorkspaceConfiguration)
|
@@ -276,6 +290,19 @@ module Aws::SupportApp
|
|
276
290
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
277
291
|
end)
|
278
292
|
|
293
|
+
api.add_operation(:register_slack_workspace_for_organization, Seahorse::Model::Operation.new.tap do |o|
|
294
|
+
o.name = "RegisterSlackWorkspaceForOrganization"
|
295
|
+
o.http_method = "POST"
|
296
|
+
o.http_request_uri = "/control/register-slack-workspace-for-organization"
|
297
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterSlackWorkspaceForOrganizationRequest)
|
298
|
+
o.output = Shapes::ShapeRef.new(shape: RegisterSlackWorkspaceForOrganizationResult)
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
302
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
303
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
304
|
+
end)
|
305
|
+
|
279
306
|
api.add_operation(:update_slack_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
|
280
307
|
o.name = "UpdateSlackChannelConfiguration"
|
281
308
|
o.http_method = "POST"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SupportApp
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SupportApp
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
+
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
+
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
+
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
+
bm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pdGlvblJlc3VsdCNkdWFs
|
100
|
+
U3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9
|
101
|
+
fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJv
|
102
|
+
ciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBk
|
103
|
+
b2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0s
|
104
|
+
eyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9z
|
105
|
+
dXBwb3J0LWFwcC57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZp
|
106
|
+
eH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5k
|
107
|
+
cG9pbnQifV19XX0=
|
108
|
+
|
109
|
+
JSON
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SupportApp
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CreateSlackChannelConfiguration
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::SupportApp::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class DeleteAccountAlias
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::SupportApp::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class DeleteSlackChannelConfiguration
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::SupportApp::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class DeleteSlackWorkspaceConfiguration
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::SupportApp::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class GetAccountAlias
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::SupportApp::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class ListSlackChannelConfigurations
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::SupportApp::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class ListSlackWorkspaceConfigurations
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::SupportApp::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class PutAccountAlias
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::SupportApp::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class RegisterSlackWorkspaceForOrganization
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::SupportApp::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class UpdateSlackChannelConfiguration
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::SupportApp::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SupportApp
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SupportApp::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::SupportApp::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SupportApp::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :create_slack_channel_configuration
|
60
|
+
Aws::SupportApp::Endpoints::CreateSlackChannelConfiguration.build(context)
|
61
|
+
when :delete_account_alias
|
62
|
+
Aws::SupportApp::Endpoints::DeleteAccountAlias.build(context)
|
63
|
+
when :delete_slack_channel_configuration
|
64
|
+
Aws::SupportApp::Endpoints::DeleteSlackChannelConfiguration.build(context)
|
65
|
+
when :delete_slack_workspace_configuration
|
66
|
+
Aws::SupportApp::Endpoints::DeleteSlackWorkspaceConfiguration.build(context)
|
67
|
+
when :get_account_alias
|
68
|
+
Aws::SupportApp::Endpoints::GetAccountAlias.build(context)
|
69
|
+
when :list_slack_channel_configurations
|
70
|
+
Aws::SupportApp::Endpoints::ListSlackChannelConfigurations.build(context)
|
71
|
+
when :list_slack_workspace_configurations
|
72
|
+
Aws::SupportApp::Endpoints::ListSlackWorkspaceConfigurations.build(context)
|
73
|
+
when :put_account_alias
|
74
|
+
Aws::SupportApp::Endpoints::PutAccountAlias.build(context)
|
75
|
+
when :register_slack_workspace_for_organization
|
76
|
+
Aws::SupportApp::Endpoints::RegisterSlackWorkspaceForOrganization.build(context)
|
77
|
+
when :update_slack_channel_configuration
|
78
|
+
Aws::SupportApp::Endpoints::UpdateSlackChannelConfiguration.build(context)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def add_handlers(handlers, _config)
|
84
|
+
handlers.add(Handler, step: :build, priority: 75)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -37,6 +37,13 @@ module Aws::SupportApp
|
|
37
37
|
# * Delete a Slack workspace from your Amazon Web Services account that
|
38
38
|
# has an active live chat channel.
|
39
39
|
#
|
40
|
+
# * Call the `RegisterSlackWorkspaceForOrganization` API from an Amazon
|
41
|
+
# Web Services account that doesn't belong to an organization.
|
42
|
+
#
|
43
|
+
# * Call the `RegisterSlackWorkspaceForOrganization` API from a member
|
44
|
+
# account, but the management account hasn't registered that
|
45
|
+
# workspace yet for the organization.
|
46
|
+
#
|
40
47
|
# @!attribute [rw] message
|
41
48
|
# @return [String]
|
42
49
|
#
|
@@ -92,7 +99,28 @@ module Aws::SupportApp
|
|
92
99
|
# The case severity for a support case that you want to receive
|
93
100
|
# notifications.
|
94
101
|
#
|
95
|
-
#
|
102
|
+
# If you specify `high` or `all`, you must specify `true` for at least
|
103
|
+
# one of the following parameters:
|
104
|
+
#
|
105
|
+
# * `notifyOnAddCorrespondenceToCase`
|
106
|
+
#
|
107
|
+
# * `notifyOnCreateOrReopenCase`
|
108
|
+
#
|
109
|
+
# * `notifyOnResolveCase`
|
110
|
+
#
|
111
|
+
# If you specify `none`, the following parameters must be null or
|
112
|
+
# `false`\:
|
113
|
+
#
|
114
|
+
# * `notifyOnAddCorrespondenceToCase`
|
115
|
+
#
|
116
|
+
# * `notifyOnCreateOrReopenCase`
|
117
|
+
#
|
118
|
+
# * `notifyOnResolveCase`
|
119
|
+
#
|
120
|
+
# <note markdown="1"> If you don't specify these parameters in your request, they default
|
121
|
+
# to `false`.
|
122
|
+
#
|
123
|
+
# </note>
|
96
124
|
# @return [String]
|
97
125
|
#
|
98
126
|
# @!attribute [rw] notify_on_create_or_reopen_case
|
@@ -105,7 +133,8 @@ module Aws::SupportApp
|
|
105
133
|
# @return [Boolean]
|
106
134
|
#
|
107
135
|
# @!attribute [rw] team_id
|
108
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
136
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
137
|
+
# such as `T012ABCDEFG`.
|
109
138
|
# @return [String]
|
110
139
|
#
|
111
140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/CreateSlackChannelConfigurationRequest AWS API Documentation
|
@@ -151,7 +180,8 @@ module Aws::SupportApp
|
|
151
180
|
# @return [String]
|
152
181
|
#
|
153
182
|
# @!attribute [rw] team_id
|
154
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
183
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
184
|
+
# such as `T012ABCDEFG`.
|
155
185
|
# @return [String]
|
156
186
|
#
|
157
187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/DeleteSlackChannelConfigurationRequest AWS API Documentation
|
@@ -175,7 +205,8 @@ module Aws::SupportApp
|
|
175
205
|
# }
|
176
206
|
#
|
177
207
|
# @!attribute [rw] team_id
|
178
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
208
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
209
|
+
# such as `T012ABCDEFG`.
|
179
210
|
# @return [String]
|
180
211
|
#
|
181
212
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/DeleteSlackWorkspaceConfigurationRequest AWS API Documentation
|
@@ -329,8 +360,54 @@ module Aws::SupportApp
|
|
329
360
|
#
|
330
361
|
class PutAccountAliasResult < Aws::EmptyStructure; end
|
331
362
|
|
363
|
+
# @note When making an API call, you may pass RegisterSlackWorkspaceForOrganizationRequest
|
364
|
+
# data as a hash:
|
365
|
+
#
|
366
|
+
# {
|
367
|
+
# team_id: "teamId", # required
|
368
|
+
# }
|
369
|
+
#
|
370
|
+
# @!attribute [rw] team_id
|
371
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
372
|
+
# such as `T012ABCDEFG`. Specify the Slack workspace that you want to
|
373
|
+
# use for your organization.
|
374
|
+
# @return [String]
|
375
|
+
#
|
376
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/RegisterSlackWorkspaceForOrganizationRequest AWS API Documentation
|
377
|
+
#
|
378
|
+
class RegisterSlackWorkspaceForOrganizationRequest < Struct.new(
|
379
|
+
:team_id)
|
380
|
+
SENSITIVE = []
|
381
|
+
include Aws::Structure
|
382
|
+
end
|
383
|
+
|
384
|
+
# @!attribute [rw] account_type
|
385
|
+
# Whether the Amazon Web Services account is a management or member
|
386
|
+
# account that's part of an organization in Organizations.
|
387
|
+
# @return [String]
|
388
|
+
#
|
389
|
+
# @!attribute [rw] team_id
|
390
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
391
|
+
# such as `T012ABCDEFG`.
|
392
|
+
# @return [String]
|
393
|
+
#
|
394
|
+
# @!attribute [rw] team_name
|
395
|
+
# The name of the Slack workspace.
|
396
|
+
# @return [String]
|
397
|
+
#
|
398
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/RegisterSlackWorkspaceForOrganizationResult AWS API Documentation
|
399
|
+
#
|
400
|
+
class RegisterSlackWorkspaceForOrganizationResult < Struct.new(
|
401
|
+
:account_type,
|
402
|
+
:team_id,
|
403
|
+
:team_name)
|
404
|
+
SENSITIVE = []
|
405
|
+
include Aws::Structure
|
406
|
+
end
|
407
|
+
|
332
408
|
# The specified resource is missing or doesn't exist, such as an
|
333
|
-
# account alias
|
409
|
+
# account alias, Slack channel configuration, or Slack workspace
|
410
|
+
# configuration.
|
334
411
|
#
|
335
412
|
# @!attribute [rw] message
|
336
413
|
# @return [String]
|
@@ -359,8 +436,8 @@ module Aws::SupportApp
|
|
359
436
|
include Aws::Structure
|
360
437
|
end
|
361
438
|
|
362
|
-
# The configuration for a Slack channel that you added
|
363
|
-
# Services account.
|
439
|
+
# The configuration for a Slack channel that you added for your Amazon
|
440
|
+
# Web Services account.
|
364
441
|
#
|
365
442
|
# @!attribute [rw] channel_id
|
366
443
|
# The channel ID in Slack. This ID identifies a channel within a Slack
|
@@ -369,7 +446,7 @@ module Aws::SupportApp
|
|
369
446
|
#
|
370
447
|
# @!attribute [rw] channel_name
|
371
448
|
# The name of the Slack channel that you configured with the Amazon
|
372
|
-
# Web Services Support App.
|
449
|
+
# Web Services Support App for your Amazon Web Services account.
|
373
450
|
# @return [String]
|
374
451
|
#
|
375
452
|
# @!attribute [rw] channel_role_arn
|
@@ -403,7 +480,8 @@ module Aws::SupportApp
|
|
403
480
|
# @return [Boolean]
|
404
481
|
#
|
405
482
|
# @!attribute [rw] team_id
|
406
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
483
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
484
|
+
# such as `T012ABCDEFG`.
|
407
485
|
# @return [String]
|
408
486
|
#
|
409
487
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/SlackChannelConfiguration AWS API Documentation
|
@@ -424,14 +502,26 @@ module Aws::SupportApp
|
|
424
502
|
# The configuration for a Slack workspace that you added to an Amazon
|
425
503
|
# Web Services account.
|
426
504
|
#
|
505
|
+
# @!attribute [rw] allow_organization_member_account
|
506
|
+
# Whether to allow member accounts to authorize Slack workspaces.
|
507
|
+
# Member accounts must be part of an organization in Organizations.
|
508
|
+
# @return [Boolean]
|
509
|
+
#
|
427
510
|
# @!attribute [rw] team_id
|
428
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
511
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
512
|
+
# such as `T012ABCDEFG`.
|
513
|
+
# @return [String]
|
514
|
+
#
|
515
|
+
# @!attribute [rw] team_name
|
516
|
+
# The name of the Slack workspace.
|
429
517
|
# @return [String]
|
430
518
|
#
|
431
519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/SlackWorkspaceConfiguration AWS API Documentation
|
432
520
|
#
|
433
521
|
class SlackWorkspaceConfiguration < Struct.new(
|
434
|
-
:
|
522
|
+
:allow_organization_member_account,
|
523
|
+
:team_id,
|
524
|
+
:team_name)
|
435
525
|
SENSITIVE = []
|
436
526
|
include Aws::Structure
|
437
527
|
end
|
@@ -479,7 +569,28 @@ module Aws::SupportApp
|
|
479
569
|
# The case severity for a support case that you want to receive
|
480
570
|
# notifications.
|
481
571
|
#
|
482
|
-
#
|
572
|
+
# If you specify `high` or `all`, at least one of the following
|
573
|
+
# parameters must be `true`\:
|
574
|
+
#
|
575
|
+
# * `notifyOnAddCorrespondenceToCase`
|
576
|
+
#
|
577
|
+
# * `notifyOnCreateOrReopenCase`
|
578
|
+
#
|
579
|
+
# * `notifyOnResolveCase`
|
580
|
+
#
|
581
|
+
# If you specify `none`, any of the following parameters that you
|
582
|
+
# specify in your request must be `false`\:
|
583
|
+
#
|
584
|
+
# * `notifyOnAddCorrespondenceToCase`
|
585
|
+
#
|
586
|
+
# * `notifyOnCreateOrReopenCase`
|
587
|
+
#
|
588
|
+
# * `notifyOnResolveCase`
|
589
|
+
#
|
590
|
+
# <note markdown="1"> If you don't specify these parameters in your request, the Amazon
|
591
|
+
# Web Services Support App uses the current values by default.
|
592
|
+
#
|
593
|
+
# </note>
|
483
594
|
# @return [String]
|
484
595
|
#
|
485
596
|
# @!attribute [rw] notify_on_create_or_reopen_case
|
@@ -492,7 +603,8 @@ module Aws::SupportApp
|
|
492
603
|
# @return [Boolean]
|
493
604
|
#
|
494
605
|
# @!attribute [rw] team_id
|
495
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
606
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
607
|
+
# such as `T012ABCDEFG`.
|
496
608
|
# @return [String]
|
497
609
|
#
|
498
610
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/UpdateSlackChannelConfigurationRequest AWS API Documentation
|
@@ -551,7 +663,8 @@ module Aws::SupportApp
|
|
551
663
|
# @return [Boolean]
|
552
664
|
#
|
553
665
|
# @!attribute [rw] team_id
|
554
|
-
# The team ID in Slack. This ID uniquely identifies a Slack workspace
|
666
|
+
# The team ID in Slack. This ID uniquely identifies a Slack workspace,
|
667
|
+
# such as `T012ABCDEFG`.
|
555
668
|
# @return [String]
|
556
669
|
#
|
557
670
|
# @see http://docs.aws.amazon.com/goto/WebAPI/support-app-2021-08-20/UpdateSlackChannelConfigurationResult AWS API Documentation
|
data/lib/aws-sdk-supportapp.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-supportapp/types'
|
15
15
|
require_relative 'aws-sdk-supportapp/client_api'
|
16
|
+
require_relative 'aws-sdk-supportapp/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-supportapp/client'
|
17
18
|
require_relative 'aws-sdk-supportapp/errors'
|
18
19
|
require_relative 'aws-sdk-supportapp/resource'
|
20
|
+
require_relative 'aws-sdk-supportapp/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-supportapp/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-supportapp/endpoints'
|
19
23
|
require_relative 'aws-sdk-supportapp/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS Support App. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-supportapp/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::SupportApp
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.2.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-supportapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-supportapp/client.rb
|
60
60
|
- lib/aws-sdk-supportapp/client_api.rb
|
61
61
|
- lib/aws-sdk-supportapp/customizations.rb
|
62
|
+
- lib/aws-sdk-supportapp/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-supportapp/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-supportapp/endpoints.rb
|
62
65
|
- lib/aws-sdk-supportapp/errors.rb
|
66
|
+
- lib/aws-sdk-supportapp/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-supportapp/resource.rb
|
64
68
|
- lib/aws-sdk-supportapp/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|