-
Notifications
You must be signed in to change notification settings - Fork 546
/
DescribeIpRestrictionCommand.ts
111 lines (108 loc) · 4.34 KB
/
DescribeIpRestrictionCommand.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeIpRestrictionRequest, DescribeIpRestrictionResponse } from "../models/models_3";
import { de_DescribeIpRestrictionCommand, se_DescribeIpRestrictionCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";
/**
* @public
*/
export { __MetadataBearer, $Command };
/**
* @public
*
* The input for {@link DescribeIpRestrictionCommand}.
*/
export interface DescribeIpRestrictionCommandInput extends DescribeIpRestrictionRequest {}
/**
* @public
*
* The output of {@link DescribeIpRestrictionCommand}.
*/
export interface DescribeIpRestrictionCommandOutput extends DescribeIpRestrictionResponse, __MetadataBearer {}
/**
* <p>Provides a summary and status of IP rules.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { QuickSightClient, DescribeIpRestrictionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import
* // const { QuickSightClient, DescribeIpRestrictionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import
* const client = new QuickSightClient(config);
* const input = { // DescribeIpRestrictionRequest
* AwsAccountId: "STRING_VALUE", // required
* };
* const command = new DescribeIpRestrictionCommand(input);
* const response = await client.send(command);
* // { // DescribeIpRestrictionResponse
* // AwsAccountId: "STRING_VALUE",
* // IpRestrictionRuleMap: { // IpRestrictionRuleMap
* // "<keys>": "STRING_VALUE",
* // },
* // VpcIdRestrictionRuleMap: { // VpcIdRestrictionRuleMap
* // "<keys>": "STRING_VALUE",
* // },
* // VpcEndpointIdRestrictionRuleMap: { // VpcEndpointIdRestrictionRuleMap
* // "<keys>": "STRING_VALUE",
* // },
* // Enabled: true || false,
* // RequestId: "STRING_VALUE",
* // Status: Number("int"),
* // };
*
* ```
*
* @param DescribeIpRestrictionCommandInput - {@link DescribeIpRestrictionCommandInput}
* @returns {@link DescribeIpRestrictionCommandOutput}
* @see {@link DescribeIpRestrictionCommandInput} for command's `input` shape.
* @see {@link DescribeIpRestrictionCommandOutput} for command's `response` shape.
* @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You don't have access to this item. The provided credentials couldn't be
* validated. You might not be authorized to carry out the request. Make sure that your
* account is authorized to use the Amazon QuickSight service, that your policies have the
* correct permissions, and that you are using the correct credentials.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal failure occurred.</p>
*
* @throws {@link InvalidParameterValueException} (client fault)
* <p>One or more parameters has a value that isn't valid.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>One or more resources can't be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Access is throttled.</p>
*
* @throws {@link QuickSightServiceException}
* <p>Base exception class for all service exceptions from QuickSight service.</p>
*
* @public
*/
export class DescribeIpRestrictionCommand extends $Command
.classBuilder<
DescribeIpRestrictionCommandInput,
DescribeIpRestrictionCommandOutput,
QuickSightClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.m(function (this: any, Command: any, cs: any, config: QuickSightClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("QuickSight_20180401", "DescribeIpRestriction", {})
.n("QuickSightClient", "DescribeIpRestrictionCommand")
.f(void 0, void 0)
.ser(se_DescribeIpRestrictionCommand)
.de(de_DescribeIpRestrictionCommand)
.build() {}