@pulumi/aws 5.4.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/acm/certificate.d.ts +33 -6
- package/acm/certificate.js +17 -0
- package/acm/certificate.js.map +1 -1
- package/acm/getCertificate.d.ts +8 -0
- package/acm/getCertificate.js.map +1 -1
- package/appconfig/eventIntegration.d.ts +158 -0
- package/appconfig/eventIntegration.js +96 -0
- package/appconfig/eventIntegration.js.map +1 -0
- package/appconfig/index.d.ts +1 -0
- package/appconfig/index.js +5 -0
- package/appconfig/index.js.map +1 -1
- package/appflow/connectorProfile.d.ts +133 -0
- package/appflow/connectorProfile.js +89 -0
- package/appflow/connectorProfile.js.map +1 -0
- package/appflow/flow.d.ts +279 -0
- package/appflow/flow.js +193 -0
- package/appflow/flow.js.map +1 -0
- package/appflow/index.d.ts +2 -0
- package/appflow/index.js +42 -0
- package/appflow/index.js.map +1 -0
- package/apprunner/service.d.ts +2 -1
- package/apprunner/service.js +2 -1
- package/apprunner/service.js.map +1 -1
- package/athena/dataCatalog.d.ts +210 -0
- package/athena/dataCatalog.js +146 -0
- package/athena/dataCatalog.js.map +1 -0
- package/athena/index.d.ts +1 -0
- package/athena/index.js +5 -0
- package/athena/index.js.map +1 -1
- package/autoscaling/getGroup.d.ts +4 -0
- package/autoscaling/getGroup.js.map +1 -1
- package/cloudfront/getOriginAccessIdentities.d.ts +71 -0
- package/cloudfront/getOriginAccessIdentities.js +51 -0
- package/cloudfront/getOriginAccessIdentities.js.map +1 -0
- package/cloudfront/index.d.ts +1 -0
- package/cloudfront/index.js +1 -0
- package/cloudfront/index.js.map +1 -1
- package/cloudtrail/trail.d.ts +1 -1
- package/cloudtrail/trail.js +1 -1
- package/cloudwatch/dashboard.d.ts +1 -1
- package/cloudwatch/dashboard.js +1 -1
- package/codebuild/reportGroup.d.ts +4 -3
- package/codebuild/reportGroup.js +4 -3
- package/codebuild/reportGroup.js.map +1 -1
- package/codestarconnections/getConnection.d.ts +23 -4
- package/codestarconnections/getConnection.js +13 -0
- package/codestarconnections/getConnection.js.map +1 -1
- package/config/vars.d.ts +1 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/connect/getRoutingProfile.d.ts +117 -0
- package/connect/getRoutingProfile.js +54 -0
- package/connect/getRoutingProfile.js.map +1 -0
- package/connect/getSecurityProfile.d.ts +112 -0
- package/connect/getSecurityProfile.js +54 -0
- package/connect/getSecurityProfile.js.map +1 -0
- package/connect/getUserHierarchyStructure.d.ts +50 -0
- package/connect/getUserHierarchyStructure.js +36 -0
- package/connect/getUserHierarchyStructure.js.map +1 -0
- package/connect/index.d.ts +4 -0
- package/connect/index.js +8 -0
- package/connect/index.js.map +1 -1
- package/connect/userHierarchyGroup.d.ts +193 -0
- package/connect/userHierarchyGroup.js +117 -0
- package/connect/userHierarchyGroup.js.map +1 -0
- package/costexplorer/costCategory.d.ts +175 -0
- package/costexplorer/costCategory.js +123 -0
- package/costexplorer/costCategory.js.map +1 -0
- package/costexplorer/getCostCategory.d.ts +67 -0
- package/costexplorer/getCostCategory.js +36 -0
- package/costexplorer/getCostCategory.js.map +1 -0
- package/costexplorer/getTags.d.ts +89 -0
- package/costexplorer/getTags.js +43 -0
- package/costexplorer/getTags.js.map +1 -0
- package/costexplorer/index.d.ts +3 -0
- package/costexplorer/index.js +39 -0
- package/costexplorer/index.js.map +1 -0
- package/dlm/lifecyclePolicy.d.ts +4 -4
- package/dlm/lifecyclePolicy.js +4 -4
- package/docdb/eventSubscription.d.ts +195 -0
- package/docdb/eventSubscription.js +113 -0
- package/docdb/eventSubscription.js.map +1 -0
- package/docdb/index.d.ts +1 -0
- package/docdb/index.js +5 -0
- package/docdb/index.js.map +1 -1
- package/ebs/volume.d.ts +3 -3
- package/ec2/ami.d.ts +12 -0
- package/ec2/ami.js +2 -0
- package/ec2/ami.js.map +1 -1
- package/ec2/amiCopy.d.ts +12 -0
- package/ec2/amiCopy.js +2 -0
- package/ec2/amiCopy.js.map +1 -1
- package/ec2/amiFromInstance.d.ts +12 -0
- package/ec2/amiFromInstance.js +2 -0
- package/ec2/amiFromInstance.js.map +1 -1
- package/ec2/getAmi.d.ts +4 -0
- package/ec2/getAmi.js.map +1 -1
- package/ec2/getInstance.d.ts +5 -1
- package/ec2/getInstance.js.map +1 -1
- package/ec2/getLaunchTemplate.d.ts +2 -0
- package/ec2/getLaunchTemplate.js.map +1 -1
- package/ec2/instance.d.ts +12 -0
- package/ec2/instance.js +2 -0
- package/ec2/instance.js.map +1 -1
- package/ec2/launchTemplate.d.ts +27 -3
- package/ec2/launchTemplate.js +4 -0
- package/ec2/launchTemplate.js.map +1 -1
- package/ec2/securityGroup.d.ts +0 -84
- package/ec2/securityGroup.js +0 -84
- package/ec2/securityGroup.js.map +1 -1
- package/ec2/spotFleetRequest.d.ts +18 -0
- package/ec2/spotFleetRequest.js +2 -0
- package/ec2/spotFleetRequest.js.map +1 -1
- package/ec2/spotInstanceRequest.d.ts +12 -0
- package/ec2/spotInstanceRequest.js +2 -0
- package/ec2/spotInstanceRequest.js.map +1 -1
- package/ec2/vpcIpam.d.ts +1 -1
- package/ec2/vpcIpam.js +1 -1
- package/elasticache/cluster.d.ts +17 -8
- package/elasticache/cluster.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +17 -5
- package/elasticache/replicationGroup.js.map +1 -1
- package/emr/cluster.d.ts +12 -12
- package/emr/cluster.js +2 -2
- package/emr/cluster.js.map +1 -1
- package/emrcontainers/getVirtualCluster.d.ts +86 -0
- package/emrcontainers/getVirtualCluster.js +39 -0
- package/emrcontainers/getVirtualCluster.js.map +1 -0
- package/emrcontainers/index.d.ts +2 -0
- package/emrcontainers/index.js +38 -0
- package/emrcontainers/index.js.map +1 -0
- package/emrcontainers/virtualCluster.d.ts +134 -0
- package/emrcontainers/virtualCluster.js +89 -0
- package/emrcontainers/virtualCluster.js.map +1 -0
- package/getAmi.d.ts +4 -0
- package/getAmi.js.map +1 -1
- package/globalaccelerator/accelerator.d.ts +1 -1
- package/globalaccelerator/accelerator.js +1 -1
- package/grafana/getWorkspace.d.ts +18 -0
- package/grafana/getWorkspace.js +1 -0
- package/grafana/getWorkspace.js.map +1 -1
- package/grafana/workspace.d.ts +39 -3
- package/grafana/workspace.js +4 -0
- package/grafana/workspace.js.map +1 -1
- package/iam/getInstanceProfiles.d.ts +59 -0
- package/iam/getInstanceProfiles.js +38 -0
- package/iam/getInstanceProfiles.js.map +1 -0
- package/iam/index.d.ts +1 -0
- package/iam/index.js +1 -0
- package/iam/index.js.map +1 -1
- package/index.d.ts +5 -1
- package/index.js +12 -4
- package/index.js.map +1 -1
- package/iot/index.d.ts +1 -0
- package/iot/index.js +5 -0
- package/iot/index.js.map +1 -1
- package/iot/topicRule.d.ts +12 -3
- package/iot/topicRule.js +6 -0
- package/iot/topicRule.js.map +1 -1
- package/iot/topicRuleDestination.d.ts +78 -0
- package/iot/topicRuleDestination.js +65 -0
- package/iot/topicRuleDestination.js.map +1 -0
- package/kinesis/firehoseDeliveryStream.d.ts +46 -0
- package/kinesis/firehoseDeliveryStream.js +46 -0
- package/kinesis/firehoseDeliveryStream.js.map +1 -1
- package/kms/key.d.ts +3 -3
- package/lambda/permission.d.ts +13 -1
- package/lambda/permission.js +2 -0
- package/lambda/permission.js.map +1 -1
- package/location/getMap.d.ts +84 -0
- package/location/getMap.js +37 -0
- package/location/getMap.js.map +1 -0
- package/location/index.d.ts +2 -0
- package/location/index.js +38 -0
- package/location/index.js.map +1 -0
- package/location/map.d.ts +140 -0
- package/location/map.js +94 -0
- package/location/map.js.map +1 -0
- package/mq/getInstanceTypeOfferings.d.ts +89 -0
- package/mq/getInstanceTypeOfferings.js +51 -0
- package/mq/getInstanceTypeOfferings.js.map +1 -0
- package/mq/index.d.ts +1 -0
- package/mq/index.js +1 -0
- package/mq/index.js.map +1 -1
- package/msk/cluster.d.ts +27 -3
- package/msk/cluster.js +6 -0
- package/msk/cluster.js.map +1 -1
- package/msk/getCluster.d.ts +12 -0
- package/msk/getCluster.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +1 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/rds/cluster.d.ts +12 -0
- package/rds/cluster.js +2 -0
- package/rds/cluster.js.map +1 -1
- package/route53/hostedZoneDnsSec.d.ts +13 -4
- package/route53/hostedZoneDnsSec.js +13 -4
- package/route53/hostedZoneDnsSec.js.map +1 -1
- package/sagemaker/app.d.ts +2 -2
- package/sagemaker/app.js +2 -2
- package/sagemaker/appImageConfig.d.ts +2 -2
- package/sagemaker/appImageConfig.js +2 -2
- package/sagemaker/codeRepository.d.ts +2 -2
- package/sagemaker/codeRepository.js +2 -2
- package/sagemaker/device.d.ts +2 -2
- package/sagemaker/device.js +2 -2
- package/sagemaker/deviceFleet.d.ts +2 -2
- package/sagemaker/deviceFleet.js +2 -2
- package/sagemaker/domain.d.ts +2 -2
- package/sagemaker/domain.js +2 -2
- package/sagemaker/flowDefinition.d.ts +2 -2
- package/sagemaker/flowDefinition.js +2 -2
- package/sagemaker/humanTaskUI.d.ts +2 -2
- package/sagemaker/humanTaskUI.js +2 -2
- package/sagemaker/image.d.ts +2 -2
- package/sagemaker/image.js +2 -2
- package/sagemaker/imageVersion.d.ts +2 -2
- package/sagemaker/imageVersion.js +2 -2
- package/sagemaker/modelPackageGroup.d.ts +2 -2
- package/sagemaker/modelPackageGroup.js +2 -2
- package/sagemaker/modelPackageGroupPolicy.d.ts +2 -2
- package/sagemaker/modelPackageGroupPolicy.js +2 -2
- package/sagemaker/notebookInstance.d.ts +2 -2
- package/sagemaker/notebookInstance.js +2 -2
- package/sagemaker/project.d.ts +3 -3
- package/sagemaker/project.js +3 -3
- package/sagemaker/studioLifecycleConfig.d.ts +2 -2
- package/sagemaker/studioLifecycleConfig.js +2 -2
- package/sagemaker/userProfile.d.ts +2 -2
- package/sagemaker/userProfile.js +2 -2
- package/sagemaker/workforce.d.ts +2 -2
- package/sagemaker/workforce.js +2 -2
- package/sagemaker/workteam.d.ts +2 -2
- package/sagemaker/workteam.js +2 -2
- package/secretsmanager/getSecrets.d.ts +57 -0
- package/secretsmanager/getSecrets.js +40 -0
- package/secretsmanager/getSecrets.js.map +1 -0
- package/secretsmanager/index.d.ts +1 -0
- package/secretsmanager/index.js +1 -0
- package/secretsmanager/index.js.map +1 -1
- package/ssm/getPatchBaseline.d.ts +34 -1
- package/ssm/getPatchBaseline.js.map +1 -1
- package/types/input.d.ts +7702 -4520
- package/types/output.d.ts +8512 -5004
- package/xray/encryptionConfig.d.ts +4 -3
- package/xray/encryptionConfig.js +4 -3
- package/xray/encryptionConfig.js.map +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ConnectorProfile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an AppFlow connector profile resource.
|
|
10
|
+
*
|
|
11
|
+
* For information about AppFlow flows, see the [Amazon AppFlow API Reference](https://docs.aws.amazon.com/appflow/1.0/APIReference/Welcome.html).
|
|
12
|
+
* For specific information about creating an AppFlow connector profile, see the
|
|
13
|
+
* [CreateConnectorProfile](https://docs.aws.amazon.com/appflow/1.0/APIReference/API_CreateConnectorProfile.html) page in the Amazon AppFlow API Reference.
|
|
14
|
+
*
|
|
15
|
+
* ## Import
|
|
16
|
+
*
|
|
17
|
+
* AppFlow Connector Profile can be imported using the connector profile `arn`, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import aws:appflow/connectorProfile:ConnectorProfile profile arn:aws:appflow:us-west-2:123456789012:connectorprofile/example-profile
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* [1]https://docs.aws.amazon.com/appflow/1.0/APIReference/Welcome.html [2]https://docs.aws.amazon.com/appflow/1.0/APIReference/API_CreateConnectorProfile.html
|
|
24
|
+
*/
|
|
25
|
+
class ConnectorProfile extends pulumi.CustomResource {
|
|
26
|
+
constructor(name, argsOrState, opts) {
|
|
27
|
+
let resourceInputs = {};
|
|
28
|
+
opts = opts || {};
|
|
29
|
+
if (opts.id) {
|
|
30
|
+
const state = argsOrState;
|
|
31
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
32
|
+
resourceInputs["connectionMode"] = state ? state.connectionMode : undefined;
|
|
33
|
+
resourceInputs["connectorLabel"] = state ? state.connectorLabel : undefined;
|
|
34
|
+
resourceInputs["connectorProfileConfig"] = state ? state.connectorProfileConfig : undefined;
|
|
35
|
+
resourceInputs["connectorType"] = state ? state.connectorType : undefined;
|
|
36
|
+
resourceInputs["credentialsArn"] = state ? state.credentialsArn : undefined;
|
|
37
|
+
resourceInputs["kmsArn"] = state ? state.kmsArn : undefined;
|
|
38
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.connectionMode === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'connectionMode'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.connectorProfileConfig === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'connectorProfileConfig'");
|
|
47
|
+
}
|
|
48
|
+
if ((!args || args.connectorType === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'connectorType'");
|
|
50
|
+
}
|
|
51
|
+
resourceInputs["connectionMode"] = args ? args.connectionMode : undefined;
|
|
52
|
+
resourceInputs["connectorLabel"] = args ? args.connectorLabel : undefined;
|
|
53
|
+
resourceInputs["connectorProfileConfig"] = args ? args.connectorProfileConfig : undefined;
|
|
54
|
+
resourceInputs["connectorType"] = args ? args.connectorType : undefined;
|
|
55
|
+
resourceInputs["kmsArn"] = args ? args.kmsArn : undefined;
|
|
56
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
57
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["credentialsArn"] = undefined /*out*/;
|
|
59
|
+
}
|
|
60
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
|
+
super(ConnectorProfile.__pulumiType, name, resourceInputs, opts);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing ConnectorProfile resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name, id, state, opts) {
|
|
73
|
+
return new ConnectorProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of ConnectorProfile. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj) {
|
|
80
|
+
if (obj === undefined || obj === null) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return obj['__pulumiType'] === ConnectorProfile.__pulumiType;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.ConnectorProfile = ConnectorProfile;
|
|
87
|
+
/** @internal */
|
|
88
|
+
ConnectorProfile.__pulumiType = 'aws:appflow/connectorProfile:ConnectorProfile';
|
|
89
|
+
//# sourceMappingURL=connectorProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorProfile.js","sourceRoot":"","s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C,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IApGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CAsGC;AAxFG,gBAAgB;AACO,6BAAY,GAAG,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides an AppFlow flow resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const exampleSourceBucketV2 = new aws.s3.BucketV2("exampleSourceBucketV2", {});
|
|
13
|
+
* const exampleSourceBucketPolicy = new aws.s3.BucketPolicy("exampleSourceBucketPolicy", {
|
|
14
|
+
* bucket: exampleSourceBucketV2.id,
|
|
15
|
+
* policy: `{
|
|
16
|
+
* "Statement": [
|
|
17
|
+
* {
|
|
18
|
+
* "Effect": "Allow",
|
|
19
|
+
* "Sid": "AllowAppFlowSourceActions",
|
|
20
|
+
* "Principal": {
|
|
21
|
+
* "Service": "appflow.amazonaws.com"
|
|
22
|
+
* },
|
|
23
|
+
* "Action": [
|
|
24
|
+
* "s3:ListBucket",
|
|
25
|
+
* "s3:GetObject"
|
|
26
|
+
* ],
|
|
27
|
+
* "Resource": [
|
|
28
|
+
* "arn:aws:s3:::example_source",
|
|
29
|
+
* "arn:aws:s3:::example_source/*"
|
|
30
|
+
* ]
|
|
31
|
+
* }
|
|
32
|
+
* ],
|
|
33
|
+
* "Version": "2012-10-17"
|
|
34
|
+
* }
|
|
35
|
+
* `,
|
|
36
|
+
* });
|
|
37
|
+
* const exampleBucketObjectv2 = new aws.s3.BucketObjectv2("exampleBucketObjectv2", {
|
|
38
|
+
* bucket: exampleSourceBucketV2.id,
|
|
39
|
+
* key: "example_source.csv",
|
|
40
|
+
* source: new pulumi.asset.FileAsset("example_source.csv"),
|
|
41
|
+
* });
|
|
42
|
+
* const exampleDestinationBucketV2 = new aws.s3.BucketV2("exampleDestinationBucketV2", {});
|
|
43
|
+
* const exampleDestinationBucketPolicy = new aws.s3.BucketPolicy("exampleDestinationBucketPolicy", {
|
|
44
|
+
* bucket: exampleDestinationBucketV2.id,
|
|
45
|
+
* policy: `
|
|
46
|
+
* {
|
|
47
|
+
* "Statement": [
|
|
48
|
+
* {
|
|
49
|
+
* "Effect": "Allow",
|
|
50
|
+
* "Sid": "AllowAppFlowDestinationActions",
|
|
51
|
+
* "Principal": {
|
|
52
|
+
* "Service": "appflow.amazonaws.com"
|
|
53
|
+
* },
|
|
54
|
+
* "Action": [
|
|
55
|
+
* "s3:PutObject",
|
|
56
|
+
* "s3:AbortMultipartUpload",
|
|
57
|
+
* "s3:ListMultipartUploadParts",
|
|
58
|
+
* "s3:ListBucketMultipartUploads",
|
|
59
|
+
* "s3:GetBucketAcl",
|
|
60
|
+
* "s3:PutObjectAcl"
|
|
61
|
+
* ],
|
|
62
|
+
* "Resource": [
|
|
63
|
+
* "arn:aws:s3:::example_destination",
|
|
64
|
+
* "arn:aws:s3:::example_destination/*"
|
|
65
|
+
* ]
|
|
66
|
+
* }
|
|
67
|
+
* ],
|
|
68
|
+
* "Version": "2012-10-17"
|
|
69
|
+
* }
|
|
70
|
+
* `,
|
|
71
|
+
* });
|
|
72
|
+
* const exampleFlow = new aws.appflow.Flow("exampleFlow", {
|
|
73
|
+
* sourceFlowConfig: {
|
|
74
|
+
* connectorType: "S3",
|
|
75
|
+
* sourceConnectorProperties: {
|
|
76
|
+
* s3: {
|
|
77
|
+
* bucketName: exampleSourceBucketPolicy.bucket,
|
|
78
|
+
* bucketPrefix: "example",
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* destinationFlowConfigs: [{
|
|
83
|
+
* connectorType: "S3",
|
|
84
|
+
* destinationConnectorProperties: {
|
|
85
|
+
* s3: {
|
|
86
|
+
* bucketName: exampleDestinationBucketPolicy.bucket,
|
|
87
|
+
* s3OutputFormatConfig: {
|
|
88
|
+
* prefixConfig: {
|
|
89
|
+
* prefixType: "PATH",
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* }],
|
|
95
|
+
* tasks: [{
|
|
96
|
+
* sourceFields: ["exampleField"],
|
|
97
|
+
* destinationField: "exampleField",
|
|
98
|
+
* taskType: "Map",
|
|
99
|
+
* connectorOperators: [{
|
|
100
|
+
* s3: "NO_OP",
|
|
101
|
+
* }],
|
|
102
|
+
* }],
|
|
103
|
+
* triggerConfig: {
|
|
104
|
+
* triggerType: "OnDemand",
|
|
105
|
+
* },
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* ## Import
|
|
110
|
+
*
|
|
111
|
+
* AppFlow flows can be imported using the `arn`, e.g.
|
|
112
|
+
*
|
|
113
|
+
* ```sh
|
|
114
|
+
* $ pulumi import aws:appflow/flow:Flow example arn:aws:appflow:us-west-2:123456789012:flow/example-flow
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export declare class Flow extends pulumi.CustomResource {
|
|
118
|
+
/**
|
|
119
|
+
* Get an existing Flow resource's state with the given name, ID, and optional extra
|
|
120
|
+
* properties used to qualify the lookup.
|
|
121
|
+
*
|
|
122
|
+
* @param name The _unique_ name of the resulting resource.
|
|
123
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
124
|
+
* @param state Any extra arguments used during the lookup.
|
|
125
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
126
|
+
*/
|
|
127
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FlowState, opts?: pulumi.CustomResourceOptions): Flow;
|
|
128
|
+
/**
|
|
129
|
+
* Returns true if the given object is an instance of Flow. This is designed to work even
|
|
130
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
131
|
+
*/
|
|
132
|
+
static isInstance(obj: any): obj is Flow;
|
|
133
|
+
/**
|
|
134
|
+
* The flow's Amazon Resource Name (ARN).
|
|
135
|
+
*/
|
|
136
|
+
readonly arn: pulumi.Output<string>;
|
|
137
|
+
/**
|
|
138
|
+
* A description of the flow you want to create.
|
|
139
|
+
*/
|
|
140
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector.
|
|
143
|
+
*/
|
|
144
|
+
readonly destinationFlowConfigs: pulumi.Output<outputs.appflow.FlowDestinationFlowConfig[]>;
|
|
145
|
+
/**
|
|
146
|
+
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
|
|
147
|
+
*/
|
|
148
|
+
readonly kmsArn: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The name of the flow.
|
|
151
|
+
*/
|
|
152
|
+
readonly name: pulumi.Output<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector.
|
|
155
|
+
*/
|
|
156
|
+
readonly sourceFlowConfig: pulumi.Output<outputs.appflow.FlowSourceFlowConfig>;
|
|
157
|
+
/**
|
|
158
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
159
|
+
*/
|
|
160
|
+
readonly tags: pulumi.Output<{
|
|
161
|
+
[key: string]: string;
|
|
162
|
+
} | undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
165
|
+
*/
|
|
166
|
+
readonly tagsAll: pulumi.Output<{
|
|
167
|
+
[key: string]: string;
|
|
168
|
+
}>;
|
|
169
|
+
/**
|
|
170
|
+
* A Task that Amazon AppFlow performs while transferring the data in the flow run.
|
|
171
|
+
*/
|
|
172
|
+
readonly tasks: pulumi.Output<outputs.appflow.FlowTask[]>;
|
|
173
|
+
/**
|
|
174
|
+
* A Trigger that determine how and when the flow runs.
|
|
175
|
+
*/
|
|
176
|
+
readonly triggerConfig: pulumi.Output<outputs.appflow.FlowTriggerConfig>;
|
|
177
|
+
/**
|
|
178
|
+
* Create a Flow resource with the given unique name, arguments, and options.
|
|
179
|
+
*
|
|
180
|
+
* @param name The _unique_ name of the resource.
|
|
181
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
182
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
183
|
+
*/
|
|
184
|
+
constructor(name: string, args: FlowArgs, opts?: pulumi.CustomResourceOptions);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Input properties used for looking up and filtering Flow resources.
|
|
188
|
+
*/
|
|
189
|
+
export interface FlowState {
|
|
190
|
+
/**
|
|
191
|
+
* The flow's Amazon Resource Name (ARN).
|
|
192
|
+
*/
|
|
193
|
+
arn?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* A description of the flow you want to create.
|
|
196
|
+
*/
|
|
197
|
+
description?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector.
|
|
200
|
+
*/
|
|
201
|
+
destinationFlowConfigs?: pulumi.Input<pulumi.Input<inputs.appflow.FlowDestinationFlowConfig>[]>;
|
|
202
|
+
/**
|
|
203
|
+
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
|
|
204
|
+
*/
|
|
205
|
+
kmsArn?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* The name of the flow.
|
|
208
|
+
*/
|
|
209
|
+
name?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector.
|
|
212
|
+
*/
|
|
213
|
+
sourceFlowConfig?: pulumi.Input<inputs.appflow.FlowSourceFlowConfig>;
|
|
214
|
+
/**
|
|
215
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
216
|
+
*/
|
|
217
|
+
tags?: pulumi.Input<{
|
|
218
|
+
[key: string]: pulumi.Input<string>;
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
222
|
+
*/
|
|
223
|
+
tagsAll?: pulumi.Input<{
|
|
224
|
+
[key: string]: pulumi.Input<string>;
|
|
225
|
+
}>;
|
|
226
|
+
/**
|
|
227
|
+
* A Task that Amazon AppFlow performs while transferring the data in the flow run.
|
|
228
|
+
*/
|
|
229
|
+
tasks?: pulumi.Input<pulumi.Input<inputs.appflow.FlowTask>[]>;
|
|
230
|
+
/**
|
|
231
|
+
* A Trigger that determine how and when the flow runs.
|
|
232
|
+
*/
|
|
233
|
+
triggerConfig?: pulumi.Input<inputs.appflow.FlowTriggerConfig>;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* The set of arguments for constructing a Flow resource.
|
|
237
|
+
*/
|
|
238
|
+
export interface FlowArgs {
|
|
239
|
+
/**
|
|
240
|
+
* A description of the flow you want to create.
|
|
241
|
+
*/
|
|
242
|
+
description?: pulumi.Input<string>;
|
|
243
|
+
/**
|
|
244
|
+
* A Destination Flow Config that controls how Amazon AppFlow places data in the destination connector.
|
|
245
|
+
*/
|
|
246
|
+
destinationFlowConfigs: pulumi.Input<pulumi.Input<inputs.appflow.FlowDestinationFlowConfig>[]>;
|
|
247
|
+
/**
|
|
248
|
+
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
|
|
249
|
+
*/
|
|
250
|
+
kmsArn?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* The name of the flow.
|
|
253
|
+
*/
|
|
254
|
+
name?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* The Source Flow Config that controls how Amazon AppFlow retrieves data from the source connector.
|
|
257
|
+
*/
|
|
258
|
+
sourceFlowConfig: pulumi.Input<inputs.appflow.FlowSourceFlowConfig>;
|
|
259
|
+
/**
|
|
260
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
261
|
+
*/
|
|
262
|
+
tags?: pulumi.Input<{
|
|
263
|
+
[key: string]: pulumi.Input<string>;
|
|
264
|
+
}>;
|
|
265
|
+
/**
|
|
266
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
267
|
+
*/
|
|
268
|
+
tagsAll?: pulumi.Input<{
|
|
269
|
+
[key: string]: pulumi.Input<string>;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* A Task that Amazon AppFlow performs while transferring the data in the flow run.
|
|
273
|
+
*/
|
|
274
|
+
tasks: pulumi.Input<pulumi.Input<inputs.appflow.FlowTask>[]>;
|
|
275
|
+
/**
|
|
276
|
+
* A Trigger that determine how and when the flow runs.
|
|
277
|
+
*/
|
|
278
|
+
triggerConfig: pulumi.Input<inputs.appflow.FlowTriggerConfig>;
|
|
279
|
+
}
|
package/appflow/flow.js
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Flow = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an AppFlow flow resource.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const exampleSourceBucketV2 = new aws.s3.BucketV2("exampleSourceBucketV2", {});
|
|
18
|
+
* const exampleSourceBucketPolicy = new aws.s3.BucketPolicy("exampleSourceBucketPolicy", {
|
|
19
|
+
* bucket: exampleSourceBucketV2.id,
|
|
20
|
+
* policy: `{
|
|
21
|
+
* "Statement": [
|
|
22
|
+
* {
|
|
23
|
+
* "Effect": "Allow",
|
|
24
|
+
* "Sid": "AllowAppFlowSourceActions",
|
|
25
|
+
* "Principal": {
|
|
26
|
+
* "Service": "appflow.amazonaws.com"
|
|
27
|
+
* },
|
|
28
|
+
* "Action": [
|
|
29
|
+
* "s3:ListBucket",
|
|
30
|
+
* "s3:GetObject"
|
|
31
|
+
* ],
|
|
32
|
+
* "Resource": [
|
|
33
|
+
* "arn:aws:s3:::example_source",
|
|
34
|
+
* "arn:aws:s3:::example_source/*"
|
|
35
|
+
* ]
|
|
36
|
+
* }
|
|
37
|
+
* ],
|
|
38
|
+
* "Version": "2012-10-17"
|
|
39
|
+
* }
|
|
40
|
+
* `,
|
|
41
|
+
* });
|
|
42
|
+
* const exampleBucketObjectv2 = new aws.s3.BucketObjectv2("exampleBucketObjectv2", {
|
|
43
|
+
* bucket: exampleSourceBucketV2.id,
|
|
44
|
+
* key: "example_source.csv",
|
|
45
|
+
* source: new pulumi.asset.FileAsset("example_source.csv"),
|
|
46
|
+
* });
|
|
47
|
+
* const exampleDestinationBucketV2 = new aws.s3.BucketV2("exampleDestinationBucketV2", {});
|
|
48
|
+
* const exampleDestinationBucketPolicy = new aws.s3.BucketPolicy("exampleDestinationBucketPolicy", {
|
|
49
|
+
* bucket: exampleDestinationBucketV2.id,
|
|
50
|
+
* policy: `
|
|
51
|
+
* {
|
|
52
|
+
* "Statement": [
|
|
53
|
+
* {
|
|
54
|
+
* "Effect": "Allow",
|
|
55
|
+
* "Sid": "AllowAppFlowDestinationActions",
|
|
56
|
+
* "Principal": {
|
|
57
|
+
* "Service": "appflow.amazonaws.com"
|
|
58
|
+
* },
|
|
59
|
+
* "Action": [
|
|
60
|
+
* "s3:PutObject",
|
|
61
|
+
* "s3:AbortMultipartUpload",
|
|
62
|
+
* "s3:ListMultipartUploadParts",
|
|
63
|
+
* "s3:ListBucketMultipartUploads",
|
|
64
|
+
* "s3:GetBucketAcl",
|
|
65
|
+
* "s3:PutObjectAcl"
|
|
66
|
+
* ],
|
|
67
|
+
* "Resource": [
|
|
68
|
+
* "arn:aws:s3:::example_destination",
|
|
69
|
+
* "arn:aws:s3:::example_destination/*"
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* ],
|
|
73
|
+
* "Version": "2012-10-17"
|
|
74
|
+
* }
|
|
75
|
+
* `,
|
|
76
|
+
* });
|
|
77
|
+
* const exampleFlow = new aws.appflow.Flow("exampleFlow", {
|
|
78
|
+
* sourceFlowConfig: {
|
|
79
|
+
* connectorType: "S3",
|
|
80
|
+
* sourceConnectorProperties: {
|
|
81
|
+
* s3: {
|
|
82
|
+
* bucketName: exampleSourceBucketPolicy.bucket,
|
|
83
|
+
* bucketPrefix: "example",
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* destinationFlowConfigs: [{
|
|
88
|
+
* connectorType: "S3",
|
|
89
|
+
* destinationConnectorProperties: {
|
|
90
|
+
* s3: {
|
|
91
|
+
* bucketName: exampleDestinationBucketPolicy.bucket,
|
|
92
|
+
* s3OutputFormatConfig: {
|
|
93
|
+
* prefixConfig: {
|
|
94
|
+
* prefixType: "PATH",
|
|
95
|
+
* },
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* }],
|
|
100
|
+
* tasks: [{
|
|
101
|
+
* sourceFields: ["exampleField"],
|
|
102
|
+
* destinationField: "exampleField",
|
|
103
|
+
* taskType: "Map",
|
|
104
|
+
* connectorOperators: [{
|
|
105
|
+
* s3: "NO_OP",
|
|
106
|
+
* }],
|
|
107
|
+
* }],
|
|
108
|
+
* triggerConfig: {
|
|
109
|
+
* triggerType: "OnDemand",
|
|
110
|
+
* },
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* ## Import
|
|
115
|
+
*
|
|
116
|
+
* AppFlow flows can be imported using the `arn`, e.g.
|
|
117
|
+
*
|
|
118
|
+
* ```sh
|
|
119
|
+
* $ pulumi import aws:appflow/flow:Flow example arn:aws:appflow:us-west-2:123456789012:flow/example-flow
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
class Flow extends pulumi.CustomResource {
|
|
123
|
+
constructor(name, argsOrState, opts) {
|
|
124
|
+
let resourceInputs = {};
|
|
125
|
+
opts = opts || {};
|
|
126
|
+
if (opts.id) {
|
|
127
|
+
const state = argsOrState;
|
|
128
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
129
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
130
|
+
resourceInputs["destinationFlowConfigs"] = state ? state.destinationFlowConfigs : undefined;
|
|
131
|
+
resourceInputs["kmsArn"] = state ? state.kmsArn : undefined;
|
|
132
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
133
|
+
resourceInputs["sourceFlowConfig"] = state ? state.sourceFlowConfig : undefined;
|
|
134
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
135
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
136
|
+
resourceInputs["tasks"] = state ? state.tasks : undefined;
|
|
137
|
+
resourceInputs["triggerConfig"] = state ? state.triggerConfig : undefined;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
const args = argsOrState;
|
|
141
|
+
if ((!args || args.destinationFlowConfigs === undefined) && !opts.urn) {
|
|
142
|
+
throw new Error("Missing required property 'destinationFlowConfigs'");
|
|
143
|
+
}
|
|
144
|
+
if ((!args || args.sourceFlowConfig === undefined) && !opts.urn) {
|
|
145
|
+
throw new Error("Missing required property 'sourceFlowConfig'");
|
|
146
|
+
}
|
|
147
|
+
if ((!args || args.tasks === undefined) && !opts.urn) {
|
|
148
|
+
throw new Error("Missing required property 'tasks'");
|
|
149
|
+
}
|
|
150
|
+
if ((!args || args.triggerConfig === undefined) && !opts.urn) {
|
|
151
|
+
throw new Error("Missing required property 'triggerConfig'");
|
|
152
|
+
}
|
|
153
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
154
|
+
resourceInputs["destinationFlowConfigs"] = args ? args.destinationFlowConfigs : undefined;
|
|
155
|
+
resourceInputs["kmsArn"] = args ? args.kmsArn : undefined;
|
|
156
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
157
|
+
resourceInputs["sourceFlowConfig"] = args ? args.sourceFlowConfig : undefined;
|
|
158
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
159
|
+
resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
160
|
+
resourceInputs["tasks"] = args ? args.tasks : undefined;
|
|
161
|
+
resourceInputs["triggerConfig"] = args ? args.triggerConfig : undefined;
|
|
162
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
163
|
+
}
|
|
164
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
165
|
+
super(Flow.__pulumiType, name, resourceInputs, opts);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get an existing Flow resource's state with the given name, ID, and optional extra
|
|
169
|
+
* properties used to qualify the lookup.
|
|
170
|
+
*
|
|
171
|
+
* @param name The _unique_ name of the resulting resource.
|
|
172
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
173
|
+
* @param state Any extra arguments used during the lookup.
|
|
174
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
175
|
+
*/
|
|
176
|
+
static get(name, id, state, opts) {
|
|
177
|
+
return new Flow(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Returns true if the given object is an instance of Flow. This is designed to work even
|
|
181
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
182
|
+
*/
|
|
183
|
+
static isInstance(obj) {
|
|
184
|
+
if (obj === undefined || obj === null) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
return obj['__pulumiType'] === Flow.__pulumiType;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.Flow = Flow;
|
|
191
|
+
/** @internal */
|
|
192
|
+
Flow.__pulumiType = 'aws:appflow/flow:Flow';
|
|
193
|
+
//# sourceMappingURL=flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../appflow/flow.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiHG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IA6E3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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AC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAtHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBAwHC;AA1GG,gBAAgB;AACO,iBAAY,GAAG,uBAAuB,CAAC"}
|
package/appflow/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
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
|
+
const pulumi = require("@pulumi/pulumi");
|
|
20
|
+
const utilities = require("../utilities");
|
|
21
|
+
// Export members:
|
|
22
|
+
__exportStar(require("./connectorProfile"), exports);
|
|
23
|
+
__exportStar(require("./flow"), exports);
|
|
24
|
+
// Import resources to register:
|
|
25
|
+
const connectorProfile_1 = require("./connectorProfile");
|
|
26
|
+
const flow_1 = require("./flow");
|
|
27
|
+
const _module = {
|
|
28
|
+
version: utilities.getVersion(),
|
|
29
|
+
construct: (name, type, urn) => {
|
|
30
|
+
switch (type) {
|
|
31
|
+
case "aws:appflow/connectorProfile:ConnectorProfile":
|
|
32
|
+
return new connectorProfile_1.ConnectorProfile(name, undefined, { urn });
|
|
33
|
+
case "aws:appflow/flow:Flow":
|
|
34
|
+
return new flow_1.Flow(name, undefined, { urn });
|
|
35
|
+
default:
|
|
36
|
+
throw new Error(`unknown resource type ${type}`);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
pulumi.runtime.registerResourceModule("aws", "appflow/connectorProfile", _module);
|
|
41
|
+
pulumi.runtime.registerResourceModule("aws", "appflow/flow", _module);
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../appflow/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,qDAAmC;AACnC,yCAAuB;AAEvB,gCAAgC;AAChC,yDAAsD;AACtD,iCAA8B;AAE9B,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,+CAA+C;gBAChD,OAAO,IAAI,mCAAgB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC9D,KAAK,uBAAuB;gBACxB,OAAO,IAAI,WAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA"}
|
package/apprunner/service.d.ts
CHANGED
|
@@ -53,11 +53,12 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
53
53
|
* const example = new aws.apprunner.Service("example", {
|
|
54
54
|
* serviceName: "example",
|
|
55
55
|
* sourceConfiguration: {
|
|
56
|
+
* autoDeploymentEnabled: false,
|
|
56
57
|
* imageRepository: {
|
|
57
58
|
* imageConfiguration: {
|
|
58
59
|
* port: "8000",
|
|
59
60
|
* },
|
|
60
|
-
* imageIdentifier: "public.ecr.aws/
|
|
61
|
+
* imageIdentifier: "public.ecr.aws/aws-containers/hello-app-runner:latest",
|
|
61
62
|
* imageRepositoryType: "ECR_PUBLIC",
|
|
62
63
|
* },
|
|
63
64
|
* },
|
package/apprunner/service.js
CHANGED
|
@@ -58,11 +58,12 @@ const utilities = require("../utilities");
|
|
|
58
58
|
* const example = new aws.apprunner.Service("example", {
|
|
59
59
|
* serviceName: "example",
|
|
60
60
|
* sourceConfiguration: {
|
|
61
|
+
* autoDeploymentEnabled: false,
|
|
61
62
|
* imageRepository: {
|
|
62
63
|
* imageConfiguration: {
|
|
63
64
|
* port: "8000",
|
|
64
65
|
* },
|
|
65
|
-
* imageIdentifier: "public.ecr.aws/
|
|
66
|
+
* imageIdentifier: "public.ecr.aws/aws-containers/hello-app-runner:latest",
|
|
66
67
|
* imageRepositoryType: "ECR_PUBLIC",
|
|
67
68
|
* },
|
|
68
69
|
* },
|