Skip to content

Commit cfa79d5

Browse files
Add support for deleting Queues and Routing Profiles.
1 parent 57f824f commit cfa79d5

21 files changed

+1966
-6
lines changed

generator/ServiceModels/connect/connect-2017-08-08.api.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,22 @@
705705
{"shape":"InternalServiceException"}
706706
]
707707
},
708+
"DeleteQueue":{
709+
"name":"DeleteQueue",
710+
"http":{
711+
"method":"DELETE",
712+
"requestUri":"/queues/{InstanceId}/{QueueId}"
713+
},
714+
"input":{"shape":"DeleteQueueRequest"},
715+
"errors":[
716+
{"shape":"InvalidRequestException"},
717+
{"shape":"InvalidParameterException"},
718+
{"shape":"ResourceNotFoundException"},
719+
{"shape":"ResourceInUseException"},
720+
{"shape":"ThrottlingException"},
721+
{"shape":"InternalServiceException"}
722+
]
723+
},
708724
"DeleteQuickConnect":{
709725
"name":"DeleteQuickConnect",
710726
"http":{
@@ -720,6 +736,22 @@
720736
{"shape":"InternalServiceException"}
721737
]
722738
},
739+
"DeleteRoutingProfile":{
740+
"name":"DeleteRoutingProfile",
741+
"http":{
742+
"method":"DELETE",
743+
"requestUri":"/routing-profiles/{InstanceId}/{RoutingProfileId}"
744+
},
745+
"input":{"shape":"DeleteRoutingProfileRequest"},
746+
"errors":[
747+
{"shape":"InvalidRequestException"},
748+
{"shape":"InvalidParameterException"},
749+
{"shape":"ResourceNotFoundException"},
750+
{"shape":"ResourceInUseException"},
751+
{"shape":"ThrottlingException"},
752+
{"shape":"InternalServiceException"}
753+
]
754+
},
723755
"DeleteRule":{
724756
"name":"DeleteRule",
725757
"http":{
@@ -4859,6 +4891,25 @@
48594891
}
48604892
}
48614893
},
4894+
"DeleteQueueRequest":{
4895+
"type":"structure",
4896+
"required":[
4897+
"InstanceId",
4898+
"QueueId"
4899+
],
4900+
"members":{
4901+
"InstanceId":{
4902+
"shape":"InstanceId",
4903+
"location":"uri",
4904+
"locationName":"InstanceId"
4905+
},
4906+
"QueueId":{
4907+
"shape":"QueueId",
4908+
"location":"uri",
4909+
"locationName":"QueueId"
4910+
}
4911+
}
4912+
},
48624913
"DeleteQuickConnectRequest":{
48634914
"type":"structure",
48644915
"required":[
@@ -4878,6 +4929,25 @@
48784929
}
48794930
}
48804931
},
4932+
"DeleteRoutingProfileRequest":{
4933+
"type":"structure",
4934+
"required":[
4935+
"InstanceId",
4936+
"RoutingProfileId"
4937+
],
4938+
"members":{
4939+
"InstanceId":{
4940+
"shape":"InstanceId",
4941+
"location":"uri",
4942+
"locationName":"InstanceId"
4943+
},
4944+
"RoutingProfileId":{
4945+
"shape":"RoutingProfileId",
4946+
"location":"uri",
4947+
"locationName":"RoutingProfileId"
4948+
}
4949+
}
4950+
},
48814951
"DeleteRuleRequest":{
48824952
"type":"structure",
48834953
"required":[

generator/ServiceModels/connect/connect-2017-08-08.docs.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"DeleteInstance": "<p>This API is in preview release for Amazon Connect and is subject to change.</p> <p>Deletes the Amazon Connect instance.</p> <p>Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.</p>",
4444
"DeleteIntegrationAssociation": "<p>Deletes an Amazon Web Services resource association from an Amazon Connect instance. The association must not have any use cases associated with it.</p>",
4545
"DeletePrompt": "<p>Deletes a prompt.</p>",
46+
"DeleteQueue": "<p>Deletes a queue.</p>",
4647
"DeleteQuickConnect": "<p>Deletes a quick connect.</p>",
48+
"DeleteRoutingProfile": "<p>Deletes a routing profile.</p>",
4749
"DeleteRule": "<p>Deletes a rule for the specified Amazon Connect instance.</p>",
4850
"DeleteSecurityProfile": "<p>This API is in preview release for Amazon Connect and is subject to change.</p> <p>Deletes a security profile.</p>",
4951
"DeleteTaskTemplate": "<p>Deletes the task template.</p>",
@@ -1497,11 +1499,21 @@
14971499
"refs": {
14981500
}
14991501
},
1502+
"DeleteQueueRequest": {
1503+
"base": null,
1504+
"refs": {
1505+
}
1506+
},
15001507
"DeleteQuickConnectRequest": {
15011508
"base": null,
15021509
"refs": {
15031510
}
15041511
},
1512+
"DeleteRoutingProfileRequest": {
1513+
"base": null,
1514+
"refs": {
1515+
}
1516+
},
15051517
"DeleteRuleRequest": {
15061518
"base": null,
15071519
"refs": {
@@ -2858,7 +2870,9 @@
28582870
"DeleteInstanceRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28592871
"DeleteIntegrationAssociationRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28602872
"DeletePromptRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
2873+
"DeleteQueueRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28612874
"DeleteQuickConnectRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
2875+
"DeleteRoutingProfileRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28622876
"DeleteRuleRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28632877
"DeleteSecurityProfileRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
28642878
"DeleteTaskTemplateRequest$InstanceId": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
@@ -4399,6 +4413,7 @@
43994413
"AssociateQueueQuickConnectsRequest$QueueId": "<p>The identifier for the queue.</p>",
44004414
"CreateQueueResponse$QueueId": "<p>The identifier for the queue.</p>",
44014415
"CreateRoutingProfileRequest$DefaultOutboundQueueId": "<p>The default outbound queue for the routing profile.</p>",
4416+
"DeleteQueueRequest$QueueId": "<p>The identifier for the queue.</p>",
44024417
"DescribeQueueRequest$QueueId": "<p>The identifier for the queue.</p>",
44034418
"DisassociateQueueQuickConnectsRequest$QueueId": "<p>The identifier for the queue.</p>",
44044419
"ListQueueQuickConnectsRequest$QueueId": "<p>The identifier for the queue.</p>",
@@ -4854,6 +4869,7 @@
48544869
"AssociateRoutingProfileQueuesRequest$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
48554870
"CreateRoutingProfileResponse$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
48564871
"CreateUserRequest$RoutingProfileId": "<p>The identifier of the routing profile for the user.</p>",
4872+
"DeleteRoutingProfileRequest$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
48574873
"DescribeRoutingProfileRequest$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
48584874
"DisassociateRoutingProfileQueuesRequest$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
48594875
"ListRoutingProfileQueuesRequest$RoutingProfileId": "<p>The identifier of the routing profile.</p>",
@@ -6311,8 +6327,8 @@
63116327
"base": null,
63126328
"refs": {
63136329
"GetFederationTokenResponse$SignInUrl": "<p>The URL to sign into the user's instance. </p>",
6314-
"Instance$InstanceAccessUrl": "<p>This URL allows contact center users to access Amazon Connect admin website.</p>",
6315-
"InstanceSummary$InstanceAccessUrl": "<p>This URL allows contact center users to access Amazon Connect admin website.</p>"
6330+
"Instance$InstanceAccessUrl": "<p>This URL allows contact center users to access the Amazon Connect admin website.</p>",
6331+
"InstanceSummary$InstanceAccessUrl": "<p>This URL allows contact center users to access the Amazon Connect admin website.</p>"
63166332
}
63176333
},
63186334
"UrlReference": {

generator/ServiceModels/connect/connect-2017-08-08.normal.json

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,23 @@
746746
],
747747
"documentation":"<p>Deletes a prompt.</p>"
748748
},
749+
"DeleteQueue":{
750+
"name":"DeleteQueue",
751+
"http":{
752+
"method":"DELETE",
753+
"requestUri":"/queues/{InstanceId}/{QueueId}"
754+
},
755+
"input":{"shape":"DeleteQueueRequest"},
756+
"errors":[
757+
{"shape":"InvalidRequestException"},
758+
{"shape":"InvalidParameterException"},
759+
{"shape":"ResourceNotFoundException"},
760+
{"shape":"ResourceInUseException"},
761+
{"shape":"ThrottlingException"},
762+
{"shape":"InternalServiceException"}
763+
],
764+
"documentation":"<p>Deletes a queue.</p>"
765+
},
749766
"DeleteQuickConnect":{
750767
"name":"DeleteQuickConnect",
751768
"http":{
@@ -762,6 +779,23 @@
762779
],
763780
"documentation":"<p>Deletes a quick connect.</p>"
764781
},
782+
"DeleteRoutingProfile":{
783+
"name":"DeleteRoutingProfile",
784+
"http":{
785+
"method":"DELETE",
786+
"requestUri":"/routing-profiles/{InstanceId}/{RoutingProfileId}"
787+
},
788+
"input":{"shape":"DeleteRoutingProfileRequest"},
789+
"errors":[
790+
{"shape":"InvalidRequestException"},
791+
{"shape":"InvalidParameterException"},
792+
{"shape":"ResourceNotFoundException"},
793+
{"shape":"ResourceInUseException"},
794+
{"shape":"ThrottlingException"},
795+
{"shape":"InternalServiceException"}
796+
],
797+
"documentation":"<p>Deletes a routing profile.</p>"
798+
},
765799
"DeleteRule":{
766800
"name":"DeleteRule",
767801
"http":{
@@ -5977,6 +6011,27 @@
59776011
}
59786012
}
59796013
},
6014+
"DeleteQueueRequest":{
6015+
"type":"structure",
6016+
"required":[
6017+
"InstanceId",
6018+
"QueueId"
6019+
],
6020+
"members":{
6021+
"InstanceId":{
6022+
"shape":"InstanceId",
6023+
"documentation":"<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
6024+
"location":"uri",
6025+
"locationName":"InstanceId"
6026+
},
6027+
"QueueId":{
6028+
"shape":"QueueId",
6029+
"documentation":"<p>The identifier for the queue.</p>",
6030+
"location":"uri",
6031+
"locationName":"QueueId"
6032+
}
6033+
}
6034+
},
59806035
"DeleteQuickConnectRequest":{
59816036
"type":"structure",
59826037
"required":[
@@ -5998,6 +6053,27 @@
59986053
}
59996054
}
60006055
},
6056+
"DeleteRoutingProfileRequest":{
6057+
"type":"structure",
6058+
"required":[
6059+
"InstanceId",
6060+
"RoutingProfileId"
6061+
],
6062+
"members":{
6063+
"InstanceId":{
6064+
"shape":"InstanceId",
6065+
"documentation":"<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>",
6066+
"location":"uri",
6067+
"locationName":"InstanceId"
6068+
},
6069+
"RoutingProfileId":{
6070+
"shape":"RoutingProfileId",
6071+
"documentation":"<p>The identifier of the routing profile.</p>",
6072+
"location":"uri",
6073+
"locationName":"RoutingProfileId"
6074+
}
6075+
}
6076+
},
60016077
"DeleteRuleRequest":{
60026078
"type":"structure",
60036079
"required":[
@@ -9148,7 +9224,7 @@
91489224
},
91499225
"InstanceAccessUrl":{
91509226
"shape":"Url",
9151-
"documentation":"<p>This URL allows contact center users to access Amazon Connect admin website.</p>"
9227+
"documentation":"<p>This URL allows contact center users to access the Amazon Connect admin website.</p>"
91529228
}
91539229
},
91549230
"documentation":"<p>The Amazon Connect instance.</p>"
@@ -9297,7 +9373,7 @@
92979373
},
92989374
"InstanceAccessUrl":{
92999375
"shape":"Url",
9300-
"documentation":"<p>This URL allows contact center users to access Amazon Connect admin website.</p>"
9376+
"documentation":"<p>This URL allows contact center users to access the Amazon Connect admin website.</p>"
93019377
}
93029378
},
93039379
"documentation":"<p>Information about the instance.</p>"

sdk/code-analysis/ServiceAnalysis/Connect/Generated/PropertyValueRules.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,21 @@
612612
<min>1</min>
613613
<max>256</max>
614614
</property-value-rule>
615+
<property-value-rule>
616+
<property>Amazon.Connect.Model.DeleteQueueRequest.InstanceId</property>
617+
<min>1</min>
618+
<max>100</max>
619+
</property-value-rule>
615620
<property-value-rule>
616621
<property>Amazon.Connect.Model.DeleteQuickConnectRequest.InstanceId</property>
617622
<min>1</min>
618623
<max>100</max>
619624
</property-value-rule>
625+
<property-value-rule>
626+
<property>Amazon.Connect.Model.DeleteRoutingProfileRequest.InstanceId</property>
627+
<min>1</min>
628+
<max>100</max>
629+
</property-value-rule>
620630
<property-value-rule>
621631
<property>Amazon.Connect.Model.DeleteRuleRequest.InstanceId</property>
622632
<min>1</min>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the connect-2017-08-08.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
namespace Amazon.Connect.Model
30+
{
31+
/// <summary>
32+
/// Container for the parameters to the DeleteQueue operation.
33+
/// Deletes a queue.
34+
/// </summary>
35+
public partial class DeleteQueueRequest : AmazonConnectRequest
36+
{
37+
private string _instanceId;
38+
private string _queueId;
39+
40+
/// <summary>
41+
/// Gets and sets the property InstanceId.
42+
/// <para>
43+
/// The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find
44+
/// the instance ID</a> in the Amazon Resource Name (ARN) of the instance.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Required=true, Min=1, Max=100)]
48+
public string InstanceId
49+
{
50+
get { return this._instanceId; }
51+
set { this._instanceId = value; }
52+
}
53+
54+
// Check to see if InstanceId property is set
55+
internal bool IsSetInstanceId()
56+
{
57+
return this._instanceId != null;
58+
}
59+
60+
/// <summary>
61+
/// Gets and sets the property QueueId.
62+
/// <para>
63+
/// The identifier for the queue.
64+
/// </para>
65+
/// </summary>
66+
[AWSProperty(Required=true)]
67+
public string QueueId
68+
{
69+
get { return this._queueId; }
70+
set { this._queueId = value; }
71+
}
72+
73+
// Check to see if QueueId property is set
74+
internal bool IsSetQueueId()
75+
{
76+
return this._queueId != null;
77+
}
78+
79+
}
80+
}

0 commit comments

Comments
 (0)