@pulumi/aws 7.46.0-alpha.1788961775 → 7.46.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/accountaccess/application.d.ts +4 -2
- package/accountaccess/application.d.ts.map +1 -1
- package/accountaccess/application.js +4 -2
- package/accountaccess/application.js.map +1 -1
- package/accountaccess/entitlement.d.ts +208 -0
- package/accountaccess/entitlement.d.ts.map +1 -0
- package/accountaccess/entitlement.js +203 -0
- package/accountaccess/entitlement.js.map +1 -0
- package/accountaccess/getApplication.d.ts +129 -0
- package/accountaccess/getApplication.d.ts.map +1 -0
- package/accountaccess/getApplication.js +107 -0
- package/accountaccess/getApplication.js.map +1 -0
- package/accountaccess/getEntitlements.d.ts +138 -0
- package/accountaccess/getEntitlements.d.ts.map +1 -0
- package/accountaccess/getEntitlements.js +131 -0
- package/accountaccess/getEntitlements.js.map +1 -0
- package/accountaccess/index.d.ts +9 -0
- package/accountaccess/index.d.ts.map +1 -1
- package/accountaccess/index.js +12 -1
- package/accountaccess/index.js.map +1 -1
- package/agentregistry/getRegistry.d.ts +134 -0
- package/agentregistry/getRegistry.d.ts.map +1 -0
- package/agentregistry/getRegistry.js +101 -0
- package/agentregistry/getRegistry.js.map +1 -0
- package/agentregistry/index.d.ts +7 -0
- package/agentregistry/index.d.ts.map +1 -0
- package/agentregistry/index.js +48 -0
- package/agentregistry/index.js.map +1 -0
- package/agentregistry/registry.d.ts +261 -0
- package/agentregistry/registry.d.ts.map +1 -0
- package/agentregistry/registry.js +200 -0
- package/agentregistry/registry.js.map +1 -0
- package/appconfig/hostedConfigurationVersion.d.ts +12 -0
- package/appconfig/hostedConfigurationVersion.d.ts.map +1 -1
- package/appconfig/hostedConfigurationVersion.js +2 -0
- package/appconfig/hostedConfigurationVersion.js.map +1 -1
- package/bedrock/agentcoreHarness.d.ts +9 -9
- package/bedrock/agentcoreHarness.d.ts.map +1 -1
- package/bedrock/agentcoreHarness.js +3 -0
- package/bedrock/agentcoreHarness.js.map +1 -1
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts +16 -2
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts.map +1 -1
- package/bedrock/agentcoreOauth2CredentialProvider.js +15 -2
- package/bedrock/agentcoreOauth2CredentialProvider.js.map +1 -1
- package/bedrock/agentcoreRegistry.d.ts +96 -10
- package/bedrock/agentcoreRegistry.d.ts.map +1 -1
- package/bedrock/agentcoreRegistry.js +42 -7
- package/bedrock/agentcoreRegistry.js.map +1 -1
- package/bedrockmodel/index.d.ts +3 -0
- package/bedrockmodel/index.d.ts.map +1 -1
- package/bedrockmodel/index.js +6 -1
- package/bedrockmodel/index.js.map +1 -1
- package/bedrockmodel/invocationJob.d.ts +282 -0
- package/bedrockmodel/invocationJob.d.ts.map +1 -0
- package/bedrockmodel/invocationJob.js +171 -0
- package/bedrockmodel/invocationJob.js.map +1 -0
- package/cloudwatch/metricAlarm.d.ts +35 -0
- package/cloudwatch/metricAlarm.d.ts.map +1 -1
- package/cloudwatch/metricAlarm.js +25 -0
- package/cloudwatch/metricAlarm.js.map +1 -1
- package/dms/dataProvider.d.ts +224 -0
- package/dms/dataProvider.d.ts.map +1 -0
- package/dms/dataProvider.js +157 -0
- package/dms/dataProvider.js.map +1 -0
- package/dms/index.d.ts +6 -0
- package/dms/index.d.ts.map +1 -1
- package/dms/index.js +11 -1
- package/dms/index.js.map +1 -1
- package/dms/instanceProfile.d.ts +231 -0
- package/dms/instanceProfile.d.ts.map +1 -0
- package/dms/instanceProfile.js +142 -0
- package/dms/instanceProfile.js.map +1 -0
- package/fis/index.d.ts +3 -0
- package/fis/index.d.ts.map +1 -1
- package/fis/index.js +6 -1
- package/fis/index.js.map +1 -1
- package/fis/safetyLeverState.d.ts +114 -0
- package/fis/safetyLeverState.d.ts.map +1 -0
- package/fis/safetyLeverState.js +112 -0
- package/fis/safetyLeverState.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/lambda/alias.d.ts +14 -2
- package/lambda/alias.d.ts.map +1 -1
- package/lambda/alias.js +14 -2
- package/lambda/alias.js.map +1 -1
- package/msk/replicator.d.ts +123 -3
- package/msk/replicator.d.ts.map +1 -1
- package/msk/replicator.js +120 -0
- package/msk/replicator.js.map +1 -1
- package/package.json +2 -2
- package/rds/cluster.d.ts +15 -3
- package/rds/cluster.d.ts.map +1 -1
- package/rds/cluster.js +2 -0
- package/rds/cluster.js.map +1 -1
- package/rds/clusterInstance.d.ts +21 -9
- package/rds/clusterInstance.d.ts.map +1 -1
- package/rds/clusterInstance.js +2 -0
- package/rds/clusterInstance.js.map +1 -1
- package/rds/getEvents.d.ts +160 -0
- package/rds/getEvents.d.ts.map +1 -0
- package/rds/getEvents.js +123 -0
- package/rds/getEvents.js.map +1 -0
- package/rds/index.d.ts +3 -0
- package/rds/index.d.ts.map +1 -1
- package/rds/index.js +5 -2
- package/rds/index.js.map +1 -1
- package/rds/instance.d.ts +12 -0
- package/rds/instance.d.ts.map +1 -1
- package/rds/instance.js +2 -0
- package/rds/instance.js.map +1 -1
- package/types/input.d.ts +1002 -14
- package/types/input.d.ts.map +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1164 -14
- package/types/output.d.ts.map +1 -1
- package/types/output.js.map +1 -1
|
@@ -2,9 +2,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
-
* Manages an AWS Account Access Application
|
|
5
|
+
* Manages an AWS Account Access Application. An Application binds Account Access to an IAM Identity Center instance and serves as the parent container for entitlements that grant principals access to roles in target accounts.
|
|
6
6
|
*
|
|
7
|
-
* > **
|
|
7
|
+
* > **Note:** Only one Application may exist per IAM Identity Center instance. Attempting to create a second Application for the same instance produces an error directing you to import the existing resource.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** Granting access to roles in target accounts is done with `aws.accountaccess.Entitlement`. Each target role must trust the Account Access service in its `assumeRolePolicy` — see that resource's documentation for the required trust policy.
|
|
8
10
|
*
|
|
9
11
|
* ## Example Usage
|
|
10
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../accountaccess/application.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAI3C
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../accountaccess/application.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,WAAW;IAOxI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,WAAW;IAOtD;;OAEG;IACH,SAAgC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;;;OAIG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACvG;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CA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CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;CACjF;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC7E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;CACjF"}
|
|
@@ -29,9 +29,11 @@ exports.Application = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("../utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* Manages an AWS Account Access Application
|
|
32
|
+
* Manages an AWS Account Access Application. An Application binds Account Access to an IAM Identity Center instance and serves as the parent container for entitlements that grant principals access to roles in target accounts.
|
|
33
33
|
*
|
|
34
|
-
* > **
|
|
34
|
+
* > **Note:** Only one Application may exist per IAM Identity Center instance. Attempting to create a second Application for the same instance produces an error directing you to import the existing resource.
|
|
35
|
+
*
|
|
36
|
+
* > **Note:** Granting access to roles in target accounts is done with `aws.accountaccess.Entitlement`. Each target role must trust the Account Access service in its `assumeRolePolicy` — see that resource's documentation for the required trust policy.
|
|
35
37
|
*
|
|
36
38
|
* ## Example Usage
|
|
37
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../accountaccess/application.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../accountaccess/application.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,2CAA2C,CAAC;IAElF;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAsCD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,G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AAC,CAAC;IAChE,CAAC;;AA3FL,kCA4FC"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages an AWS Account Access Entitlement. An Entitlement grants an IAM Identity Center principal the ability to assume a specific IAM role in a target AWS account through an Account Access Application.
|
|
6
|
+
*
|
|
7
|
+
* > **Note:** Entitlements are immutable. Changing `applicationArn` or `entitlement` triggers replacement.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** The IAM role referenced by `entitlement.principal_role.role_arn` must have a trust policy that allows the Account Access service to assume it. The role's `assumeRolePolicy` must grant `sts:AssumeRole`, `sts:SetContext`, and `sts:TagSession` to the `account-access.amazonaws.com` service principal. Without `sts:TagSession`, credential retrieval for the entitlement fails. See the Complete Example below.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### User Principal
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.accountaccess.Entitlement("example", {
|
|
20
|
+
* entitlement: {
|
|
21
|
+
* principalRole: {
|
|
22
|
+
* principal: {
|
|
23
|
+
* identityCenter: {
|
|
24
|
+
* userId: "11111111-2222-3333-4444-555555555555",
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* roleArn: "arn:aws:iam::123456789012:role/Developer",
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* applicationArn: exampleAwsAccountaccessApplication.arn,
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### Group Principal
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as aws from "@pulumi/aws";
|
|
39
|
+
*
|
|
40
|
+
* const example = new aws.accountaccess.Entitlement("example", {
|
|
41
|
+
* entitlement: {
|
|
42
|
+
* principalRole: {
|
|
43
|
+
* principal: {
|
|
44
|
+
* identityCenter: {
|
|
45
|
+
* groupId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* roleArn: "arn:aws:iam::123456789012:role/Engineering",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* applicationArn: exampleAwsAccountaccessApplication.arn,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ### Complete Example
|
|
56
|
+
*
|
|
57
|
+
* The target IAM role must trust the Account Access service. This example provisions a role with the required trust policy and grants an entitlement to it.
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as aws from "@pulumi/aws";
|
|
62
|
+
*
|
|
63
|
+
* const example = aws.ssoadmin.getInstances({});
|
|
64
|
+
* const exampleApplication = new aws.accountaccess.Application("example", {identitySource: {
|
|
65
|
+
* identityCenter: {
|
|
66
|
+
* instanceArn: example.then(example => example.arns?.[0]),
|
|
67
|
+
* },
|
|
68
|
+
* }});
|
|
69
|
+
* // The target role must allow the Account Access service to assume it.
|
|
70
|
+
* // sts:TagSession is required for credential retrieval to succeed.
|
|
71
|
+
* const target = new aws.iam.Role("target", {
|
|
72
|
+
* name: "example-account-access-developer",
|
|
73
|
+
* assumeRolePolicy: JSON.stringify({
|
|
74
|
+
* Version: "2012-10-17",
|
|
75
|
+
* Statement: [{
|
|
76
|
+
* Effect: "Allow",
|
|
77
|
+
* Principal: {
|
|
78
|
+
* Service: "account-access.amazonaws.com",
|
|
79
|
+
* },
|
|
80
|
+
* Action: [
|
|
81
|
+
* "sts:AssumeRole",
|
|
82
|
+
* "sts:SetContext",
|
|
83
|
+
* "sts:TagSession",
|
|
84
|
+
* ],
|
|
85
|
+
* }],
|
|
86
|
+
* }),
|
|
87
|
+
* });
|
|
88
|
+
* const exampleEntitlement = new aws.accountaccess.Entitlement("example", {
|
|
89
|
+
* entitlement: {
|
|
90
|
+
* principalRole: {
|
|
91
|
+
* principal: {
|
|
92
|
+
* identityCenter: {
|
|
93
|
+
* userId: "11111111-2222-3333-4444-555555555555",
|
|
94
|
+
* },
|
|
95
|
+
* },
|
|
96
|
+
* roleArn: target.arn,
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* applicationArn: exampleApplication.arn,
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* ## Import
|
|
104
|
+
*
|
|
105
|
+
* ### Identity Schema
|
|
106
|
+
*
|
|
107
|
+
* #### Required
|
|
108
|
+
*
|
|
109
|
+
* * `applicationArn` (String) ARN of the parent Account Access Application.
|
|
110
|
+
* * `entitlementId` (String) Service-assigned unique identifier for this Entitlement.
|
|
111
|
+
*
|
|
112
|
+
* #### Optional
|
|
113
|
+
*
|
|
114
|
+
* * `accountId` (String) AWS Account where this resource is managed.
|
|
115
|
+
* * `region` (String) Region where this resource is managed.
|
|
116
|
+
*
|
|
117
|
+
* Using `pulumi import`, import Account Access Entitlements using the composite ID. For example:
|
|
118
|
+
*
|
|
119
|
+
* ```sh
|
|
120
|
+
* $ pulumi import aws:accountaccess/entitlement:Entitlement example arn:aws:account-access:us-east-1:123456789012:application/aam-0123456789abcdef,ent-0123456789abcdef
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare class Entitlement extends pulumi.CustomResource {
|
|
124
|
+
/**
|
|
125
|
+
* Get an existing Entitlement resource's state with the given name, ID, and optional extra
|
|
126
|
+
* properties used to qualify the lookup.
|
|
127
|
+
*
|
|
128
|
+
* @param name The _unique_ name of the resulting resource.
|
|
129
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
130
|
+
* @param state Any extra arguments used during the lookup.
|
|
131
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
132
|
+
*/
|
|
133
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EntitlementState, opts?: pulumi.CustomResourceOptions): Entitlement;
|
|
134
|
+
/**
|
|
135
|
+
* Returns true if the given object is an instance of Entitlement. This is designed to work even
|
|
136
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
137
|
+
*/
|
|
138
|
+
static isInstance(obj: any): obj is Entitlement;
|
|
139
|
+
/**
|
|
140
|
+
* ARN of the parent Account Access Application. Forces replacement when changed.
|
|
141
|
+
*/
|
|
142
|
+
readonly applicationArn: pulumi.Output<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Entitlement configuration. See `entitlement` Block below.
|
|
145
|
+
*
|
|
146
|
+
* The following arguments are optional:
|
|
147
|
+
*/
|
|
148
|
+
readonly entitlement: pulumi.Output<outputs.accountaccess.EntitlementEntitlement>;
|
|
149
|
+
/**
|
|
150
|
+
* Service-assigned unique identifier for this Entitlement.
|
|
151
|
+
*/
|
|
152
|
+
readonly entitlementId: pulumi.Output<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
155
|
+
*/
|
|
156
|
+
readonly region: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Create a Entitlement resource with the given unique name, arguments, and options.
|
|
159
|
+
*
|
|
160
|
+
* @param name The _unique_ name of the resource.
|
|
161
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
162
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
163
|
+
*/
|
|
164
|
+
constructor(name: string, args: EntitlementArgs, opts?: pulumi.CustomResourceOptions);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Input properties used for looking up and filtering Entitlement resources.
|
|
168
|
+
*/
|
|
169
|
+
export interface EntitlementState {
|
|
170
|
+
/**
|
|
171
|
+
* ARN of the parent Account Access Application. Forces replacement when changed.
|
|
172
|
+
*/
|
|
173
|
+
applicationArn?: pulumi.Input<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* Entitlement configuration. See `entitlement` Block below.
|
|
176
|
+
*
|
|
177
|
+
* The following arguments are optional:
|
|
178
|
+
*/
|
|
179
|
+
entitlement?: pulumi.Input<inputs.accountaccess.EntitlementEntitlement | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* Service-assigned unique identifier for this Entitlement.
|
|
182
|
+
*/
|
|
183
|
+
entitlementId?: pulumi.Input<string | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
186
|
+
*/
|
|
187
|
+
region?: pulumi.Input<string | undefined>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The set of arguments for constructing a Entitlement resource.
|
|
191
|
+
*/
|
|
192
|
+
export interface EntitlementArgs {
|
|
193
|
+
/**
|
|
194
|
+
* ARN of the parent Account Access Application. Forces replacement when changed.
|
|
195
|
+
*/
|
|
196
|
+
applicationArn: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Entitlement configuration. See `entitlement` Block below.
|
|
199
|
+
*
|
|
200
|
+
* The following arguments are optional:
|
|
201
|
+
*/
|
|
202
|
+
entitlement: pulumi.Input<inputs.accountaccess.EntitlementEntitlement>;
|
|
203
|
+
/**
|
|
204
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
205
|
+
*/
|
|
206
|
+
region?: pulumi.Input<string | undefined>;
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=entitlement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlement.d.ts","sourceRoot":"","sources":["../../accountaccess/entitl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AC;IAClD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACpF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACvE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Entitlement = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manages an AWS Account Access Entitlement. An Entitlement grants an IAM Identity Center principal the ability to assume a specific IAM role in a target AWS account through an Account Access Application.
|
|
33
|
+
*
|
|
34
|
+
* > **Note:** Entitlements are immutable. Changing `applicationArn` or `entitlement` triggers replacement.
|
|
35
|
+
*
|
|
36
|
+
* > **Note:** The IAM role referenced by `entitlement.principal_role.role_arn` must have a trust policy that allows the Account Access service to assume it. The role's `assumeRolePolicy` must grant `sts:AssumeRole`, `sts:SetContext`, and `sts:TagSession` to the `account-access.amazonaws.com` service principal. Without `sts:TagSession`, credential retrieval for the entitlement fails. See the Complete Example below.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ### User Principal
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as aws from "@pulumi/aws";
|
|
45
|
+
*
|
|
46
|
+
* const example = new aws.accountaccess.Entitlement("example", {
|
|
47
|
+
* entitlement: {
|
|
48
|
+
* principalRole: {
|
|
49
|
+
* principal: {
|
|
50
|
+
* identityCenter: {
|
|
51
|
+
* userId: "11111111-2222-3333-4444-555555555555",
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* roleArn: "arn:aws:iam::123456789012:role/Developer",
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* applicationArn: exampleAwsAccountaccessApplication.arn,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ### Group Principal
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as aws from "@pulumi/aws";
|
|
66
|
+
*
|
|
67
|
+
* const example = new aws.accountaccess.Entitlement("example", {
|
|
68
|
+
* entitlement: {
|
|
69
|
+
* principalRole: {
|
|
70
|
+
* principal: {
|
|
71
|
+
* identityCenter: {
|
|
72
|
+
* groupId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* roleArn: "arn:aws:iam::123456789012:role/Engineering",
|
|
76
|
+
* },
|
|
77
|
+
* },
|
|
78
|
+
* applicationArn: exampleAwsAccountaccessApplication.arn,
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* ### Complete Example
|
|
83
|
+
*
|
|
84
|
+
* The target IAM role must trust the Account Access service. This example provisions a role with the required trust policy and grants an entitlement to it.
|
|
85
|
+
*
|
|
86
|
+
* ```typescript
|
|
87
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
88
|
+
* import * as aws from "@pulumi/aws";
|
|
89
|
+
*
|
|
90
|
+
* const example = aws.ssoadmin.getInstances({});
|
|
91
|
+
* const exampleApplication = new aws.accountaccess.Application("example", {identitySource: {
|
|
92
|
+
* identityCenter: {
|
|
93
|
+
* instanceArn: example.then(example => example.arns?.[0]),
|
|
94
|
+
* },
|
|
95
|
+
* }});
|
|
96
|
+
* // The target role must allow the Account Access service to assume it.
|
|
97
|
+
* // sts:TagSession is required for credential retrieval to succeed.
|
|
98
|
+
* const target = new aws.iam.Role("target", {
|
|
99
|
+
* name: "example-account-access-developer",
|
|
100
|
+
* assumeRolePolicy: JSON.stringify({
|
|
101
|
+
* Version: "2012-10-17",
|
|
102
|
+
* Statement: [{
|
|
103
|
+
* Effect: "Allow",
|
|
104
|
+
* Principal: {
|
|
105
|
+
* Service: "account-access.amazonaws.com",
|
|
106
|
+
* },
|
|
107
|
+
* Action: [
|
|
108
|
+
* "sts:AssumeRole",
|
|
109
|
+
* "sts:SetContext",
|
|
110
|
+
* "sts:TagSession",
|
|
111
|
+
* ],
|
|
112
|
+
* }],
|
|
113
|
+
* }),
|
|
114
|
+
* });
|
|
115
|
+
* const exampleEntitlement = new aws.accountaccess.Entitlement("example", {
|
|
116
|
+
* entitlement: {
|
|
117
|
+
* principalRole: {
|
|
118
|
+
* principal: {
|
|
119
|
+
* identityCenter: {
|
|
120
|
+
* userId: "11111111-2222-3333-4444-555555555555",
|
|
121
|
+
* },
|
|
122
|
+
* },
|
|
123
|
+
* roleArn: target.arn,
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* applicationArn: exampleApplication.arn,
|
|
127
|
+
* });
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* ## Import
|
|
131
|
+
*
|
|
132
|
+
* ### Identity Schema
|
|
133
|
+
*
|
|
134
|
+
* #### Required
|
|
135
|
+
*
|
|
136
|
+
* * `applicationArn` (String) ARN of the parent Account Access Application.
|
|
137
|
+
* * `entitlementId` (String) Service-assigned unique identifier for this Entitlement.
|
|
138
|
+
*
|
|
139
|
+
* #### Optional
|
|
140
|
+
*
|
|
141
|
+
* * `accountId` (String) AWS Account where this resource is managed.
|
|
142
|
+
* * `region` (String) Region where this resource is managed.
|
|
143
|
+
*
|
|
144
|
+
* Using `pulumi import`, import Account Access Entitlements using the composite ID. For example:
|
|
145
|
+
*
|
|
146
|
+
* ```sh
|
|
147
|
+
* $ pulumi import aws:accountaccess/entitlement:Entitlement example arn:aws:account-access:us-east-1:123456789012:application/aam-0123456789abcdef,ent-0123456789abcdef
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
class Entitlement extends pulumi.CustomResource {
|
|
151
|
+
/**
|
|
152
|
+
* Get an existing Entitlement resource's state with the given name, ID, and optional extra
|
|
153
|
+
* properties used to qualify the lookup.
|
|
154
|
+
*
|
|
155
|
+
* @param name The _unique_ name of the resulting resource.
|
|
156
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
157
|
+
* @param state Any extra arguments used during the lookup.
|
|
158
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
159
|
+
*/
|
|
160
|
+
static get(name, id, state, opts) {
|
|
161
|
+
return new Entitlement(name, state, { ...opts, id: id });
|
|
162
|
+
}
|
|
163
|
+
/** @internal */
|
|
164
|
+
static __pulumiType = 'aws:accountaccess/entitlement:Entitlement';
|
|
165
|
+
/**
|
|
166
|
+
* Returns true if the given object is an instance of Entitlement. This is designed to work even
|
|
167
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
168
|
+
*/
|
|
169
|
+
static isInstance(obj) {
|
|
170
|
+
if (obj === undefined || obj === null) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
return obj['__pulumiType'] === Entitlement.__pulumiType;
|
|
174
|
+
}
|
|
175
|
+
constructor(name, argsOrState, opts) {
|
|
176
|
+
let resourceInputs = {};
|
|
177
|
+
opts = opts || {};
|
|
178
|
+
if (opts.id) {
|
|
179
|
+
const state = argsOrState;
|
|
180
|
+
resourceInputs["applicationArn"] = state?.applicationArn;
|
|
181
|
+
resourceInputs["entitlement"] = state?.entitlement;
|
|
182
|
+
resourceInputs["entitlementId"] = state?.entitlementId;
|
|
183
|
+
resourceInputs["region"] = state?.region;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
const args = argsOrState;
|
|
187
|
+
if (args?.applicationArn === undefined && !opts.urn) {
|
|
188
|
+
throw new Error("Missing required property 'applicationArn'");
|
|
189
|
+
}
|
|
190
|
+
if (args?.entitlement === undefined && !opts.urn) {
|
|
191
|
+
throw new Error("Missing required property 'entitlement'");
|
|
192
|
+
}
|
|
193
|
+
resourceInputs["applicationArn"] = args?.applicationArn;
|
|
194
|
+
resourceInputs["entitlement"] = args?.entitlement;
|
|
195
|
+
resourceInputs["region"] = args?.region;
|
|
196
|
+
resourceInputs["entitlementId"] = undefined /*out*/;
|
|
197
|
+
}
|
|
198
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
199
|
+
super(Entitlement.__pulumiType, name, resourceInputs, opts);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
exports.Entitlement = Entitlement;
|
|
203
|
+
//# sourceMappingURL=entitlement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlement.js","sourceRoot":"","sources":["../../accountaccess/entitlement.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsHG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,2CAA2C,CAAC;IAElF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,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,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA/EL,kCAgFC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Looks up an existing AWS Account Access Application. Lookup is by Application ARN or by IAM Identity Center instance ARN (one Application per instance).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ### By Application ARN
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as aws from "@pulumi/aws";
|
|
13
|
+
*
|
|
14
|
+
* const example = aws.accountaccess.getApplication({
|
|
15
|
+
* arn: "arn:aws:account-access:us-east-1:123456789012:application/aam-0123456789abcdef",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ### By Identity Center Instance
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as aws from "@pulumi/aws";
|
|
24
|
+
*
|
|
25
|
+
* const example = aws.ssoadmin.getInstances({});
|
|
26
|
+
* const exampleGetApplication = example.then(example => aws.accountaccess.getApplication({
|
|
27
|
+
* identityCenterInstanceArn: example.arns?.[0],
|
|
28
|
+
* }));
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getApplication(args?: GetApplicationArgs, opts?: pulumi.InvokeOptions): Promise<GetApplicationResult>;
|
|
32
|
+
/**
|
|
33
|
+
* A collection of arguments for invoking getApplication.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetApplicationArgs {
|
|
36
|
+
/**
|
|
37
|
+
* ARN of the Application to look up. Exactly one of `arn` or `identityCenterInstanceArn` must be specified.
|
|
38
|
+
*/
|
|
39
|
+
arn?: string;
|
|
40
|
+
/**
|
|
41
|
+
* ARN of the IAM Identity Center instance whose bound Application should be returned. Exactly one of `arn` or `identityCenterInstanceArn` must be specified.
|
|
42
|
+
*/
|
|
43
|
+
identityCenterInstanceArn?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
46
|
+
*/
|
|
47
|
+
region?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A collection of values returned by getApplication.
|
|
51
|
+
*/
|
|
52
|
+
export interface GetApplicationResult {
|
|
53
|
+
readonly arn: string;
|
|
54
|
+
/**
|
|
55
|
+
* Date and time, in [RFC3339 format](https://datatracker.ietf.org/doc/html/rfc3339), when the Application was created.
|
|
56
|
+
*/
|
|
57
|
+
readonly createdAt: string;
|
|
58
|
+
readonly identityCenterInstanceArn?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Identity source for the application. Forces replacement when changed. See `identitySource` Block below.
|
|
61
|
+
*/
|
|
62
|
+
readonly identitySources: outputs.accountaccess.GetApplicationIdentitySource[];
|
|
63
|
+
readonly region: string;
|
|
64
|
+
/**
|
|
65
|
+
* Current lifecycle status. One of `CREATE_IN_PROGRESS`, `ACTIVE`, `DELETE_IN_PROGRESS`, `CREATE_FAILED`, `DELETE_FAILED`.
|
|
66
|
+
*/
|
|
67
|
+
readonly status: string;
|
|
68
|
+
/**
|
|
69
|
+
* Map of tags assigned to the Application.
|
|
70
|
+
*/
|
|
71
|
+
readonly tags: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Internal tenant identifier returned by the service.
|
|
76
|
+
*/
|
|
77
|
+
readonly tenantId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Date and time, in [RFC3339 format](https://datatracker.ietf.org/doc/html/rfc3339), when the Application was last updated.
|
|
80
|
+
*/
|
|
81
|
+
readonly updatedAt: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Looks up an existing AWS Account Access Application. Lookup is by Application ARN or by IAM Identity Center instance ARN (one Application per instance).
|
|
85
|
+
*
|
|
86
|
+
* ## Example Usage
|
|
87
|
+
*
|
|
88
|
+
* ### By Application ARN
|
|
89
|
+
*
|
|
90
|
+
* ```typescript
|
|
91
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
92
|
+
* import * as aws from "@pulumi/aws";
|
|
93
|
+
*
|
|
94
|
+
* const example = aws.accountaccess.getApplication({
|
|
95
|
+
* arn: "arn:aws:account-access:us-east-1:123456789012:application/aam-0123456789abcdef",
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* ### By Identity Center Instance
|
|
100
|
+
*
|
|
101
|
+
* ```typescript
|
|
102
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
103
|
+
* import * as aws from "@pulumi/aws";
|
|
104
|
+
*
|
|
105
|
+
* const example = aws.ssoadmin.getInstances({});
|
|
106
|
+
* const exampleGetApplication = example.then(example => aws.accountaccess.getApplication({
|
|
107
|
+
* identityCenterInstanceArn: example.arns?.[0],
|
|
108
|
+
* }));
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare function getApplicationOutput(args?: GetApplicationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApplicationResult>;
|
|
112
|
+
/**
|
|
113
|
+
* A collection of arguments for invoking getApplication.
|
|
114
|
+
*/
|
|
115
|
+
export interface GetApplicationOutputArgs {
|
|
116
|
+
/**
|
|
117
|
+
* ARN of the Application to look up. Exactly one of `arn` or `identityCenterInstanceArn` must be specified.
|
|
118
|
+
*/
|
|
119
|
+
arn?: pulumi.Input<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* ARN of the IAM Identity Center instance whose bound Application should be returned. Exactly one of `arn` or `identityCenterInstanceArn` must be specified.
|
|
122
|
+
*/
|
|
123
|
+
identityCenterInstanceArn?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
126
|
+
*/
|
|
127
|
+
region?: pulumi.Input<string | undefined>;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=getApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getApplication.d.ts","sourceRoot":"","sources":["../../accountaccess/getApplication.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAQpH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,aAAa,CAAC,4BAA4B,EAAE,CAAC;IAC/E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE;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