Skip to content

Commit

Permalink
feat(client-chatbot): Return State and StateReason fields for Chatbot…
Browse files Browse the repository at this point in the history
… Channel Configurations.
  • Loading branch information
awstools committed Sep 26, 2024
1 parent d2c0cef commit 9dfcfe8
Show file tree
Hide file tree
Showing 14 changed files with 158 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export interface CreateChimeWebhookConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export interface CreateSlackChannelConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export interface DescribeChimeWebhookConfigurationsCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export interface DescribeSlackChannelConfigurationsCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export interface DescribeSlackWorkspacesCommandOutput extends DescribeSlackWorks
* // { // SlackWorkspace
* // SlackTeamId: "STRING_VALUE", // required
* // SlackTeamName: "STRING_VALUE", // required
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export interface GetMicrosoftTeamsChannelConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export interface ListMicrosoftTeamsChannelConfigurationsCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export interface ListMicrosoftTeamsConfiguredTeamsCommandOutput
* // TenantId: "STRING_VALUE", // required
* // TeamId: "STRING_VALUE", // required
* // TeamName: "STRING_VALUE",
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export interface UpdateChimeWebhookConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export interface UpdateMicrosoftTeamsChannelConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export interface UpdateSlackChannelConfigurationCommandOutput
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // State: "STRING_VALUE",
* // StateReason: "STRING_VALUE",
* // },
* // };
*
Expand Down
65 changes: 65 additions & 0 deletions clients/client-chatbot/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ export interface ChimeWebhookConfiguration {
* @public
*/
Tags?: Tag[];

/**
* <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.
* For example, if Amazon Chime is disabled.</p>
* @public
*/
State?: string;

/**
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
* @public
*/
StateReason?: string;
}

/**
Expand All @@ -121,6 +134,19 @@ export interface ConfiguredTeam {
* @public
*/
TeamName?: string;

/**
* <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.
* For example, if Amazon Chime is disabled.</p>
* @public
*/
State?: string;

/**
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
* @public
*/
StateReason?: string;
}

/**
Expand Down Expand Up @@ -478,6 +504,19 @@ export interface TeamsChannelConfiguration {
* @public
*/
Tags?: Tag[];

/**
* <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.
* For example, if Amazon Chime is disabled.</p>
* @public
*/
State?: string;

/**
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
* @public
*/
StateReason?: string;
}

/**
Expand Down Expand Up @@ -664,6 +703,19 @@ export interface SlackChannelConfiguration {
* @public
*/
Tags?: Tag[];

/**
* <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.
* For example, if Amazon Chime is disabled.</p>
* @public
*/
State?: string;

/**
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
* @public
*/
StateReason?: string;
}

/**
Expand Down Expand Up @@ -1275,6 +1327,19 @@ export interface SlackWorkspace {
* @public
*/
SlackTeamName: string | undefined;

/**
* <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.
* For example, if Amazon Chime is disabled.</p>
* @public
*/
State?: string;

/**
* <p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>
* @public
*/
StateReason?: string;
}

/**
Expand Down
69 changes: 69 additions & 0 deletions codegen/sdk-codegen/aws-models/chatbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
"traits": {
"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>"
}
},
"State": {
"target": "com.amazonaws.chatbot#ResourceState",
"traits": {
"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>"
}
},
"StateReason": {
"target": "com.amazonaws.chatbot#String",
"traits": {
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -177,6 +189,18 @@
"traits": {
"smithy.api#documentation": "<p>The name of the Microsoft Teams Team.</p>"
}
},
"State": {
"target": "com.amazonaws.chatbot#ResourceState",
"traits": {
"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>"
}
},
"StateReason": {
"target": "com.amazonaws.chatbot#String",
"traits": {
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2015,6 +2039,12 @@
"smithy.api#httpError": 404
}
},
"com.amazonaws.chatbot#ResourceState": {
"type": "string",
"traits": {
"smithy.api#pattern": "^(ENABLED|DISABLED)$"
}
},
"com.amazonaws.chatbot#ServiceUnavailableException": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2109,6 +2139,18 @@
"traits": {
"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>"
}
},
"State": {
"target": "com.amazonaws.chatbot#ResourceState",
"traits": {
"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>"
}
},
"StateReason": {
"target": "com.amazonaws.chatbot#String",
"traits": {
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2234,6 +2276,18 @@
"smithy.api#documentation": "<p>The name of the Slack workspace.</p>",
"smithy.api#required": {}
}
},
"State": {
"target": "com.amazonaws.chatbot#ResourceState",
"traits": {
"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>"
}
},
"StateReason": {
"target": "com.amazonaws.chatbot#String",
"traits": {
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
}
}
},
"traits": {
Expand All @@ -2252,6 +2306,9 @@
"target": "com.amazonaws.chatbot#Arn"
}
},
"com.amazonaws.chatbot#String": {
"type": "string"
},
"com.amazonaws.chatbot#Tag": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2485,6 +2542,18 @@
"traits": {
"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>"
}
},
"State": {
"target": "com.amazonaws.chatbot#ResourceState",
"traits": {
"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>"
}
},
"StateReason": {
"target": "com.amazonaws.chatbot#String",
"traits": {
"smithy.api#documentation": "<p>Provided if State is <code>DISABLED</code>. Provides context as to why the resource is disabled.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 9dfcfe8

Please sign in to comment.