@pulumi/aws 6.82.0-alpha.1748893300 → 6.82.0-alpha.1748962820
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/alb/loadBalancer.d.ts +24 -0
- package/alb/loadBalancer.js +2 -0
- package/alb/loadBalancer.js.map +1 -1
- package/apigateway/domainNameAccessAssociation.d.ts +1 -1
- package/apigateway/domainNameAccessAssociation.js +1 -1
- package/backup/regionSettings.d.ts +18 -14
- package/backup/regionSettings.js +12 -8
- package/backup/regionSettings.js.map +1 -1
- package/budgets/budget.d.ts +9 -0
- package/budgets/budget.js.map +1 -1
- package/cfg/conformancePack.d.ts +6 -0
- package/cfg/conformancePack.js.map +1 -1
- package/cloudwatch/eventTarget.d.ts +6 -0
- package/cloudwatch/eventTarget.js +6 -0
- package/cloudwatch/eventTarget.js.map +1 -1
- package/cloudwatch/metricAlarm.d.ts +9 -0
- package/cloudwatch/metricAlarm.js.map +1 -1
- package/cognito/userPool.d.ts +0 -6
- package/cognito/userPool.js.map +1 -1
- package/connect/getContactFlow.d.ts +4 -0
- package/connect/getContactFlow.js.map +1 -1
- package/connect/getContactFlowModule.d.ts +4 -0
- package/connect/getContactFlowModule.js.map +1 -1
- package/connect/getHoursOfOperation.d.ts +4 -0
- package/connect/getHoursOfOperation.js.map +1 -1
- package/connect/getInstance.d.ts +4 -0
- package/connect/getInstance.js.map +1 -1
- package/connect/getQueue.d.ts +4 -0
- package/connect/getQueue.js.map +1 -1
- package/connect/getQuickConnect.d.ts +4 -0
- package/connect/getQuickConnect.js.map +1 -1
- package/connect/getRoutingProfile.d.ts +4 -0
- package/connect/getRoutingProfile.js.map +1 -1
- package/connect/getSecurityProfile.d.ts +4 -0
- package/connect/getSecurityProfile.js.map +1 -1
- package/connect/getUser.d.ts +4 -0
- package/connect/getUser.js.map +1 -1
- package/connect/getUserHierarchyGroup.d.ts +4 -0
- package/connect/getUserHierarchyGroup.js.map +1 -1
- package/connect/getVocabulary.d.ts +4 -0
- package/connect/getVocabulary.js.map +1 -1
- package/costexplorer/costCategory.d.ts +6 -6
- package/datazone/environmentProfile.d.ts +0 -6
- package/datazone/environmentProfile.js.map +1 -1
- package/directconnect/gatewayAssociation.d.ts +12 -0
- package/directconnect/gatewayAssociation.js.map +1 -1
- package/dms/s3endpoint.d.ts +6 -6
- package/docdb/cluster.d.ts +9 -0
- package/docdb/cluster.js.map +1 -1
- package/docdb/elasticCluster.d.ts +9 -0
- package/docdb/elasticCluster.js.map +1 -1
- package/dynamodb/table.d.ts +3 -3
- package/dynamodb/tableItem.d.ts +6 -0
- package/dynamodb/tableItem.js.map +1 -1
- package/dynamodb/tableReplica.d.ts +3 -3
- package/ebs/volume.d.ts +6 -0
- package/ebs/volume.js.map +1 -1
- package/ec2/flowLog.d.ts +6 -0
- package/ec2/flowLog.js.map +1 -1
- package/ec2/routeTableAssociation.d.ts +6 -0
- package/ec2/routeTableAssociation.js.map +1 -1
- package/ec2/vpcPeeringConnection.d.ts +5 -0
- package/ec2/vpcPeeringConnection.js +5 -0
- package/ec2/vpcPeeringConnection.js.map +1 -1
- package/ecs/taskDefinition.d.ts +6 -0
- package/ecs/taskDefinition.js.map +1 -1
- package/elastictranscoder/pipeline.d.ts +6 -0
- package/elastictranscoder/pipeline.js.map +1 -1
- package/elastictranscoder/preset.d.ts +6 -0
- package/elastictranscoder/preset.js.map +1 -1
- package/glue/catalogTable.d.ts +3 -3
- package/glue/crawler.d.ts +6 -0
- package/glue/crawler.js.map +1 -1
- package/guardduty/organizationConfiguration.d.ts +6 -0
- package/guardduty/organizationConfiguration.js.map +1 -1
- package/identitystore/user.d.ts +6 -0
- package/identitystore/user.js.map +1 -1
- package/imagebuilder/component.d.ts +3 -3
- package/imagebuilder/containerRecipe.d.ts +3 -3
- package/imagebuilder/imageRecipe.d.ts +3 -3
- package/index.d.ts +2 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/kendra/experience.d.ts +6 -0
- package/kendra/experience.js.map +1 -1
- package/keyspaces/keyspace.d.ts +0 -6
- package/keyspaces/keyspace.js.map +1 -1
- package/lb/loadBalancer.d.ts +24 -0
- package/lb/loadBalancer.js +2 -0
- package/lb/loadBalancer.js.map +1 -1
- package/lightsail/containerService.d.ts +3 -0
- package/lightsail/containerService.js +3 -0
- package/lightsail/containerService.js.map +1 -1
- package/mskconnect/customPlugin.d.ts +0 -6
- package/mskconnect/customPlugin.js.map +1 -1
- package/networkmonitor/probe.d.ts +0 -6
- package/networkmonitor/probe.js.map +1 -1
- package/notifications/channelAssociation.d.ts +93 -0
- package/notifications/channelAssociation.js +90 -0
- package/notifications/channelAssociation.js.map +1 -0
- package/notifications/contactsEmailContact.d.ts +150 -0
- package/notifications/contactsEmailContact.js +88 -0
- package/notifications/contactsEmailContact.js.map +1 -0
- package/notifications/eventRule.d.ts +151 -0
- package/notifications/eventRule.js +112 -0
- package/notifications/eventRule.js.map +1 -0
- package/notifications/index.d.ts +15 -0
- package/notifications/index.js +42 -0
- package/notifications/index.js.map +1 -0
- package/notifications/notificationConfiguration.d.ts +186 -0
- package/notifications/notificationConfiguration.js +108 -0
- package/notifications/notificationConfiguration.js.map +1 -0
- package/notifications/notificationHub.d.ts +75 -0
- package/notifications/notificationHub.js +76 -0
- package/notifications/notificationHub.js.map +1 -0
- package/package.json +2 -2
- package/quicksight/accountSettings.d.ts +107 -0
- package/quicksight/accountSettings.js +85 -0
- package/quicksight/accountSettings.js.map +1 -0
- package/quicksight/accountSubscription.d.ts +9 -9
- package/quicksight/dataSet.d.ts +6 -6
- package/quicksight/dataSource.d.ts +1 -1
- package/quicksight/dataSource.js +1 -1
- package/quicksight/index.d.ts +3 -0
- package/quicksight/index.js +6 -1
- package/quicksight/index.js.map +1 -1
- package/rds/cluster.d.ts +18 -0
- package/rds/cluster.js.map +1 -1
- package/rds/clusterActivityStream.d.ts +9 -0
- package/rds/clusterActivityStream.js.map +1 -1
- package/rds/clusterEndpoint.d.ts +9 -0
- package/rds/clusterEndpoint.js.map +1 -1
- package/rds/clusterInstance.d.ts +9 -0
- package/rds/clusterInstance.js.map +1 -1
- package/rds/getSnapshot.d.ts +4 -0
- package/rds/getSnapshot.js.map +1 -1
- package/rds/instance.d.ts +9 -0
- package/rds/instance.js.map +1 -1
- package/rds/integration.d.ts +6 -0
- package/rds/integration.js.map +1 -1
- package/rds/shardGroup.d.ts +6 -0
- package/rds/shardGroup.js.map +1 -1
- package/redshift/cluster.d.ts +9 -0
- package/redshift/cluster.js.map +1 -1
- package/redshift/integration.d.ts +6 -0
- package/redshift/integration.js.map +1 -1
- package/route53domains/domain.d.ts +6 -0
- package/route53domains/domain.js.map +1 -1
- package/route53domains/registeredDomain.d.ts +6 -0
- package/route53domains/registeredDomain.js.map +1 -1
- package/route53recoveryreadiness/recoveryGroup.d.ts +3 -3
- package/s3/bucketObject.d.ts +6 -0
- package/s3/bucketObject.js.map +1 -1
- package/s3/bucketObjectv2.d.ts +6 -0
- package/s3/bucketObjectv2.js.map +1 -1
- package/ses/configurationSet.d.ts +3 -3
- package/shield/getProtection.d.ts +4 -0
- package/shield/getProtection.js.map +1 -1
- package/ssmcontacts/contact.d.ts +2 -0
- package/ssmcontacts/contact.js +2 -0
- package/ssmcontacts/contact.js.map +1 -1
- package/ssmcontacts/contactChannel.d.ts +2 -0
- package/ssmcontacts/contactChannel.js +2 -0
- package/ssmcontacts/contactChannel.js.map +1 -1
- package/ssmincidents/replicationSet.d.ts +54 -0
- package/ssmincidents/replicationSet.js.map +1 -1
- package/ssmincidents/responsePlan.d.ts +65 -0
- package/ssmincidents/responsePlan.js +2 -0
- package/ssmincidents/responsePlan.js.map +1 -1
- package/storagegateway/gateway.d.ts +6 -0
- package/storagegateway/gateway.js.map +1 -1
- package/types/input.d.ts +102 -6
- package/types/input.js.map +1 -1
- package/types/output.d.ts +113 -6
- package/types/output.js.map +1 -1
- package/verifiedpermissions/getPolicyStore.d.ts +6 -0
- package/verifiedpermissions/getPolicyStore.js.map +1 -1
- package/verifiedpermissions/policyStore.d.ts +34 -0
- package/verifiedpermissions/policyStore.js +4 -0
- package/verifiedpermissions/policyStore.js.map +1 -1
- package/vpc/securityGroupEgressRule.d.ts +6 -0
- package/vpc/securityGroupEgressRule.js.map +1 -1
- package/workspaces/index.d.ts +9 -0
- package/workspaces/index.js +16 -1
- package/workspaces/index.js.map +1 -1
- package/workspaces/webBrowserSettings.d.ts +190 -0
- package/workspaces/webBrowserSettings.js +120 -0
- package/workspaces/webBrowserSettings.js.map +1 -0
- package/workspaces/webNetworkSettings.d.ts +181 -0
- package/workspaces/webNetworkSettings.js +123 -0
- package/workspaces/webNetworkSettings.js.map +1 -0
- package/workspaces/webUserSettings.d.ts +342 -0
- package/workspaces/webUserSettings.js +192 -0
- package/workspaces/webUserSettings.js.map +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
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.ChannelAssociation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing an AWS User Notifications Channel Association. This resource associates a channel (such as an email contact) with a notification configuration.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.notifications.NotificationConfiguration("example", {
|
|
20
|
+
* name: "example-notification-config",
|
|
21
|
+
* description: "Example notification configuration",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleContactsEmailContact = new aws.notifications.ContactsEmailContact("example", {
|
|
24
|
+
* name: "example-contact",
|
|
25
|
+
* emailAddress: "example@example.com",
|
|
26
|
+
* });
|
|
27
|
+
* const exampleChannelAssociation = new aws.notifications.ChannelAssociation("example", {
|
|
28
|
+
* arn: exampleContactsEmailContact.arn,
|
|
29
|
+
* notificationConfigurationArn: example.arn,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* Using `pulumi import`, import User Notifications Channel Association using the `notification_configuration_arn,channel_arn` format. For example:
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import aws:notifications/channelAssociation:ChannelAssociation example arn:aws:notifications:us-west-2:123456789012:configuration:example-notification-config,arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class ChannelAssociation extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing ChannelAssociation resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new ChannelAssociation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of ChannelAssociation. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === ChannelAssociation.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
constructor(name, argsOrState, opts) {
|
|
65
|
+
let resourceInputs = {};
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
if (opts.id) {
|
|
68
|
+
const state = argsOrState;
|
|
69
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
70
|
+
resourceInputs["notificationConfigurationArn"] = state ? state.notificationConfigurationArn : undefined;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if ((!args || args.arn === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'arn'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.notificationConfigurationArn === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'notificationConfigurationArn'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["arn"] = args ? args.arn : undefined;
|
|
81
|
+
resourceInputs["notificationConfigurationArn"] = args ? args.notificationConfigurationArn : undefined;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(ChannelAssociation.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.ChannelAssociation = ChannelAssociation;
|
|
88
|
+
/** @internal */
|
|
89
|
+
ChannelAssociation.__pulumiType = 'aws:notifications/channelAssociation:ChannelAssociation';
|
|
90
|
+
//# sourceMappingURL=channelAssociation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelAssociation.js","sourceRoot":"","sources":["../../notifications/channelAssociation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA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CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;SACzG;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAjEL,gDAkEC;AApDG,gBAAgB;AACO,+BAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource for managing AWS User Notifications Contacts Email Contact.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### Basic Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const example = new aws.notifications.ContactsEmailContact("example", {
|
|
14
|
+
* name: "example-contact",
|
|
15
|
+
* emailAddress: "example@example.com",
|
|
16
|
+
* tags: {
|
|
17
|
+
* Environment: "Production",
|
|
18
|
+
* },
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Using `pulumi import`, import User Notifications Contacts Email Contact using the `arn`. For example:
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import aws:notifications/contactsEmailContact:ContactsEmailContact example arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class ContactsEmailContact extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing ContactsEmailContact resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContactsEmailContactState, opts?: pulumi.CustomResourceOptions): ContactsEmailContact;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of ContactsEmailContact. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is ContactsEmailContact;
|
|
46
|
+
/**
|
|
47
|
+
* ARN of the Email Contact.
|
|
48
|
+
*/
|
|
49
|
+
readonly arn: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Email address for the contact. Must be between 6 and 254 characters and match an email
|
|
52
|
+
* pattern.
|
|
53
|
+
*/
|
|
54
|
+
readonly emailAddress: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
|
|
57
|
+
* characters, underscores, tildes, periods, and hyphens.
|
|
58
|
+
*
|
|
59
|
+
* The following arguments are optional:
|
|
60
|
+
*/
|
|
61
|
+
readonly name: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Map of tags to assign to the resource. If configured with a provider
|
|
64
|
+
* `defaultTags` configuration block
|
|
65
|
+
* present, tags with matching keys will overwrite those defined at the provider-level.
|
|
66
|
+
*/
|
|
67
|
+
readonly tags: pulumi.Output<{
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
} | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Map of tags assigned to the resource, including those inherited from the provider
|
|
72
|
+
* `defaultTags` configuration block.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated Please use `tags` instead.
|
|
75
|
+
*/
|
|
76
|
+
readonly tagsAll: pulumi.Output<{
|
|
77
|
+
[key: string]: string;
|
|
78
|
+
}>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a ContactsEmailContact resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: ContactsEmailContactArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering ContactsEmailContact resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface ContactsEmailContactState {
|
|
92
|
+
/**
|
|
93
|
+
* ARN of the Email Contact.
|
|
94
|
+
*/
|
|
95
|
+
arn?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Email address for the contact. Must be between 6 and 254 characters and match an email
|
|
98
|
+
* pattern.
|
|
99
|
+
*/
|
|
100
|
+
emailAddress?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
|
|
103
|
+
* characters, underscores, tildes, periods, and hyphens.
|
|
104
|
+
*
|
|
105
|
+
* The following arguments are optional:
|
|
106
|
+
*/
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Map of tags to assign to the resource. If configured with a provider
|
|
110
|
+
* `defaultTags` configuration block
|
|
111
|
+
* present, tags with matching keys will overwrite those defined at the provider-level.
|
|
112
|
+
*/
|
|
113
|
+
tags?: pulumi.Input<{
|
|
114
|
+
[key: string]: pulumi.Input<string>;
|
|
115
|
+
}>;
|
|
116
|
+
/**
|
|
117
|
+
* Map of tags assigned to the resource, including those inherited from the provider
|
|
118
|
+
* `defaultTags` configuration block.
|
|
119
|
+
*
|
|
120
|
+
* @deprecated Please use `tags` instead.
|
|
121
|
+
*/
|
|
122
|
+
tagsAll?: pulumi.Input<{
|
|
123
|
+
[key: string]: pulumi.Input<string>;
|
|
124
|
+
}>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The set of arguments for constructing a ContactsEmailContact resource.
|
|
128
|
+
*/
|
|
129
|
+
export interface ContactsEmailContactArgs {
|
|
130
|
+
/**
|
|
131
|
+
* Email address for the contact. Must be between 6 and 254 characters and match an email
|
|
132
|
+
* pattern.
|
|
133
|
+
*/
|
|
134
|
+
emailAddress: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
|
|
137
|
+
* characters, underscores, tildes, periods, and hyphens.
|
|
138
|
+
*
|
|
139
|
+
* The following arguments are optional:
|
|
140
|
+
*/
|
|
141
|
+
name?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Map of tags to assign to the resource. If configured with a provider
|
|
144
|
+
* `defaultTags` configuration block
|
|
145
|
+
* present, tags with matching keys will overwrite those defined at the provider-level.
|
|
146
|
+
*/
|
|
147
|
+
tags?: pulumi.Input<{
|
|
148
|
+
[key: string]: pulumi.Input<string>;
|
|
149
|
+
}>;
|
|
150
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ContactsEmailContact = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing AWS User Notifications Contacts Email Contact.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.notifications.ContactsEmailContact("example", {
|
|
20
|
+
* name: "example-contact",
|
|
21
|
+
* emailAddress: "example@example.com",
|
|
22
|
+
* tags: {
|
|
23
|
+
* Environment: "Production",
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* Using `pulumi import`, import User Notifications Contacts Email Contact using the `arn`. For example:
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import aws:notifications/contactsEmailContact:ContactsEmailContact example arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class ContactsEmailContact extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing ContactsEmailContact resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new ContactsEmailContact(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of ContactsEmailContact. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === ContactsEmailContact.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
65
|
+
resourceInputs["emailAddress"] = state ? state.emailAddress : undefined;
|
|
66
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
67
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
68
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const args = argsOrState;
|
|
72
|
+
if ((!args || args.emailAddress === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'emailAddress'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["emailAddress"] = args ? args.emailAddress : undefined;
|
|
76
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
78
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
80
|
+
}
|
|
81
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
super(ContactsEmailContact.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.ContactsEmailContact = ContactsEmailContact;
|
|
86
|
+
/** @internal */
|
|
87
|
+
ContactsEmailContact.__pulumiType = 'aws:notifications/contactsEmailContact:ContactsEmailContact';
|
|
88
|
+
//# sourceMappingURL=contactsEmailContact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsEmailContact.js","sourceRoot":"","sources":["../../notifications/contactsEmailContact.ts"],"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+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const example = new aws.notifications.NotificationConfiguration("example", {
|
|
14
|
+
* name: "example",
|
|
15
|
+
* description: "example configuration",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleEventRule = new aws.notifications.EventRule("example", {
|
|
18
|
+
* eventPattern: JSON.stringify({
|
|
19
|
+
* detail: {
|
|
20
|
+
* state: {
|
|
21
|
+
* value: ["ALARM"],
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* }),
|
|
25
|
+
* eventType: "CloudWatch Alarm State Change",
|
|
26
|
+
* notificationConfigurationArn: example.arn,
|
|
27
|
+
* regions: [
|
|
28
|
+
* "us-east-1",
|
|
29
|
+
* "us-west-2",
|
|
30
|
+
* ],
|
|
31
|
+
* source: "aws.cloudwatch",
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* Using `pulumi import`, import User Notifications Event Rule using the `arn`. For example:
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import aws:notifications/eventRule:EventRule example arn:aws:notifications::123456789012:configuration/abc123def456ghi789jkl012mno345/rule/abc123def456ghi789jkl012mno345
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class EventRule extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing EventRule resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EventRuleState, opts?: pulumi.CustomResourceOptions): EventRule;
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of EventRule. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj: any): obj is EventRule;
|
|
59
|
+
/**
|
|
60
|
+
* ARN of the Event Rule.
|
|
61
|
+
*/
|
|
62
|
+
readonly arn: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* JSON string defining the event pattern to match. Maximum length is 4096 characters.
|
|
65
|
+
*/
|
|
66
|
+
readonly eventPattern: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
|
|
69
|
+
*/
|
|
70
|
+
readonly eventType: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
|
|
73
|
+
*/
|
|
74
|
+
readonly notificationConfigurationArn: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
|
|
77
|
+
*/
|
|
78
|
+
readonly regions: pulumi.Output<string[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
|
|
81
|
+
*
|
|
82
|
+
* The following arguments are optional:
|
|
83
|
+
*/
|
|
84
|
+
readonly source: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Create a EventRule resource with the given unique name, arguments, and options.
|
|
87
|
+
*
|
|
88
|
+
* @param name The _unique_ name of the resource.
|
|
89
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
90
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
91
|
+
*/
|
|
92
|
+
constructor(name: string, args: EventRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Input properties used for looking up and filtering EventRule resources.
|
|
96
|
+
*/
|
|
97
|
+
export interface EventRuleState {
|
|
98
|
+
/**
|
|
99
|
+
* ARN of the Event Rule.
|
|
100
|
+
*/
|
|
101
|
+
arn?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* JSON string defining the event pattern to match. Maximum length is 4096 characters.
|
|
104
|
+
*/
|
|
105
|
+
eventPattern?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
|
|
108
|
+
*/
|
|
109
|
+
eventType?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
|
|
112
|
+
*/
|
|
113
|
+
notificationConfigurationArn?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
|
|
116
|
+
*/
|
|
117
|
+
regions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
|
|
120
|
+
*
|
|
121
|
+
* The following arguments are optional:
|
|
122
|
+
*/
|
|
123
|
+
source?: pulumi.Input<string>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a EventRule resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface EventRuleArgs {
|
|
129
|
+
/**
|
|
130
|
+
* JSON string defining the event pattern to match. Maximum length is 4096 characters.
|
|
131
|
+
*/
|
|
132
|
+
eventPattern?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
|
|
135
|
+
*/
|
|
136
|
+
eventType: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
|
|
139
|
+
*/
|
|
140
|
+
notificationConfigurationArn: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
|
|
143
|
+
*/
|
|
144
|
+
regions: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
|
|
147
|
+
*
|
|
148
|
+
* The following arguments are optional:
|
|
149
|
+
*/
|
|
150
|
+
source: pulumi.Input<string>;
|
|
151
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.EventRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing an AWS User Notifications Event Rule.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.notifications.NotificationConfiguration("example", {
|
|
20
|
+
* name: "example",
|
|
21
|
+
* description: "example configuration",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleEventRule = new aws.notifications.EventRule("example", {
|
|
24
|
+
* eventPattern: JSON.stringify({
|
|
25
|
+
* detail: {
|
|
26
|
+
* state: {
|
|
27
|
+
* value: ["ALARM"],
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* }),
|
|
31
|
+
* eventType: "CloudWatch Alarm State Change",
|
|
32
|
+
* notificationConfigurationArn: example.arn,
|
|
33
|
+
* regions: [
|
|
34
|
+
* "us-east-1",
|
|
35
|
+
* "us-west-2",
|
|
36
|
+
* ],
|
|
37
|
+
* source: "aws.cloudwatch",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Using `pulumi import`, import User Notifications Event Rule using the `arn`. For example:
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import aws:notifications/eventRule:EventRule example arn:aws:notifications::123456789012:configuration/abc123def456ghi789jkl012mno345/rule/abc123def456ghi789jkl012mno345
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class EventRule extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing EventRule resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, state, opts) {
|
|
60
|
+
return new EventRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of EventRule. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj) {
|
|
67
|
+
if (obj === undefined || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return obj['__pulumiType'] === EventRule.__pulumiType;
|
|
71
|
+
}
|
|
72
|
+
constructor(name, argsOrState, opts) {
|
|
73
|
+
let resourceInputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState;
|
|
77
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
78
|
+
resourceInputs["eventPattern"] = state ? state.eventPattern : undefined;
|
|
79
|
+
resourceInputs["eventType"] = state ? state.eventType : undefined;
|
|
80
|
+
resourceInputs["notificationConfigurationArn"] = state ? state.notificationConfigurationArn : undefined;
|
|
81
|
+
resourceInputs["regions"] = state ? state.regions : undefined;
|
|
82
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
const args = argsOrState;
|
|
86
|
+
if ((!args || args.eventType === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'eventType'");
|
|
88
|
+
}
|
|
89
|
+
if ((!args || args.notificationConfigurationArn === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'notificationConfigurationArn'");
|
|
91
|
+
}
|
|
92
|
+
if ((!args || args.regions === undefined) && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'regions'");
|
|
94
|
+
}
|
|
95
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
96
|
+
throw new Error("Missing required property 'source'");
|
|
97
|
+
}
|
|
98
|
+
resourceInputs["eventPattern"] = args ? args.eventPattern : undefined;
|
|
99
|
+
resourceInputs["eventType"] = args ? args.eventType : undefined;
|
|
100
|
+
resourceInputs["notificationConfigurationArn"] = args ? args.notificationConfigurationArn : undefined;
|
|
101
|
+
resourceInputs["regions"] = args ? args.regions : undefined;
|
|
102
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
103
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
104
|
+
}
|
|
105
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
|
+
super(EventRule.__pulumiType, name, resourceInputs, opts);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.EventRule = EventRule;
|
|
110
|
+
/** @internal */
|
|
111
|
+
EventRule.__pulumiType = 'aws:notifications/eventRule:EventRule';
|
|
112
|
+
//# sourceMappingURL=eventRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventRule.js","sourceRoot":"","sources":["../../notifications/eventRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAqCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC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AAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAjGL,8BAkGC;AApFG,gBAAgB;AACO,sBAAY,GAAG,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { ChannelAssociationArgs, ChannelAssociationState } from "./channelAssociation";
|
|
2
|
+
export type ChannelAssociation = import("./channelAssociation").ChannelAssociation;
|
|
3
|
+
export declare const ChannelAssociation: typeof import("./channelAssociation").ChannelAssociation;
|
|
4
|
+
export { ContactsEmailContactArgs, ContactsEmailContactState } from "./contactsEmailContact";
|
|
5
|
+
export type ContactsEmailContact = import("./contactsEmailContact").ContactsEmailContact;
|
|
6
|
+
export declare const ContactsEmailContact: typeof import("./contactsEmailContact").ContactsEmailContact;
|
|
7
|
+
export { EventRuleArgs, EventRuleState } from "./eventRule";
|
|
8
|
+
export type EventRule = import("./eventRule").EventRule;
|
|
9
|
+
export declare const EventRule: typeof import("./eventRule").EventRule;
|
|
10
|
+
export { NotificationConfigurationArgs, NotificationConfigurationState } from "./notificationConfiguration";
|
|
11
|
+
export type NotificationConfiguration = import("./notificationConfiguration").NotificationConfiguration;
|
|
12
|
+
export declare const NotificationConfiguration: typeof import("./notificationConfiguration").NotificationConfiguration;
|
|
13
|
+
export { NotificationHubArgs, NotificationHubState } from "./notificationHub";
|
|
14
|
+
export type NotificationHub = import("./notificationHub").NotificationHub;
|
|
15
|
+
export declare const NotificationHub: typeof import("./notificationHub").NotificationHub;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.NotificationHub = exports.NotificationConfiguration = exports.EventRule = exports.ContactsEmailContact = exports.ChannelAssociation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.ChannelAssociation = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["ChannelAssociation"], () => require("./channelAssociation"));
|
|
10
|
+
exports.ContactsEmailContact = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["ContactsEmailContact"], () => require("./contactsEmailContact"));
|
|
12
|
+
exports.EventRule = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["EventRule"], () => require("./eventRule"));
|
|
14
|
+
exports.NotificationConfiguration = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["NotificationConfiguration"], () => require("./notificationConfiguration"));
|
|
16
|
+
exports.NotificationHub = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["NotificationHub"], () => require("./notificationHub"));
|
|
18
|
+
const _module = {
|
|
19
|
+
version: utilities.getVersion(),
|
|
20
|
+
construct: (name, type, urn) => {
|
|
21
|
+
switch (type) {
|
|
22
|
+
case "aws:notifications/channelAssociation:ChannelAssociation":
|
|
23
|
+
return new exports.ChannelAssociation(name, undefined, { urn });
|
|
24
|
+
case "aws:notifications/contactsEmailContact:ContactsEmailContact":
|
|
25
|
+
return new exports.ContactsEmailContact(name, undefined, { urn });
|
|
26
|
+
case "aws:notifications/eventRule:EventRule":
|
|
27
|
+
return new exports.EventRule(name, undefined, { urn });
|
|
28
|
+
case "aws:notifications/notificationConfiguration:NotificationConfiguration":
|
|
29
|
+
return new exports.NotificationConfiguration(name, undefined, { urn });
|
|
30
|
+
case "aws:notifications/notificationHub:NotificationHub":
|
|
31
|
+
return new exports.NotificationHub(name, undefined, { urn });
|
|
32
|
+
default:
|
|
33
|
+
throw new Error(`unknown resource type ${type}`);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
pulumi.runtime.registerResourceModule("aws", "notifications/channelAssociation", _module);
|
|
38
|
+
pulumi.runtime.registerResourceModule("aws", "notifications/contactsEmailContact", _module);
|
|
39
|
+
pulumi.runtime.registerResourceModule("aws", "notifications/eventRule", _module);
|
|
40
|
+
pulumi.runtime.registerResourceModule("aws", "notifications/notificationConfiguration", _module);
|
|
41
|
+
pulumi.runtime.registerResourceModule("aws", "notifications/notificationHub", _module);
|
|
42
|
+
//# sourceMappingURL=index.js.map
|