@pulumi/aws-native 0.62.0 → 0.62.1-alpha.1685012573
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/appsync/getGraphQLApi.d.ts +2 -0
- package/appsync/getGraphQLApi.js.map +1 -1
- package/appsync/getSourceApiAssociation.d.ts +69 -0
- package/appsync/getSourceApiAssociation.js +25 -0
- package/appsync/getSourceApiAssociation.js.map +1 -0
- package/appsync/graphQLApi.d.ts +6 -0
- package/appsync/graphQLApi.js +6 -0
- package/appsync/graphQLApi.js.map +1 -1
- package/appsync/index.d.ts +7 -0
- package/appsync/index.js +24 -1
- package/appsync/index.js.map +1 -1
- package/appsync/sourceApiAssociation.d.ts +104 -0
- package/appsync/sourceApiAssociation.js +80 -0
- package/appsync/sourceApiAssociation.js.map +1 -0
- package/grafana/getWorkspace.d.ts +1 -1
- package/grafana/workspace.d.ts +6 -2
- package/grafana/workspace.js +1 -1
- package/grafana/workspace.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/networkmanager/connectAttachment.d.ts +5 -1
- package/networkmanager/connectAttachment.js +1 -1
- package/networkmanager/connectAttachment.js.map +1 -1
- package/networkmanager/siteToSiteVpnAttachment.d.ts +5 -1
- package/networkmanager/siteToSiteVpnAttachment.js +1 -1
- package/networkmanager/siteToSiteVpnAttachment.js.map +1 -1
- package/networkmanager/vpcAttachment.d.ts +5 -1
- package/networkmanager/vpcAttachment.js +1 -1
- package/networkmanager/vpcAttachment.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/sagemaker/getApp.d.ts +0 -5
- package/sagemaker/getApp.js.map +1 -1
- package/sagemaker/project.d.ts +5 -1
- package/sagemaker/project.js +1 -1
- package/sagemaker/project.js.map +1 -1
- package/shield/drtaccess.d.ts +50 -0
- package/shield/drtaccess.js +63 -0
- package/shield/drtaccess.js.map +1 -0
- package/shield/getDRTAccess.d.ts +26 -0
- package/shield/getDRTAccess.js +25 -0
- package/shield/getDRTAccess.js.map +1 -0
- package/shield/getProactiveEngagement.d.ts +30 -0
- package/shield/getProactiveEngagement.js +25 -0
- package/shield/getProactiveEngagement.js.map +1 -0
- package/shield/getProtection.d.ts +41 -0
- package/shield/getProtection.js +25 -0
- package/shield/getProtection.js.map +1 -0
- package/shield/getProtectionGroup.d.ts +52 -0
- package/shield/getProtectionGroup.js +25 -0
- package/shield/getProtectionGroup.js.map +1 -0
- package/shield/index.d.ts +25 -0
- package/shield/index.js +62 -0
- package/shield/index.js.map +1 -0
- package/shield/proactiveEngagement.d.ts +57 -0
- package/shield/proactiveEngagement.js +66 -0
- package/shield/proactiveEngagement.js.map +1 -0
- package/shield/protection.d.ts +77 -0
- package/shield/protection.js +71 -0
- package/shield/protection.js.map +1 -0
- package/shield/protectionGroup.d.ts +94 -0
- package/shield/protectionGroup.js +77 -0
- package/shield/protectionGroup.js.map +1 -0
- package/types/enums/appsync/index.d.ts +22 -0
- package/types/enums/appsync/index.js +20 -0
- package/types/enums/appsync/index.js.map +1 -0
- package/types/enums/index.d.ts +3 -1
- package/types/enums/index.js +7 -3
- package/types/enums/index.js.map +1 -1
- package/types/enums/shield/index.d.ts +50 -0
- package/types/enums/shield/index.js +32 -0
- package/types/enums/shield/index.js.map +1 -0
- package/types/input.d.ts +139 -0
- package/types/output.d.ts +106 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getProtection(args: GetProtectionArgs, opts?: pulumi.InvokeOptions): Promise<GetProtectionResult>;
|
|
7
|
+
export interface GetProtectionArgs {
|
|
8
|
+
/**
|
|
9
|
+
* The ARN (Amazon Resource Name) of the protection.
|
|
10
|
+
*/
|
|
11
|
+
protectionArn: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetProtectionResult {
|
|
14
|
+
readonly applicationLayerAutomaticResponseConfiguration?: outputs.shield.ProtectionApplicationLayerAutomaticResponseConfiguration;
|
|
15
|
+
/**
|
|
16
|
+
* The Amazon Resource Names (ARNs) of the health check to associate with the protection.
|
|
17
|
+
*/
|
|
18
|
+
readonly healthCheckArns?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* The ARN (Amazon Resource Name) of the protection.
|
|
21
|
+
*/
|
|
22
|
+
readonly protectionArn?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The unique identifier (ID) of the protection.
|
|
25
|
+
*/
|
|
26
|
+
readonly protectionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* One or more tag key-value pairs for the Protection object.
|
|
29
|
+
*/
|
|
30
|
+
readonly tags?: outputs.shield.ProtectionTag[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getProtectionOutput(args: GetProtectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProtectionResult>;
|
|
36
|
+
export interface GetProtectionOutputArgs {
|
|
37
|
+
/**
|
|
38
|
+
* The ARN (Amazon Resource Name) of the protection.
|
|
39
|
+
*/
|
|
40
|
+
protectionArn: pulumi.Input<string>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
|
|
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.getProtectionOutput = exports.getProtection = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
10
|
+
*/
|
|
11
|
+
function getProtection(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("aws-native:shield:getProtection", {
|
|
14
|
+
"protectionArn": args.protectionArn,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getProtection = getProtection;
|
|
18
|
+
/**
|
|
19
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
20
|
+
*/
|
|
21
|
+
function getProtectionOutput(args, opts) {
|
|
22
|
+
return pulumi.output(args).apply((a) => getProtection(a, opts));
|
|
23
|
+
}
|
|
24
|
+
exports.getProtectionOutput = getProtectionOutput;
|
|
25
|
+
//# sourceMappingURL=getProtection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProtection.js","sourceRoot":"","sources":["../../shield/getProtection.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE;QAC5D,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AA4BD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
import * as enums from "../types/enums";
|
|
4
|
+
/**
|
|
5
|
+
* A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getProtectionGroup(args: GetProtectionGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetProtectionGroupResult>;
|
|
8
|
+
export interface GetProtectionGroupArgs {
|
|
9
|
+
/**
|
|
10
|
+
* The ARN (Amazon Resource Name) of the protection group.
|
|
11
|
+
*/
|
|
12
|
+
protectionGroupArn: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetProtectionGroupResult {
|
|
15
|
+
/**
|
|
16
|
+
* Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
|
|
17
|
+
* * Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
|
|
18
|
+
* * Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
|
|
19
|
+
* * Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
|
|
20
|
+
*/
|
|
21
|
+
readonly aggregation?: enums.shield.ProtectionGroupAggregation;
|
|
22
|
+
/**
|
|
23
|
+
* The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `Pattern` to `ARBITRARY` and you must not set it for any other `Pattern` setting.
|
|
24
|
+
*/
|
|
25
|
+
readonly members?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
|
|
28
|
+
*/
|
|
29
|
+
readonly pattern?: enums.shield.ProtectionGroupPattern;
|
|
30
|
+
/**
|
|
31
|
+
* The ARN (Amazon Resource Name) of the protection group.
|
|
32
|
+
*/
|
|
33
|
+
readonly protectionGroupArn?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set `Pattern` to `BY_RESOURCE_TYPE` and you must not set it for any other `Pattern` setting.
|
|
36
|
+
*/
|
|
37
|
+
readonly resourceType?: enums.shield.ProtectionGroupResourceType;
|
|
38
|
+
/**
|
|
39
|
+
* One or more tag key-value pairs for the Protection object.
|
|
40
|
+
*/
|
|
41
|
+
readonly tags?: outputs.shield.ProtectionGroupTag[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
|
|
45
|
+
*/
|
|
46
|
+
export declare function getProtectionGroupOutput(args: GetProtectionGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProtectionGroupResult>;
|
|
47
|
+
export interface GetProtectionGroupOutputArgs {
|
|
48
|
+
/**
|
|
49
|
+
* The ARN (Amazon Resource Name) of the protection group.
|
|
50
|
+
*/
|
|
51
|
+
protectionGroupArn: pulumi.Input<string>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
|
|
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.getProtectionGroupOutput = exports.getProtectionGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
|
|
10
|
+
*/
|
|
11
|
+
function getProtectionGroup(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("aws-native:shield:getProtectionGroup", {
|
|
14
|
+
"protectionGroupArn": args.protectionGroupArn,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getProtectionGroup = getProtectionGroup;
|
|
18
|
+
/**
|
|
19
|
+
* A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
|
|
20
|
+
*/
|
|
21
|
+
function getProtectionGroupOutput(args, opts) {
|
|
22
|
+
return pulumi.output(args).apply((a) => getProtectionGroup(a, opts));
|
|
23
|
+
}
|
|
24
|
+
exports.getProtectionGroupOutput = getProtectionGroupOutput;
|
|
25
|
+
//# sourceMappingURL=getProtectionGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProtectionGroup.js","sourceRoot":"","sources":["../../shield/getProtectionGroup.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;KAChD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAsCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { DRTAccessArgs } from "./drtaccess";
|
|
2
|
+
export type DRTAccess = import("./drtaccess").DRTAccess;
|
|
3
|
+
export declare const DRTAccess: typeof import("./drtaccess").DRTAccess;
|
|
4
|
+
export { GetDRTAccessArgs, GetDRTAccessResult, GetDRTAccessOutputArgs } from "./getDRTAccess";
|
|
5
|
+
export declare const getDRTAccess: typeof import("./getDRTAccess").getDRTAccess;
|
|
6
|
+
export declare const getDRTAccessOutput: typeof import("./getDRTAccess").getDRTAccessOutput;
|
|
7
|
+
export { GetProactiveEngagementArgs, GetProactiveEngagementResult, GetProactiveEngagementOutputArgs } from "./getProactiveEngagement";
|
|
8
|
+
export declare const getProactiveEngagement: typeof import("./getProactiveEngagement").getProactiveEngagement;
|
|
9
|
+
export declare const getProactiveEngagementOutput: typeof import("./getProactiveEngagement").getProactiveEngagementOutput;
|
|
10
|
+
export { GetProtectionArgs, GetProtectionResult, GetProtectionOutputArgs } from "./getProtection";
|
|
11
|
+
export declare const getProtection: typeof import("./getProtection").getProtection;
|
|
12
|
+
export declare const getProtectionOutput: typeof import("./getProtection").getProtectionOutput;
|
|
13
|
+
export { GetProtectionGroupArgs, GetProtectionGroupResult, GetProtectionGroupOutputArgs } from "./getProtectionGroup";
|
|
14
|
+
export declare const getProtectionGroup: typeof import("./getProtectionGroup").getProtectionGroup;
|
|
15
|
+
export declare const getProtectionGroupOutput: typeof import("./getProtectionGroup").getProtectionGroupOutput;
|
|
16
|
+
export { ProactiveEngagementArgs } from "./proactiveEngagement";
|
|
17
|
+
export type ProactiveEngagement = import("./proactiveEngagement").ProactiveEngagement;
|
|
18
|
+
export declare const ProactiveEngagement: typeof import("./proactiveEngagement").ProactiveEngagement;
|
|
19
|
+
export { ProtectionArgs } from "./protection";
|
|
20
|
+
export type Protection = import("./protection").Protection;
|
|
21
|
+
export declare const Protection: typeof import("./protection").Protection;
|
|
22
|
+
export { ProtectionGroupArgs } from "./protectionGroup";
|
|
23
|
+
export type ProtectionGroup = import("./protectionGroup").ProtectionGroup;
|
|
24
|
+
export declare const ProtectionGroup: typeof import("./protectionGroup").ProtectionGroup;
|
|
25
|
+
export * from "../types/enums/shield";
|
package/shield/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.ProtectionGroup = exports.Protection = exports.ProactiveEngagement = exports.getProtectionGroupOutput = exports.getProtectionGroup = exports.getProtectionOutput = exports.getProtection = exports.getProactiveEngagementOutput = exports.getProactiveEngagement = exports.getDRTAccessOutput = exports.getDRTAccess = exports.DRTAccess = void 0;
|
|
20
|
+
const pulumi = require("@pulumi/pulumi");
|
|
21
|
+
const utilities = require("../utilities");
|
|
22
|
+
exports.DRTAccess = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["DRTAccess"], () => require("./drtaccess"));
|
|
24
|
+
exports.getDRTAccess = null;
|
|
25
|
+
exports.getDRTAccessOutput = null;
|
|
26
|
+
utilities.lazyLoad(exports, ["getDRTAccess", "getDRTAccessOutput"], () => require("./getDRTAccess"));
|
|
27
|
+
exports.getProactiveEngagement = null;
|
|
28
|
+
exports.getProactiveEngagementOutput = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["getProactiveEngagement", "getProactiveEngagementOutput"], () => require("./getProactiveEngagement"));
|
|
30
|
+
exports.getProtection = null;
|
|
31
|
+
exports.getProtectionOutput = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["getProtection", "getProtectionOutput"], () => require("./getProtection"));
|
|
33
|
+
exports.getProtectionGroup = null;
|
|
34
|
+
exports.getProtectionGroupOutput = null;
|
|
35
|
+
utilities.lazyLoad(exports, ["getProtectionGroup", "getProtectionGroupOutput"], () => require("./getProtectionGroup"));
|
|
36
|
+
exports.ProactiveEngagement = null;
|
|
37
|
+
utilities.lazyLoad(exports, ["ProactiveEngagement"], () => require("./proactiveEngagement"));
|
|
38
|
+
exports.Protection = null;
|
|
39
|
+
utilities.lazyLoad(exports, ["Protection"], () => require("./protection"));
|
|
40
|
+
exports.ProtectionGroup = null;
|
|
41
|
+
utilities.lazyLoad(exports, ["ProtectionGroup"], () => require("./protectionGroup"));
|
|
42
|
+
// Export enums:
|
|
43
|
+
__exportStar(require("../types/enums/shield"), exports);
|
|
44
|
+
const _module = {
|
|
45
|
+
version: utilities.getVersion(),
|
|
46
|
+
construct: (name, type, urn) => {
|
|
47
|
+
switch (type) {
|
|
48
|
+
case "aws-native:shield:DRTAccess":
|
|
49
|
+
return new exports.DRTAccess(name, undefined, { urn });
|
|
50
|
+
case "aws-native:shield:ProactiveEngagement":
|
|
51
|
+
return new exports.ProactiveEngagement(name, undefined, { urn });
|
|
52
|
+
case "aws-native:shield:Protection":
|
|
53
|
+
return new exports.Protection(name, undefined, { urn });
|
|
54
|
+
case "aws-native:shield:ProtectionGroup":
|
|
55
|
+
return new exports.ProtectionGroup(name, undefined, { urn });
|
|
56
|
+
default:
|
|
57
|
+
throw new Error(`unknown resource type ${type}`);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
pulumi.runtime.registerResourceModule("aws-native", "shield", _module);
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../shield/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
import * as enums from "../types/enums";
|
|
5
|
+
/**
|
|
6
|
+
* Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProactiveEngagement extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ProactiveEngagement resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ProactiveEngagement;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of ProactiveEngagement. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is ProactiveEngagement;
|
|
23
|
+
readonly accountId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
|
|
26
|
+
* To enable proactive engagement, the contact list must include at least one phone number.
|
|
27
|
+
*/
|
|
28
|
+
readonly emergencyContactList: pulumi.Output<outputs.shield.ProactiveEngagementEmergencyContact[]>;
|
|
29
|
+
/**
|
|
30
|
+
* If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
|
|
31
|
+
* If `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.
|
|
32
|
+
*/
|
|
33
|
+
readonly proactiveEngagementStatus: pulumi.Output<enums.shield.ProactiveEngagementStatus>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a ProactiveEngagement resource with the given unique name, arguments, and options.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resource.
|
|
38
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
39
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
40
|
+
*/
|
|
41
|
+
constructor(name: string, args: ProactiveEngagementArgs, opts?: pulumi.CustomResourceOptions);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The set of arguments for constructing a ProactiveEngagement resource.
|
|
45
|
+
*/
|
|
46
|
+
export interface ProactiveEngagementArgs {
|
|
47
|
+
/**
|
|
48
|
+
* A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
|
|
49
|
+
* To enable proactive engagement, the contact list must include at least one phone number.
|
|
50
|
+
*/
|
|
51
|
+
emergencyContactList: pulumi.Input<pulumi.Input<inputs.shield.ProactiveEngagementEmergencyContactArgs>[]>;
|
|
52
|
+
/**
|
|
53
|
+
* If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
|
|
54
|
+
* If `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.
|
|
55
|
+
*/
|
|
56
|
+
proactiveEngagementStatus: pulumi.Input<enums.shield.ProactiveEngagementStatus>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
|
|
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.ProactiveEngagement = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
|
|
10
|
+
*/
|
|
11
|
+
class ProactiveEngagement extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ProactiveEngagement resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new ProactiveEngagement(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of ProactiveEngagement. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === ProactiveEngagement.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a ProactiveEngagement resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if ((!args || args.emergencyContactList === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'emergencyContactList'");
|
|
46
|
+
}
|
|
47
|
+
if ((!args || args.proactiveEngagementStatus === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'proactiveEngagementStatus'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["emergencyContactList"] = args ? args.emergencyContactList : undefined;
|
|
51
|
+
resourceInputs["proactiveEngagementStatus"] = args ? args.proactiveEngagementStatus : undefined;
|
|
52
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
resourceInputs["accountId"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["emergencyContactList"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["proactiveEngagementStatus"] = undefined /*out*/;
|
|
58
|
+
}
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(ProactiveEngagement.__pulumiType, name, resourceInputs, opts);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ProactiveEngagement = ProactiveEngagement;
|
|
64
|
+
/** @internal */
|
|
65
|
+
ProactiveEngagement.__pulumiType = 'aws-native:shield:ProactiveEngagement';
|
|
66
|
+
//# sourceMappingURL=proactiveEngagement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proactiveEngagement.js","sourceRoot":"","sources":["../../shield/proactiveEngagement.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAcD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA6B,EAAE,IAAmC;QACxF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,yBAAyB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;aAC5E;YACD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;aAAM;YACH,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAlEL,kDAmEC;AAtDG,gBAAgB;AACO,gCAAY,GAAG,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Protection extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Protection resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
15
|
+
*/
|
|
16
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Protection;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of Protection. This is designed to work even
|
|
19
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
+
*/
|
|
21
|
+
static isInstance(obj: any): obj is Protection;
|
|
22
|
+
readonly applicationLayerAutomaticResponseConfiguration: pulumi.Output<outputs.shield.ProtectionApplicationLayerAutomaticResponseConfiguration | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* The Amazon Resource Names (ARNs) of the health check to associate with the protection.
|
|
25
|
+
*/
|
|
26
|
+
readonly healthCheckArns: pulumi.Output<string[] | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Friendly name for the Protection.
|
|
29
|
+
*/
|
|
30
|
+
readonly name: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The ARN (Amazon Resource Name) of the protection.
|
|
33
|
+
*/
|
|
34
|
+
readonly protectionArn: pulumi.Output<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The unique identifier (ID) of the protection.
|
|
37
|
+
*/
|
|
38
|
+
readonly protectionId: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The ARN (Amazon Resource Name) of the resource to be protected.
|
|
41
|
+
*/
|
|
42
|
+
readonly resourceArn: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* One or more tag key-value pairs for the Protection object.
|
|
45
|
+
*/
|
|
46
|
+
readonly tags: pulumi.Output<outputs.shield.ProtectionTag[] | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a Protection resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name: string, args: ProtectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a Protection resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface ProtectionArgs {
|
|
60
|
+
applicationLayerAutomaticResponseConfiguration?: pulumi.Input<inputs.shield.ProtectionApplicationLayerAutomaticResponseConfigurationArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* The Amazon Resource Names (ARNs) of the health check to associate with the protection.
|
|
63
|
+
*/
|
|
64
|
+
healthCheckArns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Friendly name for the Protection.
|
|
67
|
+
*/
|
|
68
|
+
name?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The ARN (Amazon Resource Name) of the resource to be protected.
|
|
71
|
+
*/
|
|
72
|
+
resourceArn: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* One or more tag key-value pairs for the Protection object.
|
|
75
|
+
*/
|
|
76
|
+
tags?: pulumi.Input<pulumi.Input<inputs.shield.ProtectionTagArgs>[]>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
|
|
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.Protection = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.
|
|
10
|
+
*/
|
|
11
|
+
class Protection extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Protection resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new Protection(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Protection. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Protection.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a Protection resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if ((!args || args.resourceArn === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'resourceArn'");
|
|
46
|
+
}
|
|
47
|
+
resourceInputs["applicationLayerAutomaticResponseConfiguration"] = args ? args.applicationLayerAutomaticResponseConfiguration : undefined;
|
|
48
|
+
resourceInputs["healthCheckArns"] = args ? args.healthCheckArns : undefined;
|
|
49
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
50
|
+
resourceInputs["resourceArn"] = args ? args.resourceArn : undefined;
|
|
51
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
52
|
+
resourceInputs["protectionArn"] = undefined /*out*/;
|
|
53
|
+
resourceInputs["protectionId"] = undefined /*out*/;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
resourceInputs["applicationLayerAutomaticResponseConfiguration"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["healthCheckArns"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["protectionArn"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["protectionId"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["resourceArn"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["tags"] = undefined /*out*/;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(Protection.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.Protection = Protection;
|
|
69
|
+
/** @internal */
|
|
70
|
+
Protection.__pulumiType = 'aws-native:shield:Protection';
|
|
71
|
+
//# sourceMappingURL=protection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protection.js","sourceRoot":"","sources":["../../shield/protection.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA4BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAoB,EAAE,IAAmC;QAC/E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,gDAAgD,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1I,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;aAAM;YACH,cAAc,CAAC,gDAAgD,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrF,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArFL,gCAsFC;AAzEG,gBAAgB;AACO,uBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
import * as enums from "../types/enums";
|
|
5
|
+
/**
|
|
6
|
+
* A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProtectionGroup extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ProtectionGroup resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ProtectionGroup;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of ProtectionGroup. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is ProtectionGroup;
|
|
23
|
+
/**
|
|
24
|
+
* Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
|
|
25
|
+
* * Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
|
|
26
|
+
* * Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
|
|
27
|
+
* * Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
|
|
28
|
+
*/
|
|
29
|
+
readonly aggregation: pulumi.Output<enums.shield.ProtectionGroupAggregation>;
|
|
30
|
+
/**
|
|
31
|
+
* The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `Pattern` to `ARBITRARY` and you must not set it for any other `Pattern` setting.
|
|
32
|
+
*/
|
|
33
|
+
readonly members: pulumi.Output<string[] | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
|
|
36
|
+
*/
|
|
37
|
+
readonly pattern: pulumi.Output<enums.shield.ProtectionGroupPattern>;
|
|
38
|
+
/**
|
|
39
|
+
* The ARN (Amazon Resource Name) of the protection group.
|
|
40
|
+
*/
|
|
41
|
+
readonly protectionGroupArn: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
|
|
44
|
+
*/
|
|
45
|
+
readonly protectionGroupId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set `Pattern` to `BY_RESOURCE_TYPE` and you must not set it for any other `Pattern` setting.
|
|
48
|
+
*/
|
|
49
|
+
readonly resourceType: pulumi.Output<enums.shield.ProtectionGroupResourceType | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* One or more tag key-value pairs for the Protection object.
|
|
52
|
+
*/
|
|
53
|
+
readonly tags: pulumi.Output<outputs.shield.ProtectionGroupTag[] | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a ProtectionGroup resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: ProtectionGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The set of arguments for constructing a ProtectionGroup resource.
|
|
65
|
+
*/
|
|
66
|
+
export interface ProtectionGroupArgs {
|
|
67
|
+
/**
|
|
68
|
+
* Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
|
|
69
|
+
* * Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
|
|
70
|
+
* * Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
|
|
71
|
+
* * Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
|
|
72
|
+
*/
|
|
73
|
+
aggregation: pulumi.Input<enums.shield.ProtectionGroupAggregation>;
|
|
74
|
+
/**
|
|
75
|
+
* The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `Pattern` to `ARBITRARY` and you must not set it for any other `Pattern` setting.
|
|
76
|
+
*/
|
|
77
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
78
|
+
/**
|
|
79
|
+
* The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
|
|
80
|
+
*/
|
|
81
|
+
pattern: pulumi.Input<enums.shield.ProtectionGroupPattern>;
|
|
82
|
+
/**
|
|
83
|
+
* The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
|
|
84
|
+
*/
|
|
85
|
+
protectionGroupId: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set `Pattern` to `BY_RESOURCE_TYPE` and you must not set it for any other `Pattern` setting.
|
|
88
|
+
*/
|
|
89
|
+
resourceType?: pulumi.Input<enums.shield.ProtectionGroupResourceType>;
|
|
90
|
+
/**
|
|
91
|
+
* One or more tag key-value pairs for the Protection object.
|
|
92
|
+
*/
|
|
93
|
+
tags?: pulumi.Input<pulumi.Input<inputs.shield.ProtectionGroupTagArgs>[]>;
|
|
94
|
+
}
|