Skip to content

Commit 9dfcfe8

Browse files
author
awstools
committed
feat(client-chatbot): Return State and StateReason fields for Chatbot Channel Configurations.
1 parent d2c0cef commit 9dfcfe8

14 files changed

+158
-0
lines changed

clients/client-chatbot/src/commands/CreateChimeWebhookConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export interface CreateChimeWebhookConfigurationCommandOutput
7979
* // TagValue: "STRING_VALUE", // required
8080
* // },
8181
* // ],
82+
* // State: "STRING_VALUE",
83+
* // StateReason: "STRING_VALUE",
8284
* // },
8385
* // };
8486
*

clients/client-chatbot/src/commands/CreateMicrosoftTeamsChannelConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
9494
* // TagValue: "STRING_VALUE", // required
9595
* // },
9696
* // ],
97+
* // State: "STRING_VALUE",
98+
* // StateReason: "STRING_VALUE",
9799
* // },
98100
* // };
99101
*

clients/client-chatbot/src/commands/CreateSlackChannelConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export interface CreateSlackChannelConfigurationCommandOutput
9191
* // TagValue: "STRING_VALUE", // required
9292
* // },
9393
* // ],
94+
* // State: "STRING_VALUE",
95+
* // StateReason: "STRING_VALUE",
9496
* // },
9597
* // };
9698
*

clients/client-chatbot/src/commands/DescribeChimeWebhookConfigurationsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export interface DescribeChimeWebhookConfigurationsCommandOutput
6969
* // TagValue: "STRING_VALUE", // required
7070
* // },
7171
* // ],
72+
* // State: "STRING_VALUE",
73+
* // StateReason: "STRING_VALUE",
7274
* // },
7375
* // ],
7476
* // };

clients/client-chatbot/src/commands/DescribeSlackChannelConfigurationsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ export interface DescribeSlackChannelConfigurationsCommandOutput
7676
* // TagValue: "STRING_VALUE", // required
7777
* // },
7878
* // ],
79+
* // State: "STRING_VALUE",
80+
* // StateReason: "STRING_VALUE",
7981
* // },
8082
* // ],
8183
* // };

clients/client-chatbot/src/commands/DescribeSlackWorkspacesCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface DescribeSlackWorkspacesCommandOutput extends DescribeSlackWorks
4646
* // { // SlackWorkspace
4747
* // SlackTeamId: "STRING_VALUE", // required
4848
* // SlackTeamName: "STRING_VALUE", // required
49+
* // State: "STRING_VALUE",
50+
* // StateReason: "STRING_VALUE",
4951
* // },
5052
* // ],
5153
* // NextToken: "STRING_VALUE",

clients/client-chatbot/src/commands/GetMicrosoftTeamsChannelConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export interface GetMicrosoftTeamsChannelConfigurationCommandOutput
7373
* // TagValue: "STRING_VALUE", // required
7474
* // },
7575
* // ],
76+
* // State: "STRING_VALUE",
77+
* // StateReason: "STRING_VALUE",
7678
* // },
7779
* // };
7880
*

clients/client-chatbot/src/commands/ListMicrosoftTeamsChannelConfigurationsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export interface ListMicrosoftTeamsChannelConfigurationsCommandOutput
7777
* // TagValue: "STRING_VALUE", // required
7878
* // },
7979
* // ],
80+
* // State: "STRING_VALUE",
81+
* // StateReason: "STRING_VALUE",
8082
* // },
8183
* // ],
8284
* // };

clients/client-chatbot/src/commands/ListMicrosoftTeamsConfiguredTeamsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export interface ListMicrosoftTeamsConfiguredTeamsCommandOutput
5252
* // TenantId: "STRING_VALUE", // required
5353
* // TeamId: "STRING_VALUE", // required
5454
* // TeamName: "STRING_VALUE",
55+
* // State: "STRING_VALUE",
56+
* // StateReason: "STRING_VALUE",
5557
* // },
5658
* // ],
5759
* // NextToken: "STRING_VALUE",

clients/client-chatbot/src/commands/UpdateChimeWebhookConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export interface UpdateChimeWebhookConfigurationCommandOutput
7373
* // TagValue: "STRING_VALUE", // required
7474
* // },
7575
* // ],
76+
* // State: "STRING_VALUE",
77+
* // StateReason: "STRING_VALUE",
7678
* // },
7779
* // };
7880
*

clients/client-chatbot/src/commands/UpdateMicrosoftTeamsChannelConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export interface UpdateMicrosoftTeamsChannelConfigurationCommandOutput
8585
* // TagValue: "STRING_VALUE", // required
8686
* // },
8787
* // ],
88+
* // State: "STRING_VALUE",
89+
* // StateReason: "STRING_VALUE",
8890
* // },
8991
* // };
9092
*

clients/client-chatbot/src/commands/UpdateSlackChannelConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export interface UpdateSlackChannelConfigurationCommandOutput
8484
* // TagValue: "STRING_VALUE", // required
8585
* // },
8686
* // ],
87+
* // State: "STRING_VALUE",
88+
* // StateReason: "STRING_VALUE",
8789
* // },
8890
* // };
8991
*

clients/client-chatbot/src/models/models_0.ts

+65
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ export interface ChimeWebhookConfiguration {
9595
* @public
9696
*/
9797
Tags?: Tag[];
98+
99+
/**
100+
* <p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.
101+
* For example, if Amazon Chime is disabled.</p>
102+
* @public
103+
*/
104+
State?: string;
105+
106+
/**
107+
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
108+
* @public
109+
*/
110+
StateReason?: string;
98111
}
99112

100113
/**
@@ -121,6 +134,19 @@ export interface ConfiguredTeam {
121134
* @public
122135
*/
123136
TeamName?: string;
137+
138+
/**
139+
* <p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.
140+
* For example, if Amazon Chime is disabled.</p>
141+
* @public
142+
*/
143+
State?: string;
144+
145+
/**
146+
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
147+
* @public
148+
*/
149+
StateReason?: string;
124150
}
125151

126152
/**
@@ -478,6 +504,19 @@ export interface TeamsChannelConfiguration {
478504
* @public
479505
*/
480506
Tags?: Tag[];
507+
508+
/**
509+
* <p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.
510+
* For example, if Amazon Chime is disabled.</p>
511+
* @public
512+
*/
513+
State?: string;
514+
515+
/**
516+
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
517+
* @public
518+
*/
519+
StateReason?: string;
481520
}
482521

483522
/**
@@ -664,6 +703,19 @@ export interface SlackChannelConfiguration {
664703
* @public
665704
*/
666705
Tags?: Tag[];
706+
707+
/**
708+
* <p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.
709+
* For example, if Amazon Chime is disabled.</p>
710+
* @public
711+
*/
712+
State?: string;
713+
714+
/**
715+
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
716+
* @public
717+
*/
718+
StateReason?: string;
667719
}
668720

669721
/**
@@ -1275,6 +1327,19 @@ export interface SlackWorkspace {
12751327
* @public
12761328
*/
12771329
SlackTeamName: string | undefined;
1330+
1331+
/**
1332+
* <p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.
1333+
* For example, if Amazon Chime is disabled.</p>
1334+
* @public
1335+
*/
1336+
State?: string;
1337+
1338+
/**
1339+
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
1340+
* @public
1341+
*/
1342+
StateReason?: string;
12781343
}
12791344

12801345
/**

codegen/sdk-codegen/aws-models/chatbot.json

+69
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@
112112
"traits": {
113113
"smithy.api#documentation": "<p>A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.</p>"
114114
}
115+
},
116+
"State": {
117+
"target": "com.amazonaws.chatbot#ResourceState",
118+
"traits": {
119+
"smithy.api#documentation": "<p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.</p>"
120+
}
121+
},
122+
"StateReason": {
123+
"target": "com.amazonaws.chatbot#String",
124+
"traits": {
125+
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
126+
}
115127
}
116128
},
117129
"traits": {
@@ -177,6 +189,18 @@
177189
"traits": {
178190
"smithy.api#documentation": "<p>The name of the Microsoft Teams Team.</p>"
179191
}
192+
},
193+
"State": {
194+
"target": "com.amazonaws.chatbot#ResourceState",
195+
"traits": {
196+
"smithy.api#documentation": "<p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.</p>"
197+
}
198+
},
199+
"StateReason": {
200+
"target": "com.amazonaws.chatbot#String",
201+
"traits": {
202+
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
203+
}
180204
}
181205
},
182206
"traits": {
@@ -2015,6 +2039,12 @@
20152039
"smithy.api#httpError": 404
20162040
}
20172041
},
2042+
"com.amazonaws.chatbot#ResourceState": {
2043+
"type": "string",
2044+
"traits": {
2045+
"smithy.api#pattern": "^(ENABLED|DISABLED)$"
2046+
}
2047+
},
20182048
"com.amazonaws.chatbot#ServiceUnavailableException": {
20192049
"type": "structure",
20202050
"members": {
@@ -2109,6 +2139,18 @@
21092139
"traits": {
21102140
"smithy.api#documentation": "<p>A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.</p>"
21112141
}
2142+
},
2143+
"State": {
2144+
"target": "com.amazonaws.chatbot#ResourceState",
2145+
"traits": {
2146+
"smithy.api#documentation": "<p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.</p>"
2147+
}
2148+
},
2149+
"StateReason": {
2150+
"target": "com.amazonaws.chatbot#String",
2151+
"traits": {
2152+
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
2153+
}
21122154
}
21132155
},
21142156
"traits": {
@@ -2234,6 +2276,18 @@
22342276
"smithy.api#documentation": "<p>The name of the Slack workspace.</p>",
22352277
"smithy.api#required": {}
22362278
}
2279+
},
2280+
"State": {
2281+
"target": "com.amazonaws.chatbot#ResourceState",
2282+
"traits": {
2283+
"smithy.api#documentation": "<p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.</p>"
2284+
}
2285+
},
2286+
"StateReason": {
2287+
"target": "com.amazonaws.chatbot#String",
2288+
"traits": {
2289+
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
2290+
}
22372291
}
22382292
},
22392293
"traits": {
@@ -2252,6 +2306,9 @@
22522306
"target": "com.amazonaws.chatbot#Arn"
22532307
}
22542308
},
2309+
"com.amazonaws.chatbot#String": {
2310+
"type": "string"
2311+
},
22552312
"com.amazonaws.chatbot#Tag": {
22562313
"type": "structure",
22572314
"members": {
@@ -2485,6 +2542,18 @@
24852542
"traits": {
24862543
"smithy.api#documentation": "<p>A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.</p>"
24872544
}
2545+
},
2546+
"State": {
2547+
"target": "com.amazonaws.chatbot#ResourceState",
2548+
"traits": {
2549+
"smithy.api#documentation": "<p>Either <code>ENABLED</code> or <code>DISABLED</code>. The resource returns <code>DISABLED</code> if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.</p>"
2550+
}
2551+
},
2552+
"StateReason": {
2553+
"target": "com.amazonaws.chatbot#String",
2554+
"traits": {
2555+
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
2556+
}
24882557
}
24892558
},
24902559
"traits": {

0 commit comments

Comments
 (0)