@pulumi/aws 7.9.0-alpha.1760704543 → 7.9.0-alpha.1761090036
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/amp/index.d.ts +3 -0
- package/amp/index.js +6 -1
- package/amp/index.js.map +1 -1
- package/amp/resourcePolicy.d.ts +214 -0
- package/amp/resourcePolicy.js +182 -0
- package/amp/resourcePolicy.js.map +1 -0
- package/bedrock/agentcoreAgentRuntime.d.ts +356 -0
- package/bedrock/agentcoreAgentRuntime.js +198 -0
- package/bedrock/agentcoreAgentRuntime.js.map +1 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.d.ts +173 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js +96 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js.map +1 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.d.ts +133 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.js +84 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.js.map +1 -0
- package/bedrock/agentcoreBrowser.d.ts +231 -0
- package/bedrock/agentcoreBrowser.js +135 -0
- package/bedrock/agentcoreBrowser.js.map +1 -0
- package/bedrock/agentcoreCodeInterpreter.d.ts +211 -0
- package/bedrock/agentcoreCodeInterpreter.js +125 -0
- package/bedrock/agentcoreCodeInterpreter.js.map +1 -0
- package/bedrock/agentcoreGateway.d.ts +317 -0
- package/bedrock/agentcoreGateway.js +178 -0
- package/bedrock/agentcoreGateway.js.map +1 -0
- package/bedrock/agentcoreGatewayTarget.d.ts +294 -0
- package/bedrock/agentcoreGatewayTarget.js +233 -0
- package/bedrock/agentcoreGatewayTarget.js.map +1 -0
- package/bedrock/index.d.ts +21 -0
- package/bedrock/index.js +36 -1
- package/bedrock/index.js.map +1 -1
- package/cloudwatch/metricAlarm.d.ts +39 -7
- package/cloudwatch/metricAlarm.js +36 -4
- package/cloudwatch/metricAlarm.js.map +1 -1
- package/codebuild/project.d.ts +15 -0
- package/codebuild/project.js +2 -0
- package/codebuild/project.js.map +1 -1
- package/datazone/environment.d.ts +10 -6
- package/datazone/environment.js +1 -3
- package/datazone/environment.js.map +1 -1
- package/dms/endpoint.d.ts +3 -3
- package/ec2/getVpnConnection.d.ts +173 -0
- package/ec2/getVpnConnection.js +92 -0
- package/ec2/getVpnConnection.js.map +1 -0
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +6 -3
- package/ec2/index.js.map +1 -1
- package/ec2/route.d.ts +0 -8
- package/ec2/route.js +0 -8
- package/ec2/route.js.map +1 -1
- package/ec2/routeTable.d.ts +6 -6
- package/ec2/routeTable.js +0 -6
- package/ec2/routeTable.js.map +1 -1
- package/ec2transitgateway/getDirectConnectGatewayAttachment.d.ts +4 -0
- package/ec2transitgateway/getDirectConnectGatewayAttachment.js +4 -0
- package/ec2transitgateway/getDirectConnectGatewayAttachment.js.map +1 -1
- package/ec2transitgateway/getVpcAttachment.d.ts +4 -0
- package/ec2transitgateway/getVpcAttachment.js +4 -0
- package/ec2transitgateway/getVpcAttachment.js.map +1 -1
- package/ec2transitgateway/routeTableAssociation.d.ts +57 -0
- package/ec2transitgateway/routeTableAssociation.js +57 -0
- package/ec2transitgateway/routeTableAssociation.js.map +1 -1
- package/ec2transitgateway/routeTablePropagation.d.ts +57 -0
- package/ec2transitgateway/routeTablePropagation.js +57 -0
- package/ec2transitgateway/routeTablePropagation.js.map +1 -1
- package/emrserverless/application.d.ts +12 -0
- package/emrserverless/application.js +2 -0
- package/emrserverless/application.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/lakeformation/permissions.d.ts +14 -10
- package/lakeformation/permissions.js +14 -10
- package/lakeformation/permissions.js.map +1 -1
- package/odb/cloudAutonomousVmCluster.d.ts +6 -6
- package/odb/cloudAutonomousVmCluster.js +6 -6
- package/odb/cloudExadataInfrastructure.d.ts +2 -2
- package/odb/cloudVmCluster.d.ts +6 -6
- package/odb/cloudVmCluster.js +6 -6
- package/odb/getCloudAutonomousVmClusters.d.ts +68 -0
- package/odb/getCloudAutonomousVmClusters.js +56 -0
- package/odb/getCloudAutonomousVmClusters.js.map +1 -0
- package/odb/getCloudExadataInfrastructures.d.ts +68 -0
- package/odb/getCloudExadataInfrastructures.js +56 -0
- package/odb/getCloudExadataInfrastructures.js.map +1 -0
- package/odb/getCloudVmClusters.d.ts +68 -0
- package/odb/getCloudVmClusters.js +56 -0
- package/odb/getCloudVmClusters.js.map +1 -0
- package/odb/getDbSystemShapes.d.ts +1 -1
- package/odb/getNetworkPeeringConnection.d.ts +3 -3
- package/odb/getNetworkPeeringConnections.d.ts +77 -0
- package/odb/getNetworkPeeringConnections.js +58 -0
- package/odb/getNetworkPeeringConnections.js.map +1 -0
- package/odb/getNetworks.d.ts +64 -0
- package/odb/getNetworks.js +52 -0
- package/odb/getNetworks.js.map +1 -0
- package/odb/index.d.ts +15 -0
- package/odb/index.js +16 -1
- package/odb/index.js.map +1 -1
- package/package.json +2 -2
- package/quicksight/accountSubscription.d.ts +37 -1
- package/quicksight/accountSubscription.js +7 -1
- package/quicksight/accountSubscription.js.map +1 -1
- package/rds/getGlobalCluster.d.ts +123 -0
- package/rds/getGlobalCluster.js +56 -0
- package/rds/getGlobalCluster.js.map +1 -0
- package/rds/index.d.ts +3 -0
- package/rds/index.js +5 -2
- package/rds/index.js.map +1 -1
- package/servicediscovery/service.d.ts +4 -4
- package/servicediscovery/service.js +1 -1
- package/ssm/defaultPatchBaseline.d.ts +3 -0
- package/ssm/defaultPatchBaseline.js.map +1 -1
- package/ssmcontacts/contact.d.ts +9 -3
- package/ssmcontacts/contact.js +9 -3
- package/ssmcontacts/contact.js.map +1 -1
- package/transfer/hostKey.d.ts +151 -0
- package/transfer/hostKey.js +83 -0
- package/transfer/hostKey.js.map +1 -0
- package/transfer/index.d.ts +9 -0
- package/transfer/index.js +16 -1
- package/transfer/index.js.map +1 -1
- package/transfer/webApp.d.ts +239 -0
- package/transfer/webApp.js +157 -0
- package/transfer/webApp.js.map +1 -0
- package/transfer/webAppCustomization.d.ts +97 -0
- package/transfer/webAppCustomization.js +73 -0
- package/transfer/webAppCustomization.js.map +1 -0
- package/types/input.d.ts +997 -2
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1342 -160
- package/types/output.js.map +1 -1
- package/vpclattice/resourceGateway.d.ts +12 -0
- package/vpclattice/resourceGateway.js +2 -0
- package/vpclattice/resourceGateway.js.map +1 -1
- package/vpn/getConnection.d.ts +175 -0
- package/vpn/getConnection.js +96 -0
- package/vpn/getConnection.js.map +1 -0
- package/vpn/index.d.ts +3 -0
- package/vpn/index.js +10 -0
- package/vpn/index.js.map +1 -0
package/amp/index.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export declare const getWorkspacesOutput: typeof import("./getWorkspaces").getWo
|
|
|
13
13
|
export { QueryLoggingConfigurationArgs, QueryLoggingConfigurationState } from "./queryLoggingConfiguration";
|
|
14
14
|
export type QueryLoggingConfiguration = import("./queryLoggingConfiguration").QueryLoggingConfiguration;
|
|
15
15
|
export declare const QueryLoggingConfiguration: typeof import("./queryLoggingConfiguration").QueryLoggingConfiguration;
|
|
16
|
+
export { ResourcePolicyArgs, ResourcePolicyState } from "./resourcePolicy";
|
|
17
|
+
export type ResourcePolicy = import("./resourcePolicy").ResourcePolicy;
|
|
18
|
+
export declare const ResourcePolicy: typeof import("./resourcePolicy").ResourcePolicy;
|
|
16
19
|
export { RuleGroupNamespaceArgs, RuleGroupNamespaceState } from "./ruleGroupNamespace";
|
|
17
20
|
export type RuleGroupNamespace = import("./ruleGroupNamespace").RuleGroupNamespace;
|
|
18
21
|
export declare const RuleGroupNamespace: typeof import("./ruleGroupNamespace").RuleGroupNamespace;
|
package/amp/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.WorkspaceConfiguration = exports.Workspace = exports.Scraper = exports.RuleGroupNamespace = exports.QueryLoggingConfiguration = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = exports.getDefaultScraperConfigurationOutput = exports.getDefaultScraperConfiguration = exports.AlertManagerDefinition = void 0;
|
|
5
|
+
exports.WorkspaceConfiguration = exports.Workspace = exports.Scraper = exports.RuleGroupNamespace = exports.ResourcePolicy = exports.QueryLoggingConfiguration = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = exports.getDefaultScraperConfigurationOutput = exports.getDefaultScraperConfiguration = exports.AlertManagerDefinition = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.AlertManagerDefinition = null;
|
|
@@ -18,6 +18,8 @@ exports.getWorkspacesOutput = null;
|
|
|
18
18
|
utilities.lazyLoad(exports, ["getWorkspaces", "getWorkspacesOutput"], () => require("./getWorkspaces"));
|
|
19
19
|
exports.QueryLoggingConfiguration = null;
|
|
20
20
|
utilities.lazyLoad(exports, ["QueryLoggingConfiguration"], () => require("./queryLoggingConfiguration"));
|
|
21
|
+
exports.ResourcePolicy = null;
|
|
22
|
+
utilities.lazyLoad(exports, ["ResourcePolicy"], () => require("./resourcePolicy"));
|
|
21
23
|
exports.RuleGroupNamespace = null;
|
|
22
24
|
utilities.lazyLoad(exports, ["RuleGroupNamespace"], () => require("./ruleGroupNamespace"));
|
|
23
25
|
exports.Scraper = null;
|
|
@@ -34,6 +36,8 @@ const _module = {
|
|
|
34
36
|
return new exports.AlertManagerDefinition(name, undefined, { urn });
|
|
35
37
|
case "aws:amp/queryLoggingConfiguration:QueryLoggingConfiguration":
|
|
36
38
|
return new exports.QueryLoggingConfiguration(name, undefined, { urn });
|
|
39
|
+
case "aws:amp/resourcePolicy:ResourcePolicy":
|
|
40
|
+
return new exports.ResourcePolicy(name, undefined, { urn });
|
|
37
41
|
case "aws:amp/ruleGroupNamespace:RuleGroupNamespace":
|
|
38
42
|
return new exports.RuleGroupNamespace(name, undefined, { urn });
|
|
39
43
|
case "aws:amp/scraper:Scraper":
|
|
@@ -49,6 +53,7 @@ const _module = {
|
|
|
49
53
|
};
|
|
50
54
|
pulumi.runtime.registerResourceModule("aws", "amp/alertManagerDefinition", _module);
|
|
51
55
|
pulumi.runtime.registerResourceModule("aws", "amp/queryLoggingConfiguration", _module);
|
|
56
|
+
pulumi.runtime.registerResourceModule("aws", "amp/resourcePolicy", _module);
|
|
52
57
|
pulumi.runtime.registerResourceModule("aws", "amp/ruleGroupNamespace", _module);
|
|
53
58
|
pulumi.runtime.registerResourceModule("aws", "amp/scraper", _module);
|
|
54
59
|
pulumi.runtime.registerResourceModule("aws", "amp/workspace", _module);
|
package/amp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../amp/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,sBAAsB,GAAqE,IAAW,CAAC;AACpH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,wBAAwB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAGtF,QAAA,8BAA8B,GAAqF,IAAW,CAAC;AAC/H,QAAA,oCAAoC,GAA2F,IAAW,CAAC;AACxJ,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gCAAgC,EAAC,sCAAsC,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC,CAAC;AAG7I,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB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
|
|
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 Amazon Managed Service for Prometheus (AMP) Resource Policy.
|
|
6
|
+
*
|
|
7
|
+
* Resource-based policies allow you to grant permissions to other AWS accounts or services to access your Prometheus workspace. This enables cross-account access and fine-grained permissions for workspace sharing.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ### Basic Resource Policy
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const exampleWorkspace = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
18
|
+
* const current = aws.getCallerIdentity({});
|
|
19
|
+
* const example = pulumi.all([current, exampleWorkspace.arn]).apply(([current, arn]) => aws.iam.getPolicyDocumentOutput({
|
|
20
|
+
* statements: [{
|
|
21
|
+
* effect: "Allow",
|
|
22
|
+
* principals: [{
|
|
23
|
+
* type: "AWS",
|
|
24
|
+
* identifiers: [current.accountId],
|
|
25
|
+
* }],
|
|
26
|
+
* actions: [
|
|
27
|
+
* "aps:RemoteWrite",
|
|
28
|
+
* "aps:QueryMetrics",
|
|
29
|
+
* "aps:GetSeries",
|
|
30
|
+
* "aps:GetLabels",
|
|
31
|
+
* "aps:GetMetricMetadata",
|
|
32
|
+
* ],
|
|
33
|
+
* resources: [arn],
|
|
34
|
+
* }],
|
|
35
|
+
* }));
|
|
36
|
+
* const exampleResourcePolicy = new aws.amp.ResourcePolicy("example", {
|
|
37
|
+
* workspaceId: exampleWorkspace.id,
|
|
38
|
+
* policyDocument: example.apply(example => example.json),
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ### Cross-Account Access
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as aws from "@pulumi/aws";
|
|
47
|
+
*
|
|
48
|
+
* const example = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
49
|
+
* const crossAccount = aws.iam.getPolicyDocumentOutput({
|
|
50
|
+
* statements: [{
|
|
51
|
+
* effect: "Allow",
|
|
52
|
+
* principals: [{
|
|
53
|
+
* type: "AWS",
|
|
54
|
+
* identifiers: ["arn:aws:iam::123456789012:root"],
|
|
55
|
+
* }],
|
|
56
|
+
* actions: [
|
|
57
|
+
* "aps:RemoteWrite",
|
|
58
|
+
* "aps:QueryMetrics",
|
|
59
|
+
* ],
|
|
60
|
+
* resources: [example.arn],
|
|
61
|
+
* }],
|
|
62
|
+
* });
|
|
63
|
+
* const crossAccountResourcePolicy = new aws.amp.ResourcePolicy("cross_account", {
|
|
64
|
+
* workspaceId: example.id,
|
|
65
|
+
* policyDocument: crossAccount.apply(crossAccount => crossAccount.json),
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* ### Service-Specific Access
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as aws from "@pulumi/aws";
|
|
74
|
+
*
|
|
75
|
+
* const example = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
76
|
+
* const serviceAccess = aws.iam.getPolicyDocumentOutput({
|
|
77
|
+
* statements: [{
|
|
78
|
+
* effect: "Allow",
|
|
79
|
+
* principals: [{
|
|
80
|
+
* type: "Service",
|
|
81
|
+
* identifiers: ["grafana.amazonaws.com"],
|
|
82
|
+
* }],
|
|
83
|
+
* actions: [
|
|
84
|
+
* "aps:QueryMetrics",
|
|
85
|
+
* "aps:GetSeries",
|
|
86
|
+
* "aps:GetLabels",
|
|
87
|
+
* "aps:GetMetricMetadata",
|
|
88
|
+
* ],
|
|
89
|
+
* resources: [example.arn],
|
|
90
|
+
* }],
|
|
91
|
+
* });
|
|
92
|
+
* const serviceAccessResourcePolicy = new aws.amp.ResourcePolicy("service_access", {
|
|
93
|
+
* workspaceId: example.id,
|
|
94
|
+
* policyDocument: serviceAccess.apply(serviceAccess => serviceAccess.json),
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* ## Supported Actions
|
|
99
|
+
*
|
|
100
|
+
* The following actions are supported in resource policies for Prometheus workspaces:
|
|
101
|
+
*
|
|
102
|
+
* * `aps:RemoteWrite` - Allows writing metrics to the workspace
|
|
103
|
+
* * `aps:QueryMetrics` - Allows querying metrics from the workspace
|
|
104
|
+
* * `aps:GetSeries` - Allows retrieving time series data
|
|
105
|
+
* * `aps:GetLabels` - Allows retrieving label names and values
|
|
106
|
+
* * `aps:GetMetricMetadata` - Allows retrieving metric metadata
|
|
107
|
+
*
|
|
108
|
+
* ## Notes
|
|
109
|
+
*
|
|
110
|
+
* * Only Prometheus-compatible APIs can be used for workspace sharing. Non-Prometheus-compatible APIs added to the policy will be ignored.
|
|
111
|
+
* * If your workspace uses customer-managed KMS keys for encryption, you must grant the principals in your resource-based policy access to those KMS keys through KMS grants.
|
|
112
|
+
* * The resource ARN in the policy document must match the workspace ARN that the policy is being attached to.
|
|
113
|
+
* * Resource policies enable cross-account access and fine-grained permissions for Prometheus workspaces.
|
|
114
|
+
*
|
|
115
|
+
* ## Import
|
|
116
|
+
*
|
|
117
|
+
* Using `pulumi import`, import AMP Resource Policies using the workspace ID. For example:
|
|
118
|
+
*
|
|
119
|
+
* ```sh
|
|
120
|
+
* $ pulumi import aws:amp/resourcePolicy:ResourcePolicy example ws-12345678-90ab-cdef-1234-567890abcdef
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare class ResourcePolicy extends pulumi.CustomResource {
|
|
124
|
+
/**
|
|
125
|
+
* Get an existing ResourcePolicy 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?: ResourcePolicyState, opts?: pulumi.CustomResourceOptions): ResourcePolicy;
|
|
134
|
+
/**
|
|
135
|
+
* Returns true if the given object is an instance of ResourcePolicy. 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 ResourcePolicy;
|
|
139
|
+
/**
|
|
140
|
+
* The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
|
|
141
|
+
*
|
|
142
|
+
* The following arguments are optional:
|
|
143
|
+
*/
|
|
144
|
+
readonly policyDocument: pulumi.Output<string>;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
*/
|
|
148
|
+
readonly region: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The revision ID of the current resource-based policy.
|
|
151
|
+
*/
|
|
152
|
+
readonly revisionId: pulumi.Output<string>;
|
|
153
|
+
readonly timeouts: pulumi.Output<outputs.amp.ResourcePolicyTimeouts | undefined>;
|
|
154
|
+
/**
|
|
155
|
+
* The ID of the workspace to attach the resource-based policy to.
|
|
156
|
+
*/
|
|
157
|
+
readonly workspaceId: pulumi.Output<string>;
|
|
158
|
+
/**
|
|
159
|
+
* Create a ResourcePolicy resource with the given unique name, arguments, and options.
|
|
160
|
+
*
|
|
161
|
+
* @param name The _unique_ name of the resource.
|
|
162
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
163
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
164
|
+
*/
|
|
165
|
+
constructor(name: string, args: ResourcePolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Input properties used for looking up and filtering ResourcePolicy resources.
|
|
169
|
+
*/
|
|
170
|
+
export interface ResourcePolicyState {
|
|
171
|
+
/**
|
|
172
|
+
* The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
|
|
173
|
+
*
|
|
174
|
+
* The following arguments are optional:
|
|
175
|
+
*/
|
|
176
|
+
policyDocument?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* 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.
|
|
179
|
+
*/
|
|
180
|
+
region?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The revision ID of the current resource-based policy.
|
|
183
|
+
*/
|
|
184
|
+
revisionId?: pulumi.Input<string>;
|
|
185
|
+
timeouts?: pulumi.Input<inputs.amp.ResourcePolicyTimeouts>;
|
|
186
|
+
/**
|
|
187
|
+
* The ID of the workspace to attach the resource-based policy to.
|
|
188
|
+
*/
|
|
189
|
+
workspaceId?: pulumi.Input<string>;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* The set of arguments for constructing a ResourcePolicy resource.
|
|
193
|
+
*/
|
|
194
|
+
export interface ResourcePolicyArgs {
|
|
195
|
+
/**
|
|
196
|
+
* The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
|
|
197
|
+
*
|
|
198
|
+
* The following arguments are optional:
|
|
199
|
+
*/
|
|
200
|
+
policyDocument: pulumi.Input<string>;
|
|
201
|
+
/**
|
|
202
|
+
* 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.
|
|
203
|
+
*/
|
|
204
|
+
region?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* The revision ID of the current resource-based policy.
|
|
207
|
+
*/
|
|
208
|
+
revisionId?: pulumi.Input<string>;
|
|
209
|
+
timeouts?: pulumi.Input<inputs.amp.ResourcePolicyTimeouts>;
|
|
210
|
+
/**
|
|
211
|
+
* The ID of the workspace to attach the resource-based policy to.
|
|
212
|
+
*/
|
|
213
|
+
workspaceId: pulumi.Input<string>;
|
|
214
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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.ResourcePolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an Amazon Managed Service for Prometheus (AMP) Resource Policy.
|
|
10
|
+
*
|
|
11
|
+
* Resource-based policies allow you to grant permissions to other AWS accounts or services to access your Prometheus workspace. This enables cross-account access and fine-grained permissions for workspace sharing.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ### Basic Resource Policy
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const exampleWorkspace = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
22
|
+
* const current = aws.getCallerIdentity({});
|
|
23
|
+
* const example = pulumi.all([current, exampleWorkspace.arn]).apply(([current, arn]) => aws.iam.getPolicyDocumentOutput({
|
|
24
|
+
* statements: [{
|
|
25
|
+
* effect: "Allow",
|
|
26
|
+
* principals: [{
|
|
27
|
+
* type: "AWS",
|
|
28
|
+
* identifiers: [current.accountId],
|
|
29
|
+
* }],
|
|
30
|
+
* actions: [
|
|
31
|
+
* "aps:RemoteWrite",
|
|
32
|
+
* "aps:QueryMetrics",
|
|
33
|
+
* "aps:GetSeries",
|
|
34
|
+
* "aps:GetLabels",
|
|
35
|
+
* "aps:GetMetricMetadata",
|
|
36
|
+
* ],
|
|
37
|
+
* resources: [arn],
|
|
38
|
+
* }],
|
|
39
|
+
* }));
|
|
40
|
+
* const exampleResourcePolicy = new aws.amp.ResourcePolicy("example", {
|
|
41
|
+
* workspaceId: exampleWorkspace.id,
|
|
42
|
+
* policyDocument: example.apply(example => example.json),
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ### Cross-Account Access
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as aws from "@pulumi/aws";
|
|
51
|
+
*
|
|
52
|
+
* const example = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
53
|
+
* const crossAccount = aws.iam.getPolicyDocumentOutput({
|
|
54
|
+
* statements: [{
|
|
55
|
+
* effect: "Allow",
|
|
56
|
+
* principals: [{
|
|
57
|
+
* type: "AWS",
|
|
58
|
+
* identifiers: ["arn:aws:iam::123456789012:root"],
|
|
59
|
+
* }],
|
|
60
|
+
* actions: [
|
|
61
|
+
* "aps:RemoteWrite",
|
|
62
|
+
* "aps:QueryMetrics",
|
|
63
|
+
* ],
|
|
64
|
+
* resources: [example.arn],
|
|
65
|
+
* }],
|
|
66
|
+
* });
|
|
67
|
+
* const crossAccountResourcePolicy = new aws.amp.ResourcePolicy("cross_account", {
|
|
68
|
+
* workspaceId: example.id,
|
|
69
|
+
* policyDocument: crossAccount.apply(crossAccount => crossAccount.json),
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* ### Service-Specific Access
|
|
74
|
+
*
|
|
75
|
+
* ```typescript
|
|
76
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
77
|
+
* import * as aws from "@pulumi/aws";
|
|
78
|
+
*
|
|
79
|
+
* const example = new aws.amp.Workspace("example", {alias: "example-workspace"});
|
|
80
|
+
* const serviceAccess = aws.iam.getPolicyDocumentOutput({
|
|
81
|
+
* statements: [{
|
|
82
|
+
* effect: "Allow",
|
|
83
|
+
* principals: [{
|
|
84
|
+
* type: "Service",
|
|
85
|
+
* identifiers: ["grafana.amazonaws.com"],
|
|
86
|
+
* }],
|
|
87
|
+
* actions: [
|
|
88
|
+
* "aps:QueryMetrics",
|
|
89
|
+
* "aps:GetSeries",
|
|
90
|
+
* "aps:GetLabels",
|
|
91
|
+
* "aps:GetMetricMetadata",
|
|
92
|
+
* ],
|
|
93
|
+
* resources: [example.arn],
|
|
94
|
+
* }],
|
|
95
|
+
* });
|
|
96
|
+
* const serviceAccessResourcePolicy = new aws.amp.ResourcePolicy("service_access", {
|
|
97
|
+
* workspaceId: example.id,
|
|
98
|
+
* policyDocument: serviceAccess.apply(serviceAccess => serviceAccess.json),
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* ## Supported Actions
|
|
103
|
+
*
|
|
104
|
+
* The following actions are supported in resource policies for Prometheus workspaces:
|
|
105
|
+
*
|
|
106
|
+
* * `aps:RemoteWrite` - Allows writing metrics to the workspace
|
|
107
|
+
* * `aps:QueryMetrics` - Allows querying metrics from the workspace
|
|
108
|
+
* * `aps:GetSeries` - Allows retrieving time series data
|
|
109
|
+
* * `aps:GetLabels` - Allows retrieving label names and values
|
|
110
|
+
* * `aps:GetMetricMetadata` - Allows retrieving metric metadata
|
|
111
|
+
*
|
|
112
|
+
* ## Notes
|
|
113
|
+
*
|
|
114
|
+
* * Only Prometheus-compatible APIs can be used for workspace sharing. Non-Prometheus-compatible APIs added to the policy will be ignored.
|
|
115
|
+
* * If your workspace uses customer-managed KMS keys for encryption, you must grant the principals in your resource-based policy access to those KMS keys through KMS grants.
|
|
116
|
+
* * The resource ARN in the policy document must match the workspace ARN that the policy is being attached to.
|
|
117
|
+
* * Resource policies enable cross-account access and fine-grained permissions for Prometheus workspaces.
|
|
118
|
+
*
|
|
119
|
+
* ## Import
|
|
120
|
+
*
|
|
121
|
+
* Using `pulumi import`, import AMP Resource Policies using the workspace ID. For example:
|
|
122
|
+
*
|
|
123
|
+
* ```sh
|
|
124
|
+
* $ pulumi import aws:amp/resourcePolicy:ResourcePolicy example ws-12345678-90ab-cdef-1234-567890abcdef
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
class ResourcePolicy extends pulumi.CustomResource {
|
|
128
|
+
/**
|
|
129
|
+
* Get an existing ResourcePolicy resource's state with the given name, ID, and optional extra
|
|
130
|
+
* properties used to qualify the lookup.
|
|
131
|
+
*
|
|
132
|
+
* @param name The _unique_ name of the resulting resource.
|
|
133
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
134
|
+
* @param state Any extra arguments used during the lookup.
|
|
135
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
136
|
+
*/
|
|
137
|
+
static get(name, id, state, opts) {
|
|
138
|
+
return new ResourcePolicy(name, state, { ...opts, id: id });
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns true if the given object is an instance of ResourcePolicy. This is designed to work even
|
|
142
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
143
|
+
*/
|
|
144
|
+
static isInstance(obj) {
|
|
145
|
+
if (obj === undefined || obj === null) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
return obj['__pulumiType'] === ResourcePolicy.__pulumiType;
|
|
149
|
+
}
|
|
150
|
+
constructor(name, argsOrState, opts) {
|
|
151
|
+
let resourceInputs = {};
|
|
152
|
+
opts = opts || {};
|
|
153
|
+
if (opts.id) {
|
|
154
|
+
const state = argsOrState;
|
|
155
|
+
resourceInputs["policyDocument"] = state?.policyDocument;
|
|
156
|
+
resourceInputs["region"] = state?.region;
|
|
157
|
+
resourceInputs["revisionId"] = state?.revisionId;
|
|
158
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
159
|
+
resourceInputs["workspaceId"] = state?.workspaceId;
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
const args = argsOrState;
|
|
163
|
+
if (args?.policyDocument === undefined && !opts.urn) {
|
|
164
|
+
throw new Error("Missing required property 'policyDocument'");
|
|
165
|
+
}
|
|
166
|
+
if (args?.workspaceId === undefined && !opts.urn) {
|
|
167
|
+
throw new Error("Missing required property 'workspaceId'");
|
|
168
|
+
}
|
|
169
|
+
resourceInputs["policyDocument"] = args?.policyDocument;
|
|
170
|
+
resourceInputs["region"] = args?.region;
|
|
171
|
+
resourceInputs["revisionId"] = args?.revisionId;
|
|
172
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
173
|
+
resourceInputs["workspaceId"] = args?.workspaceId;
|
|
174
|
+
}
|
|
175
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
176
|
+
super(ResourcePolicy.__pulumiType, name, resourceInputs, opts);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.ResourcePolicy = ResourcePolicy;
|
|
180
|
+
/** @internal */
|
|
181
|
+
ResourcePolicy.__pulumiType = 'aws:amp/resourcePolicy:ResourcePolicy';
|
|
182
|
+
//# sourceMappingURL=resourcePolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourcePolicy.js","sourceRoot":"","sources":["../../amp/resourcePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsHG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CA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