Skip to content

Commit 2b13bb0

Browse files
You can now delete Amazon MQ broker configurations using the DeleteConfiguration API. For more information, see Configurations in the Amazon MQ API Reference.
1 parent 4f8b580 commit 2b13bb0

File tree

13 files changed

+809
-0
lines changed

13 files changed

+809
-0
lines changed

generator/ServiceModels/mq/mq-2017-11-27.api.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,37 @@
157157
}
158158
]
159159
},
160+
"DeleteConfiguration": {
161+
"name": "DeleteConfiguration",
162+
"http": {
163+
"method": "DELETE",
164+
"requestUri": "/v1/configurations/{configuration-id}",
165+
"responseCode": 200
166+
},
167+
"input": {
168+
"shape": "DeleteConfigurationRequest"
169+
},
170+
"output": {
171+
"shape": "DeleteConfigurationResponse"
172+
},
173+
"errors": [
174+
{
175+
"shape": "NotFoundException"
176+
},
177+
{
178+
"shape": "BadRequestException"
179+
},
180+
{
181+
"shape": "InternalServerErrorException"
182+
},
183+
{
184+
"shape": "ConflictException"
185+
},
186+
{
187+
"shape": "ForbiddenException"
188+
}
189+
]
190+
},
160191
"DeleteTags": {
161192
"name": "DeleteTags",
162193
"http": {
@@ -1507,6 +1538,37 @@
15071538
}
15081539
}
15091540
},
1541+
"DeleteConfigurationOutput": {
1542+
"type": "structure",
1543+
"members": {
1544+
"ConfigurationId": {
1545+
"shape": "__string",
1546+
"locationName": "configurationId"
1547+
}
1548+
}
1549+
},
1550+
"DeleteConfigurationRequest": {
1551+
"type": "structure",
1552+
"members": {
1553+
"ConfigurationId": {
1554+
"shape": "__string",
1555+
"location": "uri",
1556+
"locationName": "configuration-id"
1557+
}
1558+
},
1559+
"required": [
1560+
"ConfigurationId"
1561+
]
1562+
},
1563+
"DeleteConfigurationResponse": {
1564+
"type": "structure",
1565+
"members": {
1566+
"ConfigurationId": {
1567+
"shape": "__string",
1568+
"locationName": "configurationId"
1569+
}
1570+
}
1571+
},
15101572
"DeleteTagsRequest": {
15111573
"type": "structure",
15121574
"members": {

generator/ServiceModels/mq/mq-2017-11-27.docs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"CreateTags" : "<p>Add a tag to a resource.</p>",
88
"CreateUser" : "<p>Creates an ActiveMQ user.</p> <important><p>Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.</p></important>",
99
"DeleteBroker" : "<p>Deletes a broker. Note: This API is asynchronous.</p>",
10+
"DeleteConfiguration" : "<p>Deletes the specified configuration.</p>",
1011
"DeleteTags" : "<p>Removes a tag from a resource.</p>",
1112
"DeleteUser" : "<p>Deletes an ActiveMQ user.</p>",
1213
"DescribeBroker" : "<p>Returns information about the specified broker.</p>",
@@ -202,6 +203,10 @@
202203
"base" : "<p>Returns information about the deleted broker.</p>",
203204
"refs" : { }
204205
},
206+
"DeleteConfigurationOutput" : {
207+
"base" : "<p>Returns information about the deleted configuration.</p>",
208+
"refs" : { }
209+
},
205210
"DeploymentMode" : {
206211
"base" : "<p>The broker's deployment mode.</p>",
207212
"refs" : {
@@ -599,6 +604,7 @@
599604
"DataReplicationCounterpart$Region" : "<p>Required. The region of the broker.</p>",
600605
"DataReplicationMetadataOutput$DataReplicationRole" : "<p>Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.</p>",
601606
"DeleteBrokerOutput$BrokerId" : "<p>The unique ID that Amazon MQ generates for the broker.</p>",
607+
"DeleteConfigurationOutput$ConfigurationId" : "<p>The unique ID that Amazon MQ generates for the configuration.</p>",
602608
"DescribeBrokerOutput$BrokerArn" : "<p>The broker's Amazon Resource Name (ARN).</p>",
603609
"DescribeBrokerOutput$BrokerId" : "<p>The unique ID that Amazon MQ generates for the broker.</p>",
604610
"DescribeBrokerOutput$BrokerName" : "<p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>",

generator/ServiceModels/mq/mq-2017-11-27.normal.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,44 @@
188188
],
189189
"documentation": "<p>Deletes a broker. Note: This API is asynchronous.</p>"
190190
},
191+
"DeleteConfiguration": {
192+
"name": "DeleteConfiguration",
193+
"http": {
194+
"method": "DELETE",
195+
"requestUri": "/v1/configurations/{configuration-id}",
196+
"responseCode": 200
197+
},
198+
"input": {
199+
"shape": "DeleteConfigurationRequest"
200+
},
201+
"output": {
202+
"shape": "DeleteConfigurationResponse",
203+
"documentation": "<p>HTTP Status Code 200: OK.</p>"
204+
},
205+
"errors": [
206+
{
207+
"shape": "NotFoundException",
208+
"documentation": "<p>HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.</p>"
209+
},
210+
{
211+
"shape": "BadRequestException",
212+
"documentation": "<p>HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.</p>"
213+
},
214+
{
215+
"shape": "InternalServerErrorException",
216+
"documentation": "<p>HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.</p>"
217+
},
218+
{
219+
"shape": "ConflictException",
220+
"documentation": "<p>HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.</p>"
221+
},
222+
{
223+
"shape": "ForbiddenException",
224+
"documentation": "<p>HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.</p>"
225+
}
226+
],
227+
"documentation": "<p>Deletes the specified configuration.</p>"
228+
},
191229
"DeleteTags": {
192230
"name": "DeleteTags",
193231
"http": {
@@ -1812,6 +1850,41 @@
18121850
}
18131851
}
18141852
},
1853+
"DeleteConfigurationOutput": {
1854+
"type": "structure",
1855+
"members": {
1856+
"ConfigurationId": {
1857+
"shape": "__string",
1858+
"locationName": "configurationId",
1859+
"documentation": "<p>The unique ID that Amazon MQ generates for the configuration.</p>"
1860+
}
1861+
},
1862+
"documentation": "<p>Returns information about the deleted configuration.</p>"
1863+
},
1864+
"DeleteConfigurationRequest": {
1865+
"type": "structure",
1866+
"members": {
1867+
"ConfigurationId": {
1868+
"shape": "__string",
1869+
"location": "uri",
1870+
"locationName": "configuration-id",
1871+
"documentation": "<p>The unique ID that Amazon MQ generates for the configuration.</p>"
1872+
}
1873+
},
1874+
"required": [
1875+
"ConfigurationId"
1876+
]
1877+
},
1878+
"DeleteConfigurationResponse": {
1879+
"type": "structure",
1880+
"members": {
1881+
"ConfigurationId": {
1882+
"shape": "__string",
1883+
"locationName": "configurationId",
1884+
"documentation": "<p>The unique ID that Amazon MQ generates for the configuration.</p>"
1885+
}
1886+
}
1887+
},
18151888
"DeleteTagsRequest": {
18161889
"type": "structure",
18171890
"members": {
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 mq-2017-11-27.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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.MQ.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the DeleteConfiguration operation.
34+
/// Deletes the specified configuration.
35+
/// </summary>
36+
public partial class DeleteConfigurationRequest : AmazonMQRequest
37+
{
38+
private string _configurationId;
39+
40+
/// <summary>
41+
/// Gets and sets the property ConfigurationId.
42+
/// <para>
43+
/// The unique ID that Amazon MQ generates for the configuration.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true)]
47+
public string ConfigurationId
48+
{
49+
get { return this._configurationId; }
50+
set { this._configurationId = value; }
51+
}
52+
53+
// Check to see if ConfigurationId property is set
54+
internal bool IsSetConfigurationId()
55+
{
56+
return this._configurationId != null;
57+
}
58+
59+
}
60+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 mq-2017-11-27.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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.MQ.Model
31+
{
32+
/// <summary>
33+
/// This is the response object from the DeleteConfiguration operation.
34+
/// </summary>
35+
public partial class DeleteConfigurationResponse : AmazonWebServiceResponse
36+
{
37+
private string _configurationId;
38+
39+
/// <summary>
40+
/// Gets and sets the property ConfigurationId.
41+
/// <para>
42+
/// The unique ID that Amazon MQ generates for the configuration.
43+
/// </para>
44+
/// </summary>
45+
public string ConfigurationId
46+
{
47+
get { return this._configurationId; }
48+
set { this._configurationId = value; }
49+
}
50+
51+
// Check to see if ConfigurationId property is set
52+
internal bool IsSetConfigurationId()
53+
{
54+
return this._configurationId != null;
55+
}
56+
57+
}
58+
}

0 commit comments

Comments
 (0)