@pulumi/aws 6.0.0-alpha.1 → 6.0.0-alpha.2

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.
Files changed (141) hide show
  1. package/README.md +4 -4
  2. package/appintegrations/dataIntegration.d.ts +2 -1
  3. package/appintegrations/dataIntegration.js +4 -0
  4. package/appintegrations/dataIntegration.js.map +1 -1
  5. package/auditmanager/accountRegistration.d.ts +109 -0
  6. package/auditmanager/accountRegistration.js +84 -0
  7. package/auditmanager/accountRegistration.js.map +1 -0
  8. package/auditmanager/assessment.d.ts +204 -0
  9. package/auditmanager/assessment.js +118 -0
  10. package/auditmanager/assessment.js.map +1 -0
  11. package/auditmanager/assessmentDelegation.d.ts +144 -0
  12. package/auditmanager/assessmentDelegation.js +99 -0
  13. package/auditmanager/assessmentDelegation.js.map +1 -0
  14. package/auditmanager/assessmentReport.d.ts +118 -0
  15. package/auditmanager/assessmentReport.js +87 -0
  16. package/auditmanager/assessmentReport.js.map +1 -0
  17. package/auditmanager/control.d.ts +186 -0
  18. package/auditmanager/control.js +98 -0
  19. package/auditmanager/control.js.map +1 -0
  20. package/auditmanager/framework.d.ts +163 -0
  21. package/auditmanager/framework.js +95 -0
  22. package/auditmanager/framework.js.map +1 -0
  23. package/auditmanager/frameworkShare.d.ts +123 -0
  24. package/auditmanager/frameworkShare.js +91 -0
  25. package/auditmanager/frameworkShare.js.map +1 -0
  26. package/auditmanager/getControl.d.ts +146 -0
  27. package/auditmanager/getControl.js +117 -0
  28. package/auditmanager/getControl.js.map +1 -0
  29. package/auditmanager/getFramework.d.ts +74 -0
  30. package/auditmanager/getFramework.js +53 -0
  31. package/auditmanager/getFramework.js.map +1 -0
  32. package/auditmanager/index.d.ts +30 -0
  33. package/auditmanager/index.js +63 -0
  34. package/auditmanager/index.js.map +1 -0
  35. package/auditmanager/organizationAdminAccountRegistration.d.ts +77 -0
  36. package/auditmanager/organizationAdminAccountRegistration.js +75 -0
  37. package/auditmanager/organizationAdminAccountRegistration.js.map +1 -0
  38. package/chime/sdkvoiceVoiceProfileDomain.d.ts +2 -1
  39. package/chime/sdkvoiceVoiceProfileDomain.js +4 -0
  40. package/chime/sdkvoiceVoiceProfileDomain.js.map +1 -1
  41. package/cloudfront/fieldLevelEncryptionProfile.d.ts +1 -0
  42. package/cloudfront/fieldLevelEncryptionProfile.js +1 -0
  43. package/cloudfront/fieldLevelEncryptionProfile.js.map +1 -1
  44. package/cloudfront/keyGroup.d.ts +1 -0
  45. package/cloudfront/keyGroup.js +1 -0
  46. package/cloudfront/keyGroup.js.map +1 -1
  47. package/cloudfront/publicKey.d.ts +1 -0
  48. package/cloudfront/publicKey.js +1 -0
  49. package/cloudfront/publicKey.js.map +1 -1
  50. package/directoryservice/index.d.ts +3 -0
  51. package/directoryservice/index.js +6 -1
  52. package/directoryservice/index.js.map +1 -1
  53. package/directoryservice/trust.d.ts +282 -0
  54. package/directoryservice/trust.js +166 -0
  55. package/directoryservice/trust.js.map +1 -0
  56. package/ec2/securityGroup.d.ts +1 -1
  57. package/ec2/securityGroup.js +1 -1
  58. package/ec2/securityGroupRule.d.ts +2 -2
  59. package/ec2/securityGroupRule.js +2 -2
  60. package/emrcontainers/jobTemplate.d.ts +11 -8
  61. package/emrcontainers/jobTemplate.js +13 -7
  62. package/emrcontainers/jobTemplate.js.map +1 -1
  63. package/glue/dataQualityRuleset.d.ts +8 -2
  64. package/glue/dataQualityRuleset.js +10 -1
  65. package/glue/dataQualityRuleset.js.map +1 -1
  66. package/index.d.ts +4 -1
  67. package/index.js +10 -4
  68. package/index.js.map +1 -1
  69. package/medialive/index.d.ts +3 -0
  70. package/medialive/index.js +6 -1
  71. package/medialive/index.js.map +1 -1
  72. package/medialive/multiplexProgram.d.ts +130 -0
  73. package/medialive/multiplexProgram.js +109 -0
  74. package/medialive/multiplexProgram.js.map +1 -0
  75. package/package.json +2 -2
  76. package/package.json.dev +2 -2
  77. package/quicksight/folderMembership.d.ts +115 -0
  78. package/quicksight/folderMembership.js +89 -0
  79. package/quicksight/folderMembership.js.map +1 -0
  80. package/quicksight/iamPolicyAssignment.d.ts +152 -0
  81. package/quicksight/iamPolicyAssignment.js +95 -0
  82. package/quicksight/iamPolicyAssignment.js.map +1 -0
  83. package/quicksight/index.d.ts +21 -0
  84. package/quicksight/index.js +36 -1
  85. package/quicksight/index.js.map +1 -1
  86. package/quicksight/ingestion.d.ts +131 -0
  87. package/quicksight/ingestion.js +93 -0
  88. package/quicksight/ingestion.js.map +1 -0
  89. package/quicksight/namespace.d.ts +158 -0
  90. package/quicksight/namespace.js +89 -0
  91. package/quicksight/namespace.js.map +1 -0
  92. package/quicksight/refreshSchedule.d.ts +130 -0
  93. package/quicksight/refreshSchedule.js +93 -0
  94. package/quicksight/refreshSchedule.js.map +1 -0
  95. package/quicksight/templateAlias.d.ts +123 -0
  96. package/quicksight/templateAlias.js +91 -0
  97. package/quicksight/templateAlias.js.map +1 -0
  98. package/quicksight/vpcConnection.d.ts +236 -0
  99. package/quicksight/vpcConnection.js +145 -0
  100. package/quicksight/vpcConnection.js.map +1 -0
  101. package/rds/exportTask.d.ts +299 -0
  102. package/rds/exportTask.js +198 -0
  103. package/rds/exportTask.js.map +1 -0
  104. package/rds/index.d.ts +3 -0
  105. package/rds/index.js +6 -1
  106. package/rds/index.js.map +1 -1
  107. package/resourceexplorer/index.d.ts +6 -0
  108. package/resourceexplorer/index.js +27 -0
  109. package/resourceexplorer/index.js.map +1 -0
  110. package/resourceexplorer/index_.d.ts +111 -0
  111. package/resourceexplorer/index_.js +80 -0
  112. package/resourceexplorer/index_.js.map +1 -0
  113. package/resourceexplorer/view.d.ts +155 -0
  114. package/resourceexplorer/view.js +95 -0
  115. package/resourceexplorer/view.js.map +1 -0
  116. package/route53/cidrCollection.d.ts +84 -0
  117. package/route53/cidrCollection.js +76 -0
  118. package/route53/cidrCollection.js.map +1 -0
  119. package/route53/cidrLocation.d.ts +100 -0
  120. package/route53/cidrLocation.js +90 -0
  121. package/route53/cidrLocation.js.map +1 -0
  122. package/route53/index.d.ts +6 -0
  123. package/route53/index.js +11 -1
  124. package/route53/index.js.map +1 -1
  125. package/types/input.d.ts +345 -2
  126. package/types/output.d.ts +298 -2
  127. package/vpc/getSecurityGroupRule.d.ts +117 -0
  128. package/vpc/getSecurityGroupRule.js +49 -0
  129. package/vpc/getSecurityGroupRule.js.map +1 -0
  130. package/vpc/getSecurityGroupRules.d.ts +91 -0
  131. package/vpc/getSecurityGroupRules.js +55 -0
  132. package/vpc/getSecurityGroupRules.js.map +1 -0
  133. package/vpc/index.d.ts +12 -0
  134. package/vpc/index.js +33 -0
  135. package/vpc/index.js.map +1 -0
  136. package/vpc/securityGroupEgressRule.d.ts +223 -0
  137. package/vpc/securityGroupEgressRule.js +109 -0
  138. package/vpc/securityGroupEgressRule.js.map +1 -0
  139. package/vpc/securityGroupIngressRule.d.ts +223 -0
  140. package/vpc/securityGroupIngressRule.js +109 -0
  141. package/vpc/securityGroupIngressRule.js.map +1 -0
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![NPM version](https://badge.fury.io/js/%40pulumi%2Faws.svg)](https://www.npmjs.com/package/@pulumi/aws)
4
4
  [![Python version](https://badge.fury.io/py/pulumi-aws.svg)](https://pypi.org/project/pulumi-aws)
5
5
  [![NuGet version](https://badge.fury.io/nu/pulumi.aws.svg)](https://badge.fury.io/nu/pulumi.aws)
6
- [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-aws/sdk/v5/go)](https://pkg.go.dev/github.com/pulumi/pulumi-aws/sdk/v5/go)
6
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-aws/sdk/v6/go)](https://pkg.go.dev/github.com/pulumi/pulumi-aws/sdk/v6/go)
7
7
  [![License](https://img.shields.io/github/license/pulumi/pulumi-aws)](https://github.com/pulumi/pulumi-aws/blob/master/LICENSE)
8
8
 
9
9
  # Amazon Web Services (AWS) provider
@@ -41,7 +41,7 @@ To use from Python, install using `pip`:
41
41
 
42
42
  To use from Go, use `go get` to grab the latest version of the library
43
43
 
44
- $ go get github.com/pulumi/pulumi-aws/sdk/v5
44
+ $ go get github.com/pulumi/pulumi-aws/sdk/v6
45
45
 
46
46
  ### .NET
47
47
 
@@ -71,7 +71,7 @@ The following configuration points are available:
71
71
 
72
72
  - `aws:region` - (Required) This is the AWS region.
73
73
 
74
- - `aws:accessKey` - (Optional) This is the AWS access key. It can also be sourced from the
74
+ - `aws:accessKey` - (Optional) This is the AWS access key. It can also be sourced from the
75
75
  `AWS_ACCESS_KEY_ID` environment variable, or via a shared credentials file if `aws:profile` is specified.
76
76
  - `aws:secretKey` - (Optional) This is the AWS secret key. It can also be sourced from the
77
77
  `AWS_SECRET_ACCESS_KEY` environment variable, or via a shared credentials file if `aws:profile` is specified.
@@ -80,7 +80,7 @@ The following configuration points are available:
80
80
  `aws:profile` is specified, `~/.aws/credentials` will be used.
81
81
  - `aws:token` - (Optional) Session token for validating temporary credentials. Typically provided after successful
82
82
  identity federation or Multi-Factor Authentication (MFA) login. With MFA login, this is the session token provided
83
- afterward, not the 6 digit MFA code used to get temporary credentials. It can also be sourced from the
83
+ afterward, not the 6 digit MFA code used to get temporary credentials. It can also be sourced from the
84
84
  `AWS_SESSION_TOKEN` environment variable.
85
85
  - `aws:maxRetries` - (Optional) This is the maximum number of times an API call is retried, in the case where requests
86
86
  are being throttled or experiencing transient failures. The delay between the subsequent API calls increases
@@ -11,6 +11,7 @@ import * as outputs from "../types/output";
11
11
  * import * as aws from "@pulumi/aws";
12
12
  *
13
13
  * const example = new aws.appintegrations.DataIntegration("example", {
14
+ * name: "example",
14
15
  * description: "example",
15
16
  * kmsKey: aws_kms_key.test.arn,
16
17
  * sourceUri: "Salesforce://AppFlow/example",
@@ -150,7 +151,7 @@ export interface DataIntegrationArgs {
150
151
  /**
151
152
  * Specifies the name of the Data Integration.
152
153
  */
153
- name?: pulumi.Input<string>;
154
+ name: pulumi.Input<string>;
154
155
  /**
155
156
  * A block that defines the name of the data and how often it should be pulled from the source. The Schedule Config block is documented below.
156
157
  */
@@ -15,6 +15,7 @@ const utilities = require("../utilities");
15
15
  * import * as aws from "@pulumi/aws";
16
16
  *
17
17
  * const example = new aws.appintegrations.DataIntegration("example", {
18
+ * name: "example",
18
19
  * description: "example",
19
20
  * kmsKey: aws_kms_key.test.arn,
20
21
  * sourceUri: "Salesforce://AppFlow/example",
@@ -79,6 +80,9 @@ class DataIntegration extends pulumi.CustomResource {
79
80
  if ((!args || args.kmsKey === undefined) && !opts.urn) {
80
81
  throw new Error("Missing required property 'kmsKey'");
81
82
  }
83
+ if ((!args || args.name === undefined) && !opts.urn) {
84
+ throw new Error("Missing required property 'name'");
85
+ }
82
86
  if ((!args || args.scheduleConfig === undefined) && !opts.urn) {
83
87
  throw new Error("Missing required property 'scheduleConfig'");
84
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataIntegration.js","sourceRoot":"","sources":["../../appintegrations/dataIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAwD,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**
3
+ * Resource for managing AWS Audit Manager Account Registration.
4
+ *
5
+ * ## Example Usage
6
+ * ### Basic Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as aws from "@pulumi/aws";
11
+ *
12
+ * const example = new aws.auditmanager.AccountRegistration("example", {});
13
+ * ```
14
+ * ### Deregister On Destroy
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as aws from "@pulumi/aws";
19
+ *
20
+ * const example = new aws.auditmanager.AccountRegistration("example", {deregisterOnDestroy: true});
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * Audit Manager Account Registration resources can be imported using the `id`, e.g.,
26
+ *
27
+ * ```sh
28
+ * $ pulumi import aws:auditmanager/accountRegistration:AccountRegistration example us-east-1
29
+ * ```
30
+ */
31
+ export declare class AccountRegistration extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing AccountRegistration 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?: AccountRegistrationState, opts?: pulumi.CustomResourceOptions): AccountRegistration;
42
+ /**
43
+ * Returns true if the given object is an instance of AccountRegistration. 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 AccountRegistration;
47
+ /**
48
+ * Identifier for the delegated administrator account.
49
+ */
50
+ readonly delegatedAdminAccount: pulumi.Output<string | undefined>;
51
+ /**
52
+ * Flag to deregister AuditManager in the account upon destruction. Defaults to `false` (ie. AuditManager will remain active in the account, even if this resource is removed).
53
+ */
54
+ readonly deregisterOnDestroy: pulumi.Output<boolean | undefined>;
55
+ /**
56
+ * KMS key identifier.
57
+ */
58
+ readonly kmsKey: pulumi.Output<string | undefined>;
59
+ /**
60
+ * Status of the account registration request.
61
+ */
62
+ readonly status: pulumi.Output<string>;
63
+ /**
64
+ * Create a AccountRegistration resource with the given unique name, arguments, and options.
65
+ *
66
+ * @param name The _unique_ name of the resource.
67
+ * @param args The arguments to use to populate this resource's properties.
68
+ * @param opts A bag of options that control this resource's behavior.
69
+ */
70
+ constructor(name: string, args?: AccountRegistrationArgs, opts?: pulumi.CustomResourceOptions);
71
+ }
72
+ /**
73
+ * Input properties used for looking up and filtering AccountRegistration resources.
74
+ */
75
+ export interface AccountRegistrationState {
76
+ /**
77
+ * Identifier for the delegated administrator account.
78
+ */
79
+ delegatedAdminAccount?: pulumi.Input<string>;
80
+ /**
81
+ * Flag to deregister AuditManager in the account upon destruction. Defaults to `false` (ie. AuditManager will remain active in the account, even if this resource is removed).
82
+ */
83
+ deregisterOnDestroy?: pulumi.Input<boolean>;
84
+ /**
85
+ * KMS key identifier.
86
+ */
87
+ kmsKey?: pulumi.Input<string>;
88
+ /**
89
+ * Status of the account registration request.
90
+ */
91
+ status?: pulumi.Input<string>;
92
+ }
93
+ /**
94
+ * The set of arguments for constructing a AccountRegistration resource.
95
+ */
96
+ export interface AccountRegistrationArgs {
97
+ /**
98
+ * Identifier for the delegated administrator account.
99
+ */
100
+ delegatedAdminAccount?: pulumi.Input<string>;
101
+ /**
102
+ * Flag to deregister AuditManager in the account upon destruction. Defaults to `false` (ie. AuditManager will remain active in the account, even if this resource is removed).
103
+ */
104
+ deregisterOnDestroy?: pulumi.Input<boolean>;
105
+ /**
106
+ * KMS key identifier.
107
+ */
108
+ kmsKey?: pulumi.Input<string>;
109
+ }
@@ -0,0 +1,84 @@
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.AccountRegistration = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Resource for managing AWS Audit Manager Account Registration.
10
+ *
11
+ * ## Example Usage
12
+ * ### Basic Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as aws from "@pulumi/aws";
17
+ *
18
+ * const example = new aws.auditmanager.AccountRegistration("example", {});
19
+ * ```
20
+ * ### Deregister On Destroy
21
+ *
22
+ * ```typescript
23
+ * import * as pulumi from "@pulumi/pulumi";
24
+ * import * as aws from "@pulumi/aws";
25
+ *
26
+ * const example = new aws.auditmanager.AccountRegistration("example", {deregisterOnDestroy: true});
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * Audit Manager Account Registration resources can be imported using the `id`, e.g.,
32
+ *
33
+ * ```sh
34
+ * $ pulumi import aws:auditmanager/accountRegistration:AccountRegistration example us-east-1
35
+ * ```
36
+ */
37
+ class AccountRegistration extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing AccountRegistration 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 AccountRegistration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
49
+ }
50
+ /**
51
+ * Returns true if the given object is an instance of AccountRegistration. 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'] === AccountRegistration.__pulumiType;
59
+ }
60
+ constructor(name, argsOrState, opts) {
61
+ let resourceInputs = {};
62
+ opts = opts || {};
63
+ if (opts.id) {
64
+ const state = argsOrState;
65
+ resourceInputs["delegatedAdminAccount"] = state ? state.delegatedAdminAccount : undefined;
66
+ resourceInputs["deregisterOnDestroy"] = state ? state.deregisterOnDestroy : undefined;
67
+ resourceInputs["kmsKey"] = state ? state.kmsKey : undefined;
68
+ resourceInputs["status"] = state ? state.status : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ resourceInputs["delegatedAdminAccount"] = args ? args.delegatedAdminAccount : undefined;
73
+ resourceInputs["deregisterOnDestroy"] = args ? args.deregisterOnDestroy : undefined;
74
+ resourceInputs["kmsKey"] = args ? args.kmsKey : undefined;
75
+ resourceInputs["status"] = undefined /*out*/;
76
+ }
77
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
78
+ super(AccountRegistration.__pulumiType, name, resourceInputs, opts);
79
+ }
80
+ }
81
+ exports.AccountRegistration = AccountRegistration;
82
+ /** @internal */
83
+ AccountRegistration.__pulumiType = 'aws:auditmanager/accountRegistration:AccountRegistration';
84
+ //# sourceMappingURL=accountRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountRegistration.js","sourceRoot":"","sources":["../../auditmanager/accountRegistration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,m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E,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAvEL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,0DAA0D,CAAC"}
@@ -0,0 +1,204 @@
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 an AWS Audit Manager Assessment.
6
+ *
7
+ * ## Example Usage
8
+ * ### Basic Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as aws from "@pulumi/aws";
13
+ *
14
+ * const test = new aws.auditmanager.Assessment("test", {
15
+ * name: "example",
16
+ * assessmentReportsDestination: {
17
+ * destination: `s3://${aws_s3_bucket.test.id}`,
18
+ * destinationType: "S3",
19
+ * },
20
+ * frameworkId: aws_auditmanager_framework.test.id,
21
+ * roles: [{
22
+ * roleArn: aws_iam_role.test.arn,
23
+ * roleType: "PROCESS_OWNER",
24
+ * }],
25
+ * scope: {
26
+ * awsAccounts: [{
27
+ * id: data.aws_caller_identity.current.account_id,
28
+ * }],
29
+ * awsServices: [{
30
+ * serviceName: "S3",
31
+ * }],
32
+ * },
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * Audit Manager Assessments can be imported using the assessment `id`, e.g.,
39
+ *
40
+ * ```sh
41
+ * $ pulumi import aws:auditmanager/assessment:Assessment example abc123-de45
42
+ * ```
43
+ */
44
+ export declare class Assessment extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing Assessment resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param state Any extra arguments used during the lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AssessmentState, opts?: pulumi.CustomResourceOptions): Assessment;
55
+ /**
56
+ * Returns true if the given object is an instance of Assessment. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj: any): obj is Assessment;
60
+ /**
61
+ * Amazon Resource Name (ARN) of the assessment.
62
+ */
63
+ readonly arn: pulumi.Output<string>;
64
+ /**
65
+ * Assessment report storage destination configuration. See `assessmentReportsDestination` below.
66
+ */
67
+ readonly assessmentReportsDestination: pulumi.Output<outputs.auditmanager.AssessmentAssessmentReportsDestination | undefined>;
68
+ /**
69
+ * Description of the assessment.
70
+ */
71
+ readonly description: pulumi.Output<string | undefined>;
72
+ /**
73
+ * Unique identifier of the framework the assessment will be created from.
74
+ */
75
+ readonly frameworkId: pulumi.Output<string>;
76
+ /**
77
+ * Name of the assessment.
78
+ */
79
+ readonly name: pulumi.Output<string>;
80
+ /**
81
+ * List of roles for the assessment. See `roles` below.
82
+ */
83
+ readonly roles: pulumi.Output<outputs.auditmanager.AssessmentRole[]>;
84
+ /**
85
+ * Complete list of all roles with access to the assessment. This includes both roles explicitly configured via the `roles` block, and any roles which have access to all Audit Manager assessments by default.
86
+ */
87
+ readonly rolesAlls: pulumi.Output<outputs.auditmanager.AssessmentRolesAll[]>;
88
+ /**
89
+ * Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below.
90
+ *
91
+ * The following arguments are optional:
92
+ */
93
+ readonly scope: pulumi.Output<outputs.auditmanager.AssessmentScope | undefined>;
94
+ /**
95
+ * Status of the assessment. Valid values are `ACTIVE` and `INACTIVE`.
96
+ */
97
+ readonly status: pulumi.Output<string>;
98
+ /**
99
+ * A map of tags to assign to the assessment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
100
+ */
101
+ readonly tags: pulumi.Output<{
102
+ [key: string]: string;
103
+ } | undefined>;
104
+ readonly tagsAll: pulumi.Output<{
105
+ [key: string]: string;
106
+ }>;
107
+ /**
108
+ * Create a Assessment resource with the given unique name, arguments, and options.
109
+ *
110
+ * @param name The _unique_ name of the resource.
111
+ * @param args The arguments to use to populate this resource's properties.
112
+ * @param opts A bag of options that control this resource's behavior.
113
+ */
114
+ constructor(name: string, args: AssessmentArgs, opts?: pulumi.CustomResourceOptions);
115
+ }
116
+ /**
117
+ * Input properties used for looking up and filtering Assessment resources.
118
+ */
119
+ export interface AssessmentState {
120
+ /**
121
+ * Amazon Resource Name (ARN) of the assessment.
122
+ */
123
+ arn?: pulumi.Input<string>;
124
+ /**
125
+ * Assessment report storage destination configuration. See `assessmentReportsDestination` below.
126
+ */
127
+ assessmentReportsDestination?: pulumi.Input<inputs.auditmanager.AssessmentAssessmentReportsDestination>;
128
+ /**
129
+ * Description of the assessment.
130
+ */
131
+ description?: pulumi.Input<string>;
132
+ /**
133
+ * Unique identifier of the framework the assessment will be created from.
134
+ */
135
+ frameworkId?: pulumi.Input<string>;
136
+ /**
137
+ * Name of the assessment.
138
+ */
139
+ name?: pulumi.Input<string>;
140
+ /**
141
+ * List of roles for the assessment. See `roles` below.
142
+ */
143
+ roles?: pulumi.Input<pulumi.Input<inputs.auditmanager.AssessmentRole>[]>;
144
+ /**
145
+ * Complete list of all roles with access to the assessment. This includes both roles explicitly configured via the `roles` block, and any roles which have access to all Audit Manager assessments by default.
146
+ */
147
+ rolesAlls?: pulumi.Input<pulumi.Input<inputs.auditmanager.AssessmentRolesAll>[]>;
148
+ /**
149
+ * Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below.
150
+ *
151
+ * The following arguments are optional:
152
+ */
153
+ scope?: pulumi.Input<inputs.auditmanager.AssessmentScope>;
154
+ /**
155
+ * Status of the assessment. Valid values are `ACTIVE` and `INACTIVE`.
156
+ */
157
+ status?: pulumi.Input<string>;
158
+ /**
159
+ * A map of tags to assign to the assessment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
160
+ */
161
+ tags?: pulumi.Input<{
162
+ [key: string]: pulumi.Input<string>;
163
+ }>;
164
+ tagsAll?: pulumi.Input<{
165
+ [key: string]: pulumi.Input<string>;
166
+ }>;
167
+ }
168
+ /**
169
+ * The set of arguments for constructing a Assessment resource.
170
+ */
171
+ export interface AssessmentArgs {
172
+ /**
173
+ * Assessment report storage destination configuration. See `assessmentReportsDestination` below.
174
+ */
175
+ assessmentReportsDestination?: pulumi.Input<inputs.auditmanager.AssessmentAssessmentReportsDestination>;
176
+ /**
177
+ * Description of the assessment.
178
+ */
179
+ description?: pulumi.Input<string>;
180
+ /**
181
+ * Unique identifier of the framework the assessment will be created from.
182
+ */
183
+ frameworkId: pulumi.Input<string>;
184
+ /**
185
+ * Name of the assessment.
186
+ */
187
+ name: pulumi.Input<string>;
188
+ /**
189
+ * List of roles for the assessment. See `roles` below.
190
+ */
191
+ roles: pulumi.Input<pulumi.Input<inputs.auditmanager.AssessmentRole>[]>;
192
+ /**
193
+ * Amazon Web Services accounts and services that are in scope for the assessment. See `scope` below.
194
+ *
195
+ * The following arguments are optional:
196
+ */
197
+ scope?: pulumi.Input<inputs.auditmanager.AssessmentScope>;
198
+ /**
199
+ * A map of tags to assign to the assessment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
200
+ */
201
+ tags?: pulumi.Input<{
202
+ [key: string]: pulumi.Input<string>;
203
+ }>;
204
+ }
@@ -0,0 +1,118 @@
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.Assessment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Resource for managing an AWS Audit Manager Assessment.
10
+ *
11
+ * ## Example Usage
12
+ * ### Basic Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as aws from "@pulumi/aws";
17
+ *
18
+ * const test = new aws.auditmanager.Assessment("test", {
19
+ * name: "example",
20
+ * assessmentReportsDestination: {
21
+ * destination: `s3://${aws_s3_bucket.test.id}`,
22
+ * destinationType: "S3",
23
+ * },
24
+ * frameworkId: aws_auditmanager_framework.test.id,
25
+ * roles: [{
26
+ * roleArn: aws_iam_role.test.arn,
27
+ * roleType: "PROCESS_OWNER",
28
+ * }],
29
+ * scope: {
30
+ * awsAccounts: [{
31
+ * id: data.aws_caller_identity.current.account_id,
32
+ * }],
33
+ * awsServices: [{
34
+ * serviceName: "S3",
35
+ * }],
36
+ * },
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * Audit Manager Assessments can be imported using the assessment `id`, e.g.,
43
+ *
44
+ * ```sh
45
+ * $ pulumi import aws:auditmanager/assessment:Assessment example abc123-de45
46
+ * ```
47
+ */
48
+ class Assessment extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing Assessment resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new Assessment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
60
+ }
61
+ /**
62
+ * Returns true if the given object is an instance of Assessment. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj) {
66
+ if (obj === undefined || obj === null) {
67
+ return false;
68
+ }
69
+ return obj['__pulumiType'] === Assessment.__pulumiType;
70
+ }
71
+ constructor(name, argsOrState, opts) {
72
+ let resourceInputs = {};
73
+ opts = opts || {};
74
+ if (opts.id) {
75
+ const state = argsOrState;
76
+ resourceInputs["arn"] = state ? state.arn : undefined;
77
+ resourceInputs["assessmentReportsDestination"] = state ? state.assessmentReportsDestination : undefined;
78
+ resourceInputs["description"] = state ? state.description : undefined;
79
+ resourceInputs["frameworkId"] = state ? state.frameworkId : undefined;
80
+ resourceInputs["name"] = state ? state.name : undefined;
81
+ resourceInputs["roles"] = state ? state.roles : undefined;
82
+ resourceInputs["rolesAlls"] = state ? state.rolesAlls : undefined;
83
+ resourceInputs["scope"] = state ? state.scope : undefined;
84
+ resourceInputs["status"] = state ? state.status : undefined;
85
+ resourceInputs["tags"] = state ? state.tags : undefined;
86
+ resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
87
+ }
88
+ else {
89
+ const args = argsOrState;
90
+ if ((!args || args.frameworkId === undefined) && !opts.urn) {
91
+ throw new Error("Missing required property 'frameworkId'");
92
+ }
93
+ if ((!args || args.name === undefined) && !opts.urn) {
94
+ throw new Error("Missing required property 'name'");
95
+ }
96
+ if ((!args || args.roles === undefined) && !opts.urn) {
97
+ throw new Error("Missing required property 'roles'");
98
+ }
99
+ resourceInputs["assessmentReportsDestination"] = args ? args.assessmentReportsDestination : undefined;
100
+ resourceInputs["description"] = args ? args.description : undefined;
101
+ resourceInputs["frameworkId"] = args ? args.frameworkId : undefined;
102
+ resourceInputs["name"] = args ? args.name : undefined;
103
+ resourceInputs["roles"] = args ? args.roles : undefined;
104
+ resourceInputs["scope"] = args ? args.scope : undefined;
105
+ resourceInputs["tags"] = args ? args.tags : undefined;
106
+ resourceInputs["arn"] = undefined /*out*/;
107
+ resourceInputs["rolesAlls"] = undefined /*out*/;
108
+ resourceInputs["status"] = undefined /*out*/;
109
+ resourceInputs["tagsAll"] = undefined /*out*/;
110
+ }
111
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
112
+ super(Assessment.__pulumiType, name, resourceInputs, opts);
113
+ }
114
+ }
115
+ exports.Assessment = Assessment;
116
+ /** @internal */
117
+ Assessment.__pulumiType = 'aws:auditmanager/assessment:Assessment';
118
+ //# sourceMappingURL=assessment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessment.js","sourceRoot":"","sources":["../../auditmanager/assessment.ts"],"names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