@pulumi/aws 4.36.0-alpha.1643043296 → 4.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apigateway/getExport.d.ts +99 -0
- package/apigateway/getExport.js +42 -0
- package/apigateway/getExport.js.map +1 -0
- package/apigateway/getSdk.d.ts +96 -0
- package/apigateway/getSdk.js +47 -0
- package/apigateway/getSdk.js.map +1 -0
- package/apigateway/index.d.ts +2 -0
- package/apigateway/index.js +2 -0
- package/apigateway/index.js.map +1 -1
- package/apigateway/stage.d.ts +10 -2
- package/apigateway/stage.js +2 -0
- package/apigateway/stage.js.map +1 -1
- package/apigatewayv2/getExport.d.ts +96 -0
- package/apigatewayv2/getExport.js +45 -0
- package/apigatewayv2/getExport.js.map +1 -0
- package/apigatewayv2/index.d.ts +1 -0
- package/apigatewayv2/index.js +1 -0
- package/apigatewayv2/index.js.map +1 -1
- package/cognito/getUserPoolClient.d.ts +10 -0
- package/cognito/getUserPoolClient.js +10 -0
- package/cognito/getUserPoolClient.js.map +1 -1
- package/connect/getContactFlowModule.d.ts +116 -0
- package/connect/getContactFlowModule.js +56 -0
- package/connect/getContactFlowModule.js.map +1 -0
- package/connect/getPrompt.d.ts +65 -0
- package/connect/getPrompt.js +42 -0
- package/connect/getPrompt.js.map +1 -0
- package/connect/getQuickConnect.d.ts +112 -0
- package/connect/getQuickConnect.js +56 -0
- package/connect/getQuickConnect.js.map +1 -0
- package/connect/index.d.ts +5 -0
- package/connect/index.js +13 -0
- package/connect/index.js.map +1 -1
- package/connect/queue.d.ts +252 -0
- package/connect/queue.js +146 -0
- package/connect/queue.js.map +1 -0
- package/connect/securityProfile.d.ts +178 -0
- package/connect/securityProfile.js +101 -0
- package/connect/securityProfile.js.map +1 -0
- package/dataexchange/dataSet.d.ts +139 -0
- package/dataexchange/dataSet.js +90 -0
- package/dataexchange/dataSet.js.map +1 -0
- package/dataexchange/index.d.ts +1 -0
- package/dataexchange/index.js +33 -0
- package/dataexchange/index.js.map +1 -0
- package/datapipeline/getPipeline.d.ts +71 -0
- package/datapipeline/getPipeline.js +39 -0
- package/datapipeline/getPipeline.js.map +1 -0
- package/datapipeline/getPipelineDefinition.d.ts +66 -0
- package/datapipeline/getPipelineDefinition.js +39 -0
- package/datapipeline/getPipelineDefinition.js.map +1 -0
- package/datapipeline/index.d.ts +3 -0
- package/datapipeline/index.js +7 -0
- package/datapipeline/index.js.map +1 -1
- package/datapipeline/pipeline.d.ts +1 -1
- package/datapipeline/pipeline.js +1 -1
- package/datapipeline/pipelineDefinition.d.ts +162 -0
- package/datapipeline/pipelineDefinition.js +140 -0
- package/datapipeline/pipelineDefinition.js.map +1 -0
- package/devicefarm/index.d.ts +1 -0
- package/devicefarm/index.js +5 -0
- package/devicefarm/index.js.map +1 -1
- package/devicefarm/testGridProject.d.ts +130 -0
- package/devicefarm/testGridProject.js +74 -0
- package/devicefarm/testGridProject.js.map +1 -0
- package/ec2/networkInterface.d.ts +86 -40
- package/ec2/networkInterface.js +24 -0
- package/ec2/networkInterface.js.map +1 -1
- package/ec2/vpcEndpointSubnetAssociation.d.ts +8 -0
- package/ec2/vpcEndpointSubnetAssociation.js +8 -0
- package/ec2/vpcEndpointSubnetAssociation.js.map +1 -1
- package/ec2/vpcPeeringConnection.d.ts +4 -4
- package/ec2/vpcPeeringConnection.js +1 -1
- package/ecs/cluster.d.ts +2 -41
- package/ecs/cluster.js +0 -39
- package/ecs/cluster.js.map +1 -1
- package/ecs/clusterCapacityProviders.d.ts +82 -0
- package/ecs/clusterCapacityProviders.js +67 -0
- package/ecs/clusterCapacityProviders.js.map +1 -0
- package/ecs/index.d.ts +1 -0
- package/ecs/index.js +5 -0
- package/ecs/index.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +75 -78
- package/elasticache/replicationGroup.js +2 -0
- package/elasticache/replicationGroup.js.map +1 -1
- package/imagebuilder/distributionConfiguration.d.ts +3 -3
- package/imagebuilder/getComponents.d.ts +67 -0
- package/imagebuilder/getComponents.js +44 -0
- package/imagebuilder/getComponents.js.map +1 -0
- package/imagebuilder/getDistributionConfigurations.d.ts +57 -0
- package/imagebuilder/getDistributionConfigurations.js +42 -0
- package/imagebuilder/getDistributionConfigurations.js.map +1 -0
- package/imagebuilder/getInfrastructureConfigurations.d.ts +57 -0
- package/imagebuilder/getInfrastructureConfigurations.js +42 -0
- package/imagebuilder/getInfrastructureConfigurations.js.map +1 -0
- package/imagebuilder/index.d.ts +3 -0
- package/imagebuilder/index.js +3 -0
- package/imagebuilder/index.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +6 -4
- package/index.js.map +1 -1
- package/iot/roleAlias.d.ts +3 -3
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/s3/bucketNotification.d.ts +24 -12
- package/s3/bucketNotification.js +2 -0
- package/s3/bucketNotification.js.map +1 -1
- package/sagemaker/index.d.ts +1 -0
- package/sagemaker/index.js +5 -0
- package/sagemaker/index.js.map +1 -1
- package/sagemaker/project.d.ts +152 -0
- package/sagemaker/project.js +96 -0
- package/sagemaker/project.js.map +1 -0
- package/secretsmanager/secret.d.ts +12 -3
- package/secretsmanager/secret.js.map +1 -1
- package/types/input.d.ts +258 -23
- package/types/output.d.ts +301 -17
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides an Amazon Connect Queue resource. For more information see
|
|
5
|
+
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
|
|
6
|
+
*
|
|
7
|
+
* > **NOTE:** Due to The behaviour of Amazon Connect you cannot delete queues.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
* ### Basic
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as aws from "@pulumi/aws";
|
|
15
|
+
*
|
|
16
|
+
* const test = new aws.connect.Queue("test", {
|
|
17
|
+
* description: "Example Description",
|
|
18
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
19
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
20
|
+
* tags: {
|
|
21
|
+
* Name: "Example Queue",
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
* ### With Quick Connect IDs
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as aws from "@pulumi/aws";
|
|
30
|
+
*
|
|
31
|
+
* const test = new aws.connect.Queue("test", {
|
|
32
|
+
* description: "Example Description",
|
|
33
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
34
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
35
|
+
* quickConnectIds: ["12345678-abcd-1234-abcd-123456789012"],
|
|
36
|
+
* tags: {
|
|
37
|
+
* Name: "Example Queue with Quick Connect IDs",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
* ### With Outbound Caller Config
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as aws from "@pulumi/aws";
|
|
46
|
+
*
|
|
47
|
+
* const test = new aws.connect.Queue("test", {
|
|
48
|
+
* description: "Example Description",
|
|
49
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
50
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
51
|
+
* outboundCallerConfig: {
|
|
52
|
+
* outboundCallerIdName: "example",
|
|
53
|
+
* outboundCallerIdNumberId: "12345678-abcd-1234-abcd-123456789012",
|
|
54
|
+
* outboundFlowId: "87654321-defg-1234-defg-987654321234",
|
|
55
|
+
* },
|
|
56
|
+
* tags: {
|
|
57
|
+
* Name: "Example Queue with Outbound Caller Config",
|
|
58
|
+
* },
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ## Import
|
|
63
|
+
*
|
|
64
|
+
* Amazon Connect Queues can be imported using the `instance_id` and `queue_id` separated by a colon (`:`), e.g.,
|
|
65
|
+
*
|
|
66
|
+
* ```sh
|
|
67
|
+
* $ pulumi import aws:connect/queue:Queue example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare class Queue extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing Queue resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QueueState, opts?: pulumi.CustomResourceOptions): Queue;
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if the given object is an instance of Queue. This is designed to work even
|
|
83
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
+
*/
|
|
85
|
+
static isInstance(obj: any): obj is Queue;
|
|
86
|
+
/**
|
|
87
|
+
* The Amazon Resource Name (ARN) of the Queue.
|
|
88
|
+
*/
|
|
89
|
+
readonly arn: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Specifies the description of the Queue.
|
|
92
|
+
*/
|
|
93
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies the identifier of the Hours of Operation.
|
|
96
|
+
*/
|
|
97
|
+
readonly hoursOfOperationId: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
100
|
+
*/
|
|
101
|
+
readonly instanceId: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
|
|
104
|
+
*/
|
|
105
|
+
readonly maxContacts: pulumi.Output<number | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the name of the Queue.
|
|
108
|
+
*/
|
|
109
|
+
readonly name: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
|
|
112
|
+
*/
|
|
113
|
+
readonly outboundCallerConfig: pulumi.Output<outputs.connect.QueueOutboundCallerConfig | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* The identifier for the Queue.
|
|
116
|
+
*/
|
|
117
|
+
readonly queueId: pulumi.Output<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
|
|
120
|
+
*/
|
|
121
|
+
readonly quickConnectIds: pulumi.Output<string[] | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
|
|
124
|
+
*/
|
|
125
|
+
readonly status: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Tags to apply to the Queue. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
128
|
+
*/
|
|
129
|
+
readonly tags: pulumi.Output<{
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
} | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
134
|
+
*/
|
|
135
|
+
readonly tagsAll: pulumi.Output<{
|
|
136
|
+
[key: string]: string;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Create a Queue resource with the given unique name, arguments, and options.
|
|
140
|
+
*
|
|
141
|
+
* @param name The _unique_ name of the resource.
|
|
142
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
143
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
144
|
+
*/
|
|
145
|
+
constructor(name: string, args: QueueArgs, opts?: pulumi.CustomResourceOptions);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Input properties used for looking up and filtering Queue resources.
|
|
149
|
+
*/
|
|
150
|
+
export interface QueueState {
|
|
151
|
+
/**
|
|
152
|
+
* The Amazon Resource Name (ARN) of the Queue.
|
|
153
|
+
*/
|
|
154
|
+
arn?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Specifies the description of the Queue.
|
|
157
|
+
*/
|
|
158
|
+
description?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Specifies the identifier of the Hours of Operation.
|
|
161
|
+
*/
|
|
162
|
+
hoursOfOperationId?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
165
|
+
*/
|
|
166
|
+
instanceId?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
|
|
169
|
+
*/
|
|
170
|
+
maxContacts?: pulumi.Input<number>;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies the name of the Queue.
|
|
173
|
+
*/
|
|
174
|
+
name?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
|
|
177
|
+
*/
|
|
178
|
+
outboundCallerConfig?: pulumi.Input<inputs.connect.QueueOutboundCallerConfig>;
|
|
179
|
+
/**
|
|
180
|
+
* The identifier for the Queue.
|
|
181
|
+
*/
|
|
182
|
+
queueId?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
|
|
185
|
+
*/
|
|
186
|
+
quickConnectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
187
|
+
/**
|
|
188
|
+
* Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
|
|
189
|
+
*/
|
|
190
|
+
status?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Tags to apply to the Queue. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
193
|
+
*/
|
|
194
|
+
tags?: pulumi.Input<{
|
|
195
|
+
[key: string]: pulumi.Input<string>;
|
|
196
|
+
}>;
|
|
197
|
+
/**
|
|
198
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
199
|
+
*/
|
|
200
|
+
tagsAll?: pulumi.Input<{
|
|
201
|
+
[key: string]: pulumi.Input<string>;
|
|
202
|
+
}>;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The set of arguments for constructing a Queue resource.
|
|
206
|
+
*/
|
|
207
|
+
export interface QueueArgs {
|
|
208
|
+
/**
|
|
209
|
+
* Specifies the description of the Queue.
|
|
210
|
+
*/
|
|
211
|
+
description?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Specifies the identifier of the Hours of Operation.
|
|
214
|
+
*/
|
|
215
|
+
hoursOfOperationId: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
218
|
+
*/
|
|
219
|
+
instanceId: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
|
|
222
|
+
*/
|
|
223
|
+
maxContacts?: pulumi.Input<number>;
|
|
224
|
+
/**
|
|
225
|
+
* Specifies the name of the Queue.
|
|
226
|
+
*/
|
|
227
|
+
name?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
|
|
230
|
+
*/
|
|
231
|
+
outboundCallerConfig?: pulumi.Input<inputs.connect.QueueOutboundCallerConfig>;
|
|
232
|
+
/**
|
|
233
|
+
* Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
|
|
234
|
+
*/
|
|
235
|
+
quickConnectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
236
|
+
/**
|
|
237
|
+
* Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
|
|
238
|
+
*/
|
|
239
|
+
status?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Tags to apply to the Queue. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
242
|
+
*/
|
|
243
|
+
tags?: pulumi.Input<{
|
|
244
|
+
[key: string]: pulumi.Input<string>;
|
|
245
|
+
}>;
|
|
246
|
+
/**
|
|
247
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
248
|
+
*/
|
|
249
|
+
tagsAll?: pulumi.Input<{
|
|
250
|
+
[key: string]: pulumi.Input<string>;
|
|
251
|
+
}>;
|
|
252
|
+
}
|
package/connect/queue.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Queue = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Amazon Connect Queue resource. For more information see
|
|
10
|
+
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
|
|
11
|
+
*
|
|
12
|
+
* > **NOTE:** Due to The behaviour of Amazon Connect you cannot delete queues.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
* ### Basic
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const test = new aws.connect.Queue("test", {
|
|
22
|
+
* description: "Example Description",
|
|
23
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
24
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
25
|
+
* tags: {
|
|
26
|
+
* Name: "Example Queue",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
* ### With Quick Connect IDs
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as aws from "@pulumi/aws";
|
|
35
|
+
*
|
|
36
|
+
* const test = new aws.connect.Queue("test", {
|
|
37
|
+
* description: "Example Description",
|
|
38
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
39
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
40
|
+
* quickConnectIds: ["12345678-abcd-1234-abcd-123456789012"],
|
|
41
|
+
* tags: {
|
|
42
|
+
* Name: "Example Queue with Quick Connect IDs",
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
* ### With Outbound Caller Config
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as aws from "@pulumi/aws";
|
|
51
|
+
*
|
|
52
|
+
* const test = new aws.connect.Queue("test", {
|
|
53
|
+
* description: "Example Description",
|
|
54
|
+
* hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
|
|
55
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
56
|
+
* outboundCallerConfig: {
|
|
57
|
+
* outboundCallerIdName: "example",
|
|
58
|
+
* outboundCallerIdNumberId: "12345678-abcd-1234-abcd-123456789012",
|
|
59
|
+
* outboundFlowId: "87654321-defg-1234-defg-987654321234",
|
|
60
|
+
* },
|
|
61
|
+
* tags: {
|
|
62
|
+
* Name: "Example Queue with Outbound Caller Config",
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ## Import
|
|
68
|
+
*
|
|
69
|
+
* Amazon Connect Queues can be imported using the `instance_id` and `queue_id` separated by a colon (`:`), e.g.,
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ pulumi import aws:connect/queue:Queue example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
class Queue extends pulumi.CustomResource {
|
|
76
|
+
constructor(name, argsOrState, opts) {
|
|
77
|
+
let inputs = {};
|
|
78
|
+
opts = opts || {};
|
|
79
|
+
if (opts.id) {
|
|
80
|
+
const state = argsOrState;
|
|
81
|
+
inputs["arn"] = state ? state.arn : undefined;
|
|
82
|
+
inputs["description"] = state ? state.description : undefined;
|
|
83
|
+
inputs["hoursOfOperationId"] = state ? state.hoursOfOperationId : undefined;
|
|
84
|
+
inputs["instanceId"] = state ? state.instanceId : undefined;
|
|
85
|
+
inputs["maxContacts"] = state ? state.maxContacts : undefined;
|
|
86
|
+
inputs["name"] = state ? state.name : undefined;
|
|
87
|
+
inputs["outboundCallerConfig"] = state ? state.outboundCallerConfig : undefined;
|
|
88
|
+
inputs["queueId"] = state ? state.queueId : undefined;
|
|
89
|
+
inputs["quickConnectIds"] = state ? state.quickConnectIds : undefined;
|
|
90
|
+
inputs["status"] = state ? state.status : undefined;
|
|
91
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
92
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const args = argsOrState;
|
|
96
|
+
if ((!args || args.hoursOfOperationId === undefined) && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'hoursOfOperationId'");
|
|
98
|
+
}
|
|
99
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'instanceId'");
|
|
101
|
+
}
|
|
102
|
+
inputs["description"] = args ? args.description : undefined;
|
|
103
|
+
inputs["hoursOfOperationId"] = args ? args.hoursOfOperationId : undefined;
|
|
104
|
+
inputs["instanceId"] = args ? args.instanceId : undefined;
|
|
105
|
+
inputs["maxContacts"] = args ? args.maxContacts : undefined;
|
|
106
|
+
inputs["name"] = args ? args.name : undefined;
|
|
107
|
+
inputs["outboundCallerConfig"] = args ? args.outboundCallerConfig : undefined;
|
|
108
|
+
inputs["quickConnectIds"] = args ? args.quickConnectIds : undefined;
|
|
109
|
+
inputs["status"] = args ? args.status : undefined;
|
|
110
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
111
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
112
|
+
inputs["arn"] = undefined /*out*/;
|
|
113
|
+
inputs["queueId"] = undefined /*out*/;
|
|
114
|
+
}
|
|
115
|
+
if (!opts.version) {
|
|
116
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
117
|
+
}
|
|
118
|
+
super(Queue.__pulumiType, name, inputs, opts);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get an existing Queue resource's state with the given name, ID, and optional extra
|
|
122
|
+
* properties used to qualify the lookup.
|
|
123
|
+
*
|
|
124
|
+
* @param name The _unique_ name of the resulting resource.
|
|
125
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
126
|
+
* @param state Any extra arguments used during the lookup.
|
|
127
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
128
|
+
*/
|
|
129
|
+
static get(name, id, state, opts) {
|
|
130
|
+
return new Queue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Returns true if the given object is an instance of Queue. This is designed to work even
|
|
134
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
135
|
+
*/
|
|
136
|
+
static isInstance(obj) {
|
|
137
|
+
if (obj === undefined || obj === null) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
return obj['__pulumiType'] === Queue.__pulumiType;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.Queue = Queue;
|
|
144
|
+
/** @internal */
|
|
145
|
+
Queue.__pulumiType = 'aws:connect/queue:Queue';
|
|
146
|
+
//# sourceMappingURL=queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../connect/queue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAqF5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAA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GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides an Amazon Connect Security Profile resource. For more information see
|
|
4
|
+
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const example = new aws.connect.SecurityProfile("example", {
|
|
13
|
+
* description: "example description",
|
|
14
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
15
|
+
* permissions: [
|
|
16
|
+
* "BasicAgentAccess",
|
|
17
|
+
* "OutboundCallAccess",
|
|
18
|
+
* ],
|
|
19
|
+
* tags: {
|
|
20
|
+
* Name: "Example Security Profile",
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* Amazon Connect Security Profiles can be imported using the `instance_id` and `security_profile_id` separated by a colon (`:`), e.g.,
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import aws:connect/securityProfile:SecurityProfile example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class SecurityProfile extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing SecurityProfile resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecurityProfileState, opts?: pulumi.CustomResourceOptions): SecurityProfile;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of SecurityProfile. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is SecurityProfile;
|
|
49
|
+
/**
|
|
50
|
+
* The Amazon Resource Name (ARN) of the Security Profile.
|
|
51
|
+
*/
|
|
52
|
+
readonly arn: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the description of the Security Profile.
|
|
55
|
+
*/
|
|
56
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
59
|
+
*/
|
|
60
|
+
readonly instanceId: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the name of the Security Profile.
|
|
63
|
+
*/
|
|
64
|
+
readonly name: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The organization resource identifier for the security profile.
|
|
67
|
+
*/
|
|
68
|
+
readonly organizationResourceId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Specifies a list of permissions assigned to the security profile.
|
|
71
|
+
*/
|
|
72
|
+
readonly permissions: pulumi.Output<string[] | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* The identifier for the Security Profile.
|
|
75
|
+
*/
|
|
76
|
+
readonly securityProfileId: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Tags to apply to the Security Profile. If configured with a provider
|
|
79
|
+
* [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
80
|
+
*/
|
|
81
|
+
readonly tags: pulumi.Output<{
|
|
82
|
+
[key: string]: string;
|
|
83
|
+
} | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
86
|
+
*/
|
|
87
|
+
readonly tagsAll: pulumi.Output<{
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a SecurityProfile resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: SecurityProfileArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering SecurityProfile resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface SecurityProfileState {
|
|
103
|
+
/**
|
|
104
|
+
* The Amazon Resource Name (ARN) of the Security Profile.
|
|
105
|
+
*/
|
|
106
|
+
arn?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the description of the Security Profile.
|
|
109
|
+
*/
|
|
110
|
+
description?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
113
|
+
*/
|
|
114
|
+
instanceId?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies the name of the Security Profile.
|
|
117
|
+
*/
|
|
118
|
+
name?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The organization resource identifier for the security profile.
|
|
121
|
+
*/
|
|
122
|
+
organizationResourceId?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Specifies a list of permissions assigned to the security profile.
|
|
125
|
+
*/
|
|
126
|
+
permissions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
|
+
/**
|
|
128
|
+
* The identifier for the Security Profile.
|
|
129
|
+
*/
|
|
130
|
+
securityProfileId?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Tags to apply to the Security Profile. If configured with a provider
|
|
133
|
+
* [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
134
|
+
*/
|
|
135
|
+
tags?: pulumi.Input<{
|
|
136
|
+
[key: string]: pulumi.Input<string>;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
140
|
+
*/
|
|
141
|
+
tagsAll?: pulumi.Input<{
|
|
142
|
+
[key: string]: pulumi.Input<string>;
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The set of arguments for constructing a SecurityProfile resource.
|
|
147
|
+
*/
|
|
148
|
+
export interface SecurityProfileArgs {
|
|
149
|
+
/**
|
|
150
|
+
* Specifies the description of the Security Profile.
|
|
151
|
+
*/
|
|
152
|
+
description?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Specifies the identifier of the hosting Amazon Connect Instance.
|
|
155
|
+
*/
|
|
156
|
+
instanceId: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Specifies the name of the Security Profile.
|
|
159
|
+
*/
|
|
160
|
+
name?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Specifies a list of permissions assigned to the security profile.
|
|
163
|
+
*/
|
|
164
|
+
permissions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Tags to apply to the Security Profile. If configured with a provider
|
|
167
|
+
* [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
168
|
+
*/
|
|
169
|
+
tags?: pulumi.Input<{
|
|
170
|
+
[key: string]: pulumi.Input<string>;
|
|
171
|
+
}>;
|
|
172
|
+
/**
|
|
173
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
174
|
+
*/
|
|
175
|
+
tagsAll?: pulumi.Input<{
|
|
176
|
+
[key: string]: pulumi.Input<string>;
|
|
177
|
+
}>;
|
|
178
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SecurityProfile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Amazon Connect Security Profile resource. For more information see
|
|
10
|
+
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as aws from "@pulumi/aws";
|
|
17
|
+
*
|
|
18
|
+
* const example = new aws.connect.SecurityProfile("example", {
|
|
19
|
+
* description: "example description",
|
|
20
|
+
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
|
|
21
|
+
* permissions: [
|
|
22
|
+
* "BasicAgentAccess",
|
|
23
|
+
* "OutboundCallAccess",
|
|
24
|
+
* ],
|
|
25
|
+
* tags: {
|
|
26
|
+
* Name: "Example Security Profile",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* Amazon Connect Security Profiles can be imported using the `instance_id` and `security_profile_id` separated by a colon (`:`), e.g.,
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import aws:connect/securityProfile:SecurityProfile example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class SecurityProfile extends pulumi.CustomResource {
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let inputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
inputs["arn"] = state ? state.arn : undefined;
|
|
46
|
+
inputs["description"] = state ? state.description : undefined;
|
|
47
|
+
inputs["instanceId"] = state ? state.instanceId : undefined;
|
|
48
|
+
inputs["name"] = state ? state.name : undefined;
|
|
49
|
+
inputs["organizationResourceId"] = state ? state.organizationResourceId : undefined;
|
|
50
|
+
inputs["permissions"] = state ? state.permissions : undefined;
|
|
51
|
+
inputs["securityProfileId"] = state ? state.securityProfileId : undefined;
|
|
52
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
53
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'instanceId'");
|
|
59
|
+
}
|
|
60
|
+
inputs["description"] = args ? args.description : undefined;
|
|
61
|
+
inputs["instanceId"] = args ? args.instanceId : undefined;
|
|
62
|
+
inputs["name"] = args ? args.name : undefined;
|
|
63
|
+
inputs["permissions"] = args ? args.permissions : undefined;
|
|
64
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
65
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
66
|
+
inputs["arn"] = undefined /*out*/;
|
|
67
|
+
inputs["organizationResourceId"] = undefined /*out*/;
|
|
68
|
+
inputs["securityProfileId"] = undefined /*out*/;
|
|
69
|
+
}
|
|
70
|
+
if (!opts.version) {
|
|
71
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
72
|
+
}
|
|
73
|
+
super(SecurityProfile.__pulumiType, name, inputs, opts);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing SecurityProfile resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new SecurityProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of SecurityProfile. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === SecurityProfile.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.SecurityProfile = SecurityProfile;
|
|
99
|
+
/** @internal */
|
|
100
|
+
SecurityProfile.__pulumiType = 'aws:connect/securityProfile:SecurityProfile';
|
|
101
|
+
//# sourceMappingURL=securityProfile.js.map
|