@pulumi/aws 7.17.0-alpha.1770139809 → 7.17.0
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/acm/certificate.d.ts +2 -2
- package/acm/certificate.js +2 -2
- package/acmpca/certificate.d.ts +2 -2
- package/acmpca/certificate.js +2 -2
- package/apigateway/domainName.d.ts +12 -0
- package/apigateway/domainName.js +2 -0
- package/apigateway/domainName.js.map +1 -1
- package/apigatewayv2/domainName.d.ts +12 -0
- package/apigatewayv2/domainName.js +2 -0
- package/apigatewayv2/domainName.js.map +1 -1
- package/apigatewayv2/index.d.ts +3 -0
- package/apigatewayv2/index.js +6 -1
- package/apigatewayv2/index.js.map +1 -1
- package/apigatewayv2/routingRule.d.ts +166 -0
- package/apigatewayv2/routingRule.js +113 -0
- package/apigatewayv2/routingRule.js.map +1 -0
- package/arcregionswitch/getPlan.d.ts +118 -0
- package/arcregionswitch/getPlan.js +56 -0
- package/arcregionswitch/getPlan.js.map +1 -0
- package/arcregionswitch/getRoute53HealthChecks.d.ts +80 -0
- package/arcregionswitch/getRoute53HealthChecks.js +56 -0
- package/arcregionswitch/getRoute53HealthChecks.js.map +1 -0
- package/arcregionswitch/index.d.ts +9 -0
- package/arcregionswitch/index.js +28 -0
- package/arcregionswitch/index.js.map +1 -0
- package/arcregionswitch/plan.d.ts +384 -0
- package/arcregionswitch/plan.js +253 -0
- package/arcregionswitch/plan.js.map +1 -0
- package/autoscaling/group.d.ts +3 -3
- package/bedrock/agentDataSource.d.ts +37 -0
- package/bedrock/agentDataSource.js +37 -0
- package/bedrock/agentDataSource.js.map +1 -1
- package/cleanrooms/collaboration.d.ts +27 -59
- package/cleanrooms/collaboration.js.map +1 -1
- package/cloudfront/anycastIpList.d.ts +150 -0
- package/cloudfront/anycastIpList.js +91 -0
- package/cloudfront/anycastIpList.js.map +1 -0
- package/cloudfront/index.d.ts +3 -0
- package/cloudfront/index.js +6 -1
- package/cloudfront/index.js.map +1 -1
- package/cloudfront/multitenantDistribution.d.ts +65 -0
- package/cloudfront/multitenantDistribution.js +65 -0
- package/cloudfront/multitenantDistribution.js.map +1 -1
- package/codebuild/webhook.d.ts +2 -2
- package/codebuild/webhook.js +2 -2
- package/codepipeline/webhook.d.ts +2 -2
- package/codepipeline/webhook.js +2 -2
- package/docdb/clusterInstance.d.ts +72 -140
- package/docdb/clusterInstance.js +4 -7
- package/docdb/clusterInstance.js.map +1 -1
- package/dynamodb/table.d.ts +92 -3
- package/dynamodb/table.js +83 -0
- package/dynamodb/table.js.map +1 -1
- package/ec2/getVpcIpamPool.d.ts +4 -0
- package/ec2/getVpcIpamPool.js.map +1 -1
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +6 -1
- package/ec2/index.js.map +1 -1
- package/ec2/launchTemplate.d.ts +3 -0
- package/ec2/launchTemplate.js +2 -0
- package/ec2/launchTemplate.js.map +1 -1
- package/ec2/placementGroup.d.ts +3 -3
- package/ec2/securityGroup.d.ts +1 -1
- package/ec2/securityGroup.js +1 -1
- package/ec2/subnet.d.ts +107 -14
- package/ec2/subnet.js +59 -0
- package/ec2/subnet.js.map +1 -1
- package/ec2/vpcIpamPool.d.ts +54 -0
- package/ec2/vpcIpamPool.js +42 -0
- package/ec2/vpcIpamPool.js.map +1 -1
- package/ec2/vpcIpamResourceDiscovery.d.ts +12 -0
- package/ec2/vpcIpamResourceDiscovery.js +2 -0
- package/ec2/vpcIpamResourceDiscovery.js.map +1 -1
- package/ec2/vpcSecurityGroupRulesExclusive.d.ts +93 -0
- package/ec2/vpcSecurityGroupRulesExclusive.js +73 -0
- package/ec2/vpcSecurityGroupRulesExclusive.js.map +1 -0
- package/ec2transitgateway/vpcAttachment.d.ts +0 -18
- package/ec2transitgateway/vpcAttachment.js.map +1 -1
- package/ecr/accountSetting.d.ts +19 -4
- package/ecr/accountSetting.js +13 -1
- package/ecr/accountSetting.js.map +1 -1
- package/eks/addon.d.ts +46 -0
- package/eks/addon.js +46 -0
- package/eks/addon.js.map +1 -1
- package/fsx/windowsFileSystem.d.ts +22 -0
- package/fsx/windowsFileSystem.js +22 -0
- package/fsx/windowsFileSystem.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +10 -6
- package/index.js.map +1 -1
- package/invoicing/invoiceUnit.d.ts +9 -3
- package/invoicing/invoiceUnit.js.map +1 -1
- package/iot/caCertificate.d.ts +4 -4
- package/iot/caCertificate.js +4 -4
- package/iot/getEndpoint.d.ts +12 -12
- package/iot/getEndpoint.js +12 -12
- package/iot/getRegistrationCode.d.ts +4 -4
- package/iot/getRegistrationCode.js +4 -4
- package/lambda/function.d.ts +3 -3
- package/memorydb/user.d.ts +1 -1
- package/memorydb/user.js +1 -1
- package/notifications/index.d.ts +12 -0
- package/notifications/index.js +21 -1
- package/notifications/index.js.map +1 -1
- package/notifications/managedNotificationAccountContactAssociation.d.ts +85 -0
- package/notifications/managedNotificationAccountContactAssociation.js +82 -0
- package/notifications/managedNotificationAccountContactAssociation.js.map +1 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.d.ts +89 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.js +86 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.js.map +1 -0
- package/notifications/organizationalUnitAssociation.d.ts +121 -0
- package/notifications/organizationalUnitAssociation.js +118 -0
- package/notifications/organizationalUnitAssociation.js.map +1 -0
- package/notifications/organizationsAccess.d.ts +79 -0
- package/notifications/organizationsAccess.js +80 -0
- package/notifications/organizationsAccess.js.map +1 -0
- package/odb/network.d.ts +48 -0
- package/odb/network.js +8 -0
- package/odb/network.js.map +1 -1
- package/opensearch/application.d.ts +334 -0
- package/opensearch/application.js +244 -0
- package/opensearch/application.js.map +1 -0
- package/opensearch/index.d.ts +3 -0
- package/opensearch/index.js +6 -1
- package/opensearch/index.js.map +1 -1
- package/organizations/getEntityPath.d.ts +63 -0
- package/organizations/getEntityPath.js +50 -0
- package/organizations/getEntityPath.js.map +1 -0
- package/organizations/getOrganization.d.ts +21 -2
- package/organizations/getOrganization.js +10 -4
- package/organizations/getOrganization.js.map +1 -1
- package/organizations/index.d.ts +4 -1
- package/organizations/index.js +4 -1
- package/organizations/index.js.map +1 -1
- package/organizations/organization.d.ts +12 -0
- package/organizations/organization.js +2 -0
- package/organizations/organization.js.map +1 -1
- package/package.json +2 -2
- package/ram/index.d.ts +6 -0
- package/ram/index.js +11 -1
- package/ram/index.js.map +1 -1
- package/ram/permission.d.ts +193 -0
- package/ram/permission.js +117 -0
- package/ram/permission.js.map +1 -0
- package/ram/resourceShareAssociationsExclusive.d.ts +123 -0
- package/ram/resourceShareAssociationsExclusive.js +69 -0
- package/ram/resourceShareAssociationsExclusive.js.map +1 -0
- package/resourcegroupstaggingapi/getRequiredTags.d.ts +64 -0
- package/resourcegroupstaggingapi/getRequiredTags.js +52 -0
- package/resourcegroupstaggingapi/getRequiredTags.js.map +1 -0
- package/resourcegroupstaggingapi/index.d.ts +3 -0
- package/resourcegroupstaggingapi/index.js +4 -1
- package/resourcegroupstaggingapi/index.js.map +1 -1
- package/route53/healthCheck.d.ts +4 -4
- package/s3/bucketReplicationConfig.d.ts +3 -0
- package/s3/bucketReplicationConfig.js.map +1 -1
- package/s3/getBucketObjectLockConfiguration.d.ts +94 -0
- package/s3/getBucketObjectLockConfiguration.js +58 -0
- package/s3/getBucketObjectLockConfiguration.js.map +1 -0
- package/s3/getBucketReplicationConfiguration.d.ts +81 -0
- package/s3/getBucketReplicationConfiguration.js +56 -0
- package/s3/getBucketReplicationConfiguration.js.map +1 -0
- package/s3/getObject.d.ts +14 -1
- package/s3/getObject.js +2 -0
- package/s3/getObject.js.map +1 -1
- package/s3/index.d.ts +6 -0
- package/s3/index.js +8 -2
- package/s3/index.js.map +1 -1
- package/s3control/getAccessPoints.d.ts +131 -0
- package/s3control/getAccessPoints.js +82 -0
- package/s3control/getAccessPoints.js.map +1 -0
- package/s3control/getMultiRegionAccessPoints.d.ts +76 -0
- package/s3control/getMultiRegionAccessPoints.js +54 -0
- package/s3control/getMultiRegionAccessPoints.js.map +1 -0
- package/s3control/index.d.ts +6 -0
- package/s3control/index.js +7 -1
- package/s3control/index.js.map +1 -1
- package/sagemaker/index.d.ts +9 -0
- package/sagemaker/index.js +16 -1
- package/sagemaker/index.js.map +1 -1
- package/sagemaker/labelingJob.d.ts +280 -0
- package/sagemaker/labelingJob.js +142 -0
- package/sagemaker/labelingJob.js.map +1 -0
- package/sagemaker/modelCard.d.ts +176 -0
- package/sagemaker/modelCard.js +111 -0
- package/sagemaker/modelCard.js.map +1 -0
- package/sagemaker/modelCardExportJob.d.ts +136 -0
- package/sagemaker/modelCardExportJob.js +97 -0
- package/sagemaker/modelCardExportJob.js.map +1 -0
- package/savingsplans/getSavingsPlan.d.ts +128 -0
- package/savingsplans/getSavingsPlan.js +52 -0
- package/savingsplans/getSavingsPlan.js.map +1 -0
- package/savingsplans/index.d.ts +6 -0
- package/savingsplans/index.js +25 -0
- package/savingsplans/index.js.map +1 -0
- package/savingsplans/savingsPlan.d.ts +297 -0
- package/savingsplans/savingsPlan.js +143 -0
- package/savingsplans/savingsPlan.js.map +1 -0
- package/sesv2/index.d.ts +3 -0
- package/sesv2/index.js +6 -1
- package/sesv2/index.js.map +1 -1
- package/sesv2/tenantResourceAssociation.d.ts +103 -0
- package/sesv2/tenantResourceAssociation.js +84 -0
- package/sesv2/tenantResourceAssociation.js.map +1 -0
- package/ssoadmin/index.d.ts +3 -0
- package/ssoadmin/index.js +6 -1
- package/ssoadmin/index.js.map +1 -1
- package/ssoadmin/managedPolicyAttachment.d.ts +2 -0
- package/ssoadmin/managedPolicyAttachment.js +2 -0
- package/ssoadmin/managedPolicyAttachment.js.map +1 -1
- package/ssoadmin/managedPolicyAttachmentsExclusive.d.ts +151 -0
- package/ssoadmin/managedPolicyAttachmentsExclusive.js +122 -0
- package/ssoadmin/managedPolicyAttachmentsExclusive.js.map +1 -0
- package/types/input.d.ts +1766 -15
- package/types/input.js.map +1 -1
- package/types/output.d.ts +2169 -14
- package/types/output.js.map +1 -1
- package/wafv2/getManagedRuleGroup.d.ts +127 -0
- package/wafv2/getManagedRuleGroup.js +62 -0
- package/wafv2/getManagedRuleGroup.js.map +1 -0
- package/wafv2/index.d.ts +3 -0
- package/wafv2/index.js +4 -1
- package/wafv2/index.js.map +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource for managing an AWS User Notifications Managed Notification Additional Channel Association. This resource associates a channel (such as an email contact, mobile device, or chat channel) with a managed notification.
|
|
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
|
+
* });
|
|
17
|
+
* const exampleManagedNotificationAdditionalChannelAssociation = new aws.notifications.ManagedNotificationAdditionalChannelAssociation("example", {
|
|
18
|
+
* channelArn: example.arn,
|
|
19
|
+
* managedNotificationArn: "arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Using `pulumi import`, import User Notifications Managed Notification Additional Channel Association using the `managed_notification_arn,channel_arn` format. For example:
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import aws:notifications/managedNotificationAdditionalChannelAssociation:ManagedNotificationAdditionalChannelAssociation example arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security,arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class ManagedNotificationAdditionalChannelAssociation extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing ManagedNotificationAdditionalChannelAssociation resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedNotificationAdditionalChannelAssociationState, opts?: pulumi.CustomResourceOptions): ManagedNotificationAdditionalChannelAssociation;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of ManagedNotificationAdditionalChannelAssociation. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is ManagedNotificationAdditionalChannelAssociation;
|
|
47
|
+
/**
|
|
48
|
+
* ARN of the channel to associate with the managed notification.
|
|
49
|
+
*/
|
|
50
|
+
readonly channelArn: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* ARN of the managed notification to associate the channel with.
|
|
53
|
+
*/
|
|
54
|
+
readonly managedNotificationArn: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a ManagedNotificationAdditionalChannelAssociation resource with the given unique name, arguments, and options.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resource.
|
|
59
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
60
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
61
|
+
*/
|
|
62
|
+
constructor(name: string, args: ManagedNotificationAdditionalChannelAssociationArgs, opts?: pulumi.CustomResourceOptions);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Input properties used for looking up and filtering ManagedNotificationAdditionalChannelAssociation resources.
|
|
66
|
+
*/
|
|
67
|
+
export interface ManagedNotificationAdditionalChannelAssociationState {
|
|
68
|
+
/**
|
|
69
|
+
* ARN of the channel to associate with the managed notification.
|
|
70
|
+
*/
|
|
71
|
+
channelArn?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* ARN of the managed notification to associate the channel with.
|
|
74
|
+
*/
|
|
75
|
+
managedNotificationArn?: pulumi.Input<string>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The set of arguments for constructing a ManagedNotificationAdditionalChannelAssociation resource.
|
|
79
|
+
*/
|
|
80
|
+
export interface ManagedNotificationAdditionalChannelAssociationArgs {
|
|
81
|
+
/**
|
|
82
|
+
* ARN of the channel to associate with the managed notification.
|
|
83
|
+
*/
|
|
84
|
+
channelArn: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* ARN of the managed notification to associate the channel with.
|
|
87
|
+
*/
|
|
88
|
+
managedNotificationArn: pulumi.Input<string>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.ManagedNotificationAdditionalChannelAssociation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing an AWS User Notifications Managed Notification Additional Channel Association. This resource associates a channel (such as an email contact, mobile device, or chat channel) with a managed notification.
|
|
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
|
+
* });
|
|
23
|
+
* const exampleManagedNotificationAdditionalChannelAssociation = new aws.notifications.ManagedNotificationAdditionalChannelAssociation("example", {
|
|
24
|
+
* channelArn: example.arn,
|
|
25
|
+
* managedNotificationArn: "arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* Using `pulumi import`, import User Notifications Managed Notification Additional Channel Association using the `managed_notification_arn,channel_arn` format. For example:
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import aws:notifications/managedNotificationAdditionalChannelAssociation:ManagedNotificationAdditionalChannelAssociation example arn:aws:notifications::123456789012:managed-notification-configuration/category/AWS-Health/sub-category/Security,arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class ManagedNotificationAdditionalChannelAssociation extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing ManagedNotificationAdditionalChannelAssociation resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name, id, state, opts) {
|
|
48
|
+
return new ManagedNotificationAdditionalChannelAssociation(name, state, { ...opts, id: id });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of ManagedNotificationAdditionalChannelAssociation. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj) {
|
|
55
|
+
if (obj === undefined || obj === null) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return obj['__pulumiType'] === ManagedNotificationAdditionalChannelAssociation.__pulumiType;
|
|
59
|
+
}
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["channelArn"] = state?.channelArn;
|
|
66
|
+
resourceInputs["managedNotificationArn"] = state?.managedNotificationArn;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if (args?.channelArn === undefined && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'channelArn'");
|
|
72
|
+
}
|
|
73
|
+
if (args?.managedNotificationArn === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'managedNotificationArn'");
|
|
75
|
+
}
|
|
76
|
+
resourceInputs["channelArn"] = args?.channelArn;
|
|
77
|
+
resourceInputs["managedNotificationArn"] = args?.managedNotificationArn;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(ManagedNotificationAdditionalChannelAssociation.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ManagedNotificationAdditionalChannelAssociation = ManagedNotificationAdditionalChannelAssociation;
|
|
84
|
+
/** @internal */
|
|
85
|
+
ManagedNotificationAdditionalChannelAssociation.__pulumiType = 'aws:notifications/managedNotificationAdditionalChannelAssociation:ManagedNotificationAdditionalChannelAssociation';
|
|
86
|
+
//# sourceMappingURL=managedNotificationAdditionalChannelAssociation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedNotificationAdditionalChannelAssociation.js","sourceRoot":"","sources":["../../notifications/managedNotificationAdditionalChannelAssociation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,+CAAgD,SAAQ,MAAM,CAAC,cAAc;IACtF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4D,EAAE,IAAmC;QAC1J,OAAO,IAAI,+CAA+C,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtG,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,+CAA+C,CAAC,YAAY,CAAC;IAChG,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAwH,EAAE,IAAmC;QACnL,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+E,CAAC;YAC9F,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,EAAE,sBAAsB,CAAC;SAC5E;aAAM;YACH,MAAM,IAAI,GAAG,WAA8E,CAAC;YAC5F,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,sBAAsB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;aACzE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;SAC3E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+CAA+C,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpG,CAAC;;AAjEL,0GAkEC;AApDG,gBAAgB;AACO,4DAAY,GAAG,mHAAmH,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource for managing an AWS User Notifications Organizational Unit Association. This resource associates an organizational unit with a notification configuration.
|
|
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
|
+
* import * as time from "@pulumi/time";
|
|
13
|
+
*
|
|
14
|
+
* const example = aws.organizations.getOrganization({});
|
|
15
|
+
* const exampleNotificationConfiguration = new aws.notifications.NotificationConfiguration("example", {
|
|
16
|
+
* name: "example-notification-config",
|
|
17
|
+
* description: "Example notification configuration",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleOrganizationalUnit = new aws.organizations.OrganizationalUnit("example", {
|
|
20
|
+
* name: "example-ou",
|
|
21
|
+
* parentId: example.then(example => example.roots?.[0]?.id),
|
|
22
|
+
* });
|
|
23
|
+
* // Allow time for organizational unit creation to propagate
|
|
24
|
+
* const wait = new time.index.Sleep("wait", {createDuration: "5s"}, {
|
|
25
|
+
* dependsOn: [
|
|
26
|
+
* exampleOrganizationalUnit,
|
|
27
|
+
* exampleNotificationConfiguration,
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* const exampleOrganizationalUnitAssociation = new aws.notifications.OrganizationalUnitAssociation("example", {
|
|
31
|
+
* organizationalUnitId: exampleOrganizationalUnit.id,
|
|
32
|
+
* notificationConfigurationArn: exampleNotificationConfiguration.arn,
|
|
33
|
+
* }, {
|
|
34
|
+
* dependsOn: [wait],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ### Associate with Organization Root
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as aws from "@pulumi/aws";
|
|
43
|
+
*
|
|
44
|
+
* const example = aws.organizations.getOrganization({});
|
|
45
|
+
* const exampleNotificationConfiguration = new aws.notifications.NotificationConfiguration("example", {
|
|
46
|
+
* name: "example-notification-config",
|
|
47
|
+
* description: "Example notification configuration",
|
|
48
|
+
* });
|
|
49
|
+
* const exampleOrganizationalUnitAssociation = new aws.notifications.OrganizationalUnitAssociation("example", {
|
|
50
|
+
* organizationalUnitId: example.then(example => example.roots?.[0]?.id),
|
|
51
|
+
* notificationConfigurationArn: exampleNotificationConfiguration.arn,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* Using `pulumi import`, import User Notifications Organizational Unit Association using the `notification_configuration_arn,organizational_unit_id` format. For example:
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import aws:notifications/organizationalUnitAssociation:OrganizationalUnitAssociation example arn:aws:notifications:us-west-2:123456789012:configuration:example-notification-config,ou-1234-12345678
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare class OrganizationalUnitAssociation extends pulumi.CustomResource {
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing OrganizationalUnitAssociation resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OrganizationalUnitAssociationState, opts?: pulumi.CustomResourceOptions): OrganizationalUnitAssociation;
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of OrganizationalUnitAssociation. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj: any): obj is OrganizationalUnitAssociation;
|
|
79
|
+
/**
|
|
80
|
+
* ARN of the notification configuration to associate the organizational unit with.
|
|
81
|
+
*/
|
|
82
|
+
readonly notificationConfigurationArn: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* ID of the organizational unit or ID of the root to associate with the notification configuration. Can be a root ID (e.g., `r-1234`), or an organization ID (e.g., `o-1234567890`).
|
|
85
|
+
*/
|
|
86
|
+
readonly organizationalUnitId: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Create a OrganizationalUnitAssociation resource with the given unique name, arguments, and options.
|
|
89
|
+
*
|
|
90
|
+
* @param name The _unique_ name of the resource.
|
|
91
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
92
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
93
|
+
*/
|
|
94
|
+
constructor(name: string, args: OrganizationalUnitAssociationArgs, opts?: pulumi.CustomResourceOptions);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Input properties used for looking up and filtering OrganizationalUnitAssociation resources.
|
|
98
|
+
*/
|
|
99
|
+
export interface OrganizationalUnitAssociationState {
|
|
100
|
+
/**
|
|
101
|
+
* ARN of the notification configuration to associate the organizational unit with.
|
|
102
|
+
*/
|
|
103
|
+
notificationConfigurationArn?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* ID of the organizational unit or ID of the root to associate with the notification configuration. Can be a root ID (e.g., `r-1234`), or an organization ID (e.g., `o-1234567890`).
|
|
106
|
+
*/
|
|
107
|
+
organizationalUnitId?: pulumi.Input<string>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* The set of arguments for constructing a OrganizationalUnitAssociation resource.
|
|
111
|
+
*/
|
|
112
|
+
export interface OrganizationalUnitAssociationArgs {
|
|
113
|
+
/**
|
|
114
|
+
* ARN of the notification configuration to associate the organizational unit with.
|
|
115
|
+
*/
|
|
116
|
+
notificationConfigurationArn: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* ID of the organizational unit or ID of the root to associate with the notification configuration. Can be a root ID (e.g., `r-1234`), or an organization ID (e.g., `o-1234567890`).
|
|
119
|
+
*/
|
|
120
|
+
organizationalUnitId: pulumi.Input<string>;
|
|
121
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.OrganizationalUnitAssociation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing an AWS User Notifications Organizational Unit Association. This resource associates an organizational unit 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
|
+
* import * as time from "@pulumi/time";
|
|
19
|
+
*
|
|
20
|
+
* const example = aws.organizations.getOrganization({});
|
|
21
|
+
* const exampleNotificationConfiguration = new aws.notifications.NotificationConfiguration("example", {
|
|
22
|
+
* name: "example-notification-config",
|
|
23
|
+
* description: "Example notification configuration",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleOrganizationalUnit = new aws.organizations.OrganizationalUnit("example", {
|
|
26
|
+
* name: "example-ou",
|
|
27
|
+
* parentId: example.then(example => example.roots?.[0]?.id),
|
|
28
|
+
* });
|
|
29
|
+
* // Allow time for organizational unit creation to propagate
|
|
30
|
+
* const wait = new time.index.Sleep("wait", {createDuration: "5s"}, {
|
|
31
|
+
* dependsOn: [
|
|
32
|
+
* exampleOrganizationalUnit,
|
|
33
|
+
* exampleNotificationConfiguration,
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* const exampleOrganizationalUnitAssociation = new aws.notifications.OrganizationalUnitAssociation("example", {
|
|
37
|
+
* organizationalUnitId: exampleOrganizationalUnit.id,
|
|
38
|
+
* notificationConfigurationArn: exampleNotificationConfiguration.arn,
|
|
39
|
+
* }, {
|
|
40
|
+
* dependsOn: [wait],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ### Associate with Organization Root
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as aws from "@pulumi/aws";
|
|
49
|
+
*
|
|
50
|
+
* const example = aws.organizations.getOrganization({});
|
|
51
|
+
* const exampleNotificationConfiguration = new aws.notifications.NotificationConfiguration("example", {
|
|
52
|
+
* name: "example-notification-config",
|
|
53
|
+
* description: "Example notification configuration",
|
|
54
|
+
* });
|
|
55
|
+
* const exampleOrganizationalUnitAssociation = new aws.notifications.OrganizationalUnitAssociation("example", {
|
|
56
|
+
* organizationalUnitId: example.then(example => example.roots?.[0]?.id),
|
|
57
|
+
* notificationConfigurationArn: exampleNotificationConfiguration.arn,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## Import
|
|
62
|
+
*
|
|
63
|
+
* Using `pulumi import`, import User Notifications Organizational Unit Association using the `notification_configuration_arn,organizational_unit_id` format. For example:
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import aws:notifications/organizationalUnitAssociation:OrganizationalUnitAssociation example arn:aws:notifications:us-west-2:123456789012:configuration:example-notification-config,ou-1234-12345678
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
class OrganizationalUnitAssociation extends pulumi.CustomResource {
|
|
70
|
+
/**
|
|
71
|
+
* Get an existing OrganizationalUnitAssociation resource's state with the given name, ID, and optional extra
|
|
72
|
+
* properties used to qualify the lookup.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resulting resource.
|
|
75
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
76
|
+
* @param state Any extra arguments used during the lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, state, opts) {
|
|
80
|
+
return new OrganizationalUnitAssociation(name, state, { ...opts, id: id });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of OrganizationalUnitAssociation. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === OrganizationalUnitAssociation.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
constructor(name, argsOrState, opts) {
|
|
93
|
+
let resourceInputs = {};
|
|
94
|
+
opts = opts || {};
|
|
95
|
+
if (opts.id) {
|
|
96
|
+
const state = argsOrState;
|
|
97
|
+
resourceInputs["notificationConfigurationArn"] = state?.notificationConfigurationArn;
|
|
98
|
+
resourceInputs["organizationalUnitId"] = state?.organizationalUnitId;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const args = argsOrState;
|
|
102
|
+
if (args?.notificationConfigurationArn === undefined && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'notificationConfigurationArn'");
|
|
104
|
+
}
|
|
105
|
+
if (args?.organizationalUnitId === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'organizationalUnitId'");
|
|
107
|
+
}
|
|
108
|
+
resourceInputs["notificationConfigurationArn"] = args?.notificationConfigurationArn;
|
|
109
|
+
resourceInputs["organizationalUnitId"] = args?.organizationalUnitId;
|
|
110
|
+
}
|
|
111
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
112
|
+
super(OrganizationalUnitAssociation.__pulumiType, name, resourceInputs, opts);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.OrganizationalUnitAssociation = OrganizationalUnitAssociation;
|
|
116
|
+
/** @internal */
|
|
117
|
+
OrganizationalUnitAssociation.__pulumiType = 'aws:notifications/organizationalUnitAssociation:OrganizationalUnitAssociation';
|
|
118
|
+
//# sourceMappingURL=organizationalUnitAssociation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationalUnitAssociation.js","sourceRoot":"","sources":["../../notifications/organizationalUnitAssociation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6D,CAAC;YAC5E,cAAc,CAAC,8BAA8B,CAAC,GAAG,KAAK,EAAE,4BAA4B,CAAC;YACrF,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;SACxE;aAAM;YACH,MAAM,IAAI,GAAG,WAA4D,CAAC;YAC1E,IAAI,IAAI,EAAE,4BAA4B,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/D,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;aAC/E;YACD,IAAI,IAAI,EAAE,oBAAoB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,EAAE,4BAA4B,CAAC;YACpF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AAjEL,sEAkEC;AApDG,gBAAgB;AACO,0CAAY,GAAG,+EAA+E,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Resource for managing AWS User Notifications Organizations Access. This resource enables or disables organizations access for AWS User Notifications in AWS Organizations, allowing the service to access organization information.
|
|
6
|
+
*
|
|
7
|
+
* > **NOTE:** This resource can only be used in the management account of an AWS Organization.
|
|
8
|
+
*
|
|
9
|
+
* > **NOTE:** Deleting this resource will always disable organizations access for AWS User Notifications, regardless of the `enabled` attribute value.
|
|
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.OrganizationsAccess("example", {enabled: true});
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Using `pulumi import`, import User Notifications Organizations Access using the AWS account ID. For example:
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import aws:notifications/organizationsAccess:OrganizationsAccess example 123456789012
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class OrganizationsAccess extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing OrganizationsAccess 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?: OrganizationsAccessState, opts?: pulumi.CustomResourceOptions): OrganizationsAccess;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of OrganizationsAccess. 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 OrganizationsAccess;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to enable organizations access for AWS User Notifications in AWS Organizations. When set to `true`, enables organizations access. When set to `false`, disables organizations access.
|
|
48
|
+
*/
|
|
49
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
50
|
+
readonly timeouts: pulumi.Output<outputs.notifications.OrganizationsAccessTimeouts | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a OrganizationsAccess resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: OrganizationsAccessArgs, opts?: pulumi.CustomResourceOptions);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Input properties used for looking up and filtering OrganizationsAccess resources.
|
|
62
|
+
*/
|
|
63
|
+
export interface OrganizationsAccessState {
|
|
64
|
+
/**
|
|
65
|
+
* Whether to enable organizations access for AWS User Notifications in AWS Organizations. When set to `true`, enables organizations access. When set to `false`, disables organizations access.
|
|
66
|
+
*/
|
|
67
|
+
enabled?: pulumi.Input<boolean>;
|
|
68
|
+
timeouts?: pulumi.Input<inputs.notifications.OrganizationsAccessTimeouts>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The set of arguments for constructing a OrganizationsAccess resource.
|
|
72
|
+
*/
|
|
73
|
+
export interface OrganizationsAccessArgs {
|
|
74
|
+
/**
|
|
75
|
+
* Whether to enable organizations access for AWS User Notifications in AWS Organizations. When set to `true`, enables organizations access. When set to `false`, disables organizations access.
|
|
76
|
+
*/
|
|
77
|
+
enabled: pulumi.Input<boolean>;
|
|
78
|
+
timeouts?: pulumi.Input<inputs.notifications.OrganizationsAccessTimeouts>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.OrganizationsAccess = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for managing AWS User Notifications Organizations Access. This resource enables or disables organizations access for AWS User Notifications in AWS Organizations, allowing the service to access organization information.
|
|
10
|
+
*
|
|
11
|
+
* > **NOTE:** This resource can only be used in the management account of an AWS Organization.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** Deleting this resource will always disable organizations access for AWS User Notifications, regardless of the `enabled` attribute value.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ### Basic Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as aws from "@pulumi/aws";
|
|
22
|
+
*
|
|
23
|
+
* const example = new aws.notifications.OrganizationsAccess("example", {enabled: true});
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Using `pulumi import`, import User Notifications Organizations Access using the AWS account ID. For example:
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import aws:notifications/organizationsAccess:OrganizationsAccess example 123456789012
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class OrganizationsAccess extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing OrganizationsAccess resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, state, opts) {
|
|
45
|
+
return new OrganizationsAccess(name, state, { ...opts, id: id });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of OrganizationsAccess. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj) {
|
|
52
|
+
if (obj === undefined || obj === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return obj['__pulumiType'] === OrganizationsAccess.__pulumiType;
|
|
56
|
+
}
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
63
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'enabled'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
71
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(OrganizationsAccess.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.OrganizationsAccess = OrganizationsAccess;
|
|
78
|
+
/** @internal */
|
|
79
|
+
OrganizationsAccess.__pulumiType = 'aws:notifications/organizationsAccess:OrganizationsAccess';
|
|
80
|
+
//# sourceMappingURL=organizationsAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsAccess.js","sourceRoot":"","sources":["../../notifications/organizationsAccess.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAgBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA3DL,kDA4DC;AA9CG,gBAAgB;AACO,gCAAY,GAAG,2DAA2D,CAAC"}
|