@pulumi/aws-native 1.77.0-alpha.1787913348 → 1.77.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/bedrockagentcore/gateway.d.ts +3 -0
- package/bedrockagentcore/gateway.d.ts.map +1 -1
- package/bedrockagentcore/gateway.js +4 -0
- package/bedrockagentcore/gateway.js.map +1 -1
- package/bedrockagentcore/getGateway.d.ts +2 -0
- package/bedrockagentcore/getGateway.d.ts.map +1 -1
- package/bedrockagentcore/getGateway.js.map +1 -1
- package/codebuild/getReportGroup.d.ts +39 -0
- package/codebuild/getReportGroup.d.ts.map +1 -0
- package/codebuild/getReportGroup.js +51 -0
- package/codebuild/getReportGroup.js.map +1 -0
- package/codebuild/index.d.ts +6 -0
- package/codebuild/index.d.ts.map +1 -1
- package/codebuild/index.js +8 -1
- package/codebuild/index.js.map +1 -1
- package/codebuild/reportGroup.d.ts +97 -0
- package/codebuild/reportGroup.d.ts.map +1 -0
- package/codebuild/reportGroup.js +97 -0
- package/codebuild/reportGroup.js.map +1 -0
- package/configuration/deliveryChannel.d.ts +18 -5
- package/configuration/deliveryChannel.d.ts.map +1 -1
- package/configuration/deliveryChannel.js +3 -1
- package/configuration/deliveryChannel.js.map +1 -1
- package/configuration/getDeliveryChannel.d.ts +10 -11
- package/configuration/getDeliveryChannel.d.ts.map +1 -1
- package/configuration/getDeliveryChannel.js +4 -4
- package/configuration/getDeliveryChannel.js.map +1 -1
- package/configuration/index.d.ts +0 -1
- package/configuration/index.d.ts.map +1 -1
- package/configuration/index.js +0 -5
- package/configuration/index.js.map +1 -1
- package/ec2/fpgaImage.d.ts +112 -0
- package/ec2/fpgaImage.d.ts.map +1 -0
- package/ec2/fpgaImage.js +107 -0
- package/ec2/fpgaImage.js.map +1 -0
- package/ec2/getFpgaImage.d.ts +73 -0
- package/ec2/getFpgaImage.d.ts.map +1 -0
- package/ec2/getFpgaImage.js +51 -0
- package/ec2/getFpgaImage.js.map +1 -0
- package/ec2/getIpamExternalResourceVerificationToken.d.ts +66 -0
- package/ec2/getIpamExternalResourceVerificationToken.d.ts.map +1 -0
- package/ec2/getIpamExternalResourceVerificationToken.js +51 -0
- package/ec2/getIpamExternalResourceVerificationToken.js.map +1 -0
- package/ec2/index.d.ts +12 -0
- package/ec2/index.d.ts.map +1 -1
- package/ec2/index.js +21 -7
- package/ec2/index.js.map +1 -1
- package/ec2/ipamExternalResourceVerificationToken.d.ts +89 -0
- package/ec2/ipamExternalResourceVerificationToken.d.ts.map +1 -0
- package/ec2/ipamExternalResourceVerificationToken.js +104 -0
- package/ec2/ipamExternalResourceVerificationToken.js.map +1 -0
- package/ec2/vpnConnection.d.ts +2 -2
- package/elementalinference/feed.d.ts +2 -0
- package/elementalinference/feed.d.ts.map +1 -1
- package/elementalinference/feed.js +2 -0
- package/elementalinference/feed.js.map +1 -1
- package/elementalinference/getFeed.d.ts +1 -0
- package/elementalinference/getFeed.d.ts.map +1 -1
- package/elementalinference/getFeed.js.map +1 -1
- package/events/getRule.d.ts +4 -0
- package/events/getRule.d.ts.map +1 -1
- package/events/getRule.js.map +1 -1
- package/events/rule.d.ts +4 -0
- package/events/rule.d.ts.map +1 -1
- package/events/rule.js +2 -0
- package/events/rule.js.map +1 -1
- package/glue/connection.d.ts +68 -0
- package/glue/connection.d.ts.map +1 -0
- package/glue/connection.js +93 -0
- package/glue/connection.js.map +1 -0
- package/glue/getConnection.d.ts +47 -0
- package/glue/getConnection.d.ts.map +1 -0
- package/glue/getConnection.js +53 -0
- package/glue/getConnection.js.map +1 -0
- package/glue/index.d.ts +6 -0
- package/glue/index.d.ts.map +1 -1
- package/glue/index.js +9 -2
- package/glue/index.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/invoicing/getProcurementPortalPreference.d.ts +81 -0
- package/invoicing/getProcurementPortalPreference.d.ts.map +1 -0
- package/invoicing/getProcurementPortalPreference.js +51 -0
- package/invoicing/getProcurementPortalPreference.js.map +1 -0
- package/invoicing/index.d.ts +7 -0
- package/invoicing/index.d.ts.map +1 -1
- package/invoicing/index.js +13 -1
- package/invoicing/index.js.map +1 -1
- package/invoicing/procurementPortalPreference.d.ts +163 -0
- package/invoicing/procurementPortalPreference.d.ts.map +1 -0
- package/invoicing/procurementPortalPreference.js +147 -0
- package/invoicing/procurementPortalPreference.js.map +1 -0
- package/lambda/getResourcePolicy.d.ts +30 -5
- package/lambda/getResourcePolicy.d.ts.map +1 -1
- package/lambda/getResourcePolicy.js +26 -2
- package/lambda/getResourcePolicy.js.map +1 -1
- package/lambda/resourcePolicy.d.ts +19 -5
- package/lambda/resourcePolicy.d.ts.map +1 -1
- package/lambda/resourcePolicy.js +13 -1
- package/lambda/resourcePolicy.js.map +1 -1
- package/lightsail/contactMethod.d.ts +75 -0
- package/lightsail/contactMethod.d.ts.map +1 -0
- package/lightsail/contactMethod.js +101 -0
- package/lightsail/contactMethod.js.map +1 -0
- package/lightsail/getContactMethod.d.ts +49 -0
- package/lightsail/getContactMethod.d.ts.map +1 -0
- package/lightsail/getContactMethod.js +51 -0
- package/lightsail/getContactMethod.js.map +1 -0
- package/lightsail/index.d.ts +6 -0
- package/lightsail/index.d.ts.map +1 -1
- package/lightsail/index.js +8 -1
- package/lightsail/index.js.map +1 -1
- package/networkmanager/connectAttachment.d.ts +2 -10
- package/networkmanager/connectAttachment.d.ts.map +1 -1
- package/networkmanager/connectAttachment.js +2 -2
- package/networkmanager/connectAttachment.js.map +1 -1
- package/networkmanager/directConnectGatewayAttachment.d.ts +2 -10
- package/networkmanager/directConnectGatewayAttachment.d.ts.map +1 -1
- package/networkmanager/directConnectGatewayAttachment.js +2 -2
- package/networkmanager/directConnectGatewayAttachment.js.map +1 -1
- package/networkmanager/siteToSiteVpnAttachment.d.ts +2 -10
- package/networkmanager/siteToSiteVpnAttachment.d.ts.map +1 -1
- package/networkmanager/siteToSiteVpnAttachment.js +2 -2
- package/networkmanager/siteToSiteVpnAttachment.js.map +1 -1
- package/networkmanager/transitGatewayRouteTableAttachment.d.ts +2 -10
- package/networkmanager/transitGatewayRouteTableAttachment.d.ts.map +1 -1
- package/networkmanager/transitGatewayRouteTableAttachment.js +2 -2
- package/networkmanager/transitGatewayRouteTableAttachment.js.map +1 -1
- package/networkmanager/vpcAttachment.d.ts +2 -10
- package/networkmanager/vpcAttachment.d.ts.map +1 -1
- package/networkmanager/vpcAttachment.js +2 -2
- package/networkmanager/vpcAttachment.js.map +1 -1
- package/package.json +3 -3
- package/package.json.dev +2 -2
- package/rds/dbCluster.js +1 -1
- package/rds/dbCluster.js.map +1 -1
- package/rds/getDbCluster.d.ts +5 -0
- package/rds/getDbCluster.d.ts.map +1 -1
- package/rds/getDbCluster.js.map +1 -1
- package/sagemaker/getInferenceComponent.d.ts +1 -0
- package/sagemaker/getInferenceComponent.d.ts.map +1 -1
- package/sagemaker/getInferenceComponent.js.map +1 -1
- package/sagemaker/inferenceComponent.d.ts +4 -2
- package/sagemaker/inferenceComponent.d.ts.map +1 -1
- package/sagemaker/inferenceComponent.js +2 -3
- package/sagemaker/inferenceComponent.js.map +1 -1
- package/servicediscovery/getHttpNamespace.d.ts +41 -0
- package/servicediscovery/getHttpNamespace.d.ts.map +1 -0
- package/servicediscovery/getHttpNamespace.js +51 -0
- package/servicediscovery/getHttpNamespace.js.map +1 -0
- package/servicediscovery/httpNamespace.d.ts +68 -0
- package/servicediscovery/httpNamespace.d.ts.map +1 -0
- package/servicediscovery/httpNamespace.js +89 -0
- package/servicediscovery/httpNamespace.js.map +1 -0
- package/servicediscovery/index.d.ts +6 -0
- package/servicediscovery/index.d.ts.map +1 -1
- package/servicediscovery/index.js +8 -1
- package/servicediscovery/index.js.map +1 -1
- package/ssm/association.d.ts.map +1 -1
- package/ssm/association.js +2 -0
- package/ssm/association.js.map +1 -1
- package/ssm/getAssociation.d.ts +0 -4
- package/ssm/getAssociation.d.ts.map +1 -1
- package/ssm/getAssociation.js.map +1 -1
- package/supportauthz/getSupportPermit.d.ts +46 -0
- package/supportauthz/getSupportPermit.d.ts.map +1 -0
- package/supportauthz/getSupportPermit.js +51 -0
- package/supportauthz/getSupportPermit.js.map +1 -0
- package/supportauthz/index.d.ts +8 -0
- package/supportauthz/index.d.ts.map +1 -0
- package/supportauthz/index.js +53 -0
- package/supportauthz/index.js.map +1 -0
- package/supportauthz/supportPermit.d.ts +89 -0
- package/supportauthz/supportPermit.d.ts.map +1 -0
- package/supportauthz/supportPermit.js +105 -0
- package/supportauthz/supportPermit.js.map +1 -0
- package/types/enums/arcregionswitch/index.d.ts +5 -0
- package/types/enums/arcregionswitch/index.d.ts.map +1 -1
- package/types/enums/arcregionswitch/index.js +5 -1
- package/types/enums/arcregionswitch/index.js.map +1 -1
- package/types/enums/autoscaling/index.d.ts +7 -0
- package/types/enums/autoscaling/index.d.ts.map +1 -1
- package/types/enums/autoscaling/index.js +7 -1
- package/types/enums/autoscaling/index.js.map +1 -1
- package/types/enums/bedrockagentcore/index.d.ts +5 -2
- package/types/enums/bedrockagentcore/index.d.ts.map +1 -1
- package/types/enums/bedrockagentcore/index.js +7 -5
- package/types/enums/bedrockagentcore/index.js.map +1 -1
- package/types/enums/codebuild/index.d.ts +33 -0
- package/types/enums/codebuild/index.d.ts.map +1 -1
- package/types/enums/codebuild/index.js +13 -1
- package/types/enums/codebuild/index.js.map +1 -1
- package/types/enums/ec2/index.d.ts +21 -1
- package/types/enums/ec2/index.d.ts.map +1 -1
- package/types/enums/ec2/index.js +15 -3
- package/types/enums/ec2/index.js.map +1 -1
- package/types/enums/gamelift/index.d.ts +4 -2
- package/types/enums/gamelift/index.d.ts.map +1 -1
- package/types/enums/gamelift/index.js +2 -0
- package/types/enums/gamelift/index.js.map +1 -1
- package/types/enums/index.d.ts +3 -2
- package/types/enums/index.d.ts.map +1 -1
- package/types/enums/index.js +7 -5
- package/types/enums/index.js.map +1 -1
- package/types/enums/invoicing/index.d.ts +108 -0
- package/types/enums/invoicing/index.d.ts.map +1 -0
- package/types/enums/invoicing/index.js +67 -0
- package/types/enums/invoicing/index.js.map +1 -0
- package/types/enums/lambda/index.d.ts +9 -0
- package/types/enums/lambda/index.d.ts.map +1 -1
- package/types/enums/lambda/index.js +6 -1
- package/types/enums/lambda/index.js.map +1 -1
- package/types/enums/lightsail/index.d.ts +17 -0
- package/types/enums/lightsail/index.d.ts.map +1 -1
- package/types/enums/lightsail/index.js +10 -1
- package/types/enums/lightsail/index.js.map +1 -1
- package/types/enums/mediatailor/index.d.ts +18 -0
- package/types/enums/mediatailor/index.d.ts.map +1 -1
- package/types/enums/mediatailor/index.js +11 -1
- package/types/enums/mediatailor/index.js.map +1 -1
- package/types/enums/observabilityadmin/index.d.ts +9 -0
- package/types/enums/observabilityadmin/index.d.ts.map +1 -1
- package/types/enums/observabilityadmin/index.js +6 -1
- package/types/enums/observabilityadmin/index.js.map +1 -1
- package/types/enums/sagemaker/index.d.ts +9 -0
- package/types/enums/sagemaker/index.d.ts.map +1 -1
- package/types/enums/sagemaker/index.js +10 -3
- package/types/enums/sagemaker/index.js.map +1 -1
- package/types/enums/supportauthz/index.d.ts +10 -0
- package/types/enums/supportauthz/index.d.ts.map +1 -0
- package/types/enums/supportauthz/index.js +11 -0
- package/types/enums/supportauthz/index.js.map +1 -0
- package/types/input.d.ts +588 -242
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +588 -7
- package/types/output.d.ts.map +1 -1
- package/types/output.js.map +1 -1
- package/vpclattice/getServiceNetworkVpcAssociation.d.ts +8 -0
- package/vpclattice/getServiceNetworkVpcAssociation.d.ts.map +1 -1
- package/vpclattice/getServiceNetworkVpcAssociation.js.map +1 -1
- package/vpclattice/serviceNetworkVpcAssociation.js +1 -1
- package/vpclattice/serviceNetworkVpcAssociation.js.map +1 -1
- package/types/enums/configuration/index.d.ts +0 -12
- package/types/enums/configuration/index.d.ts.map +0 -1
- package/types/enums/configuration/index.js +0 -13
- package/types/enums/configuration/index.js.map +0 -1
package/invoicing/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../invoicing/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../invoicing/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAI7B,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC/E,QAAA,oBAAoB,GAA2D,IAAW,CAAC;AACxG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAC,sBAAsB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAG7F,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;AAI7I,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,2BAA2B,GAA+E,IAAW,CAAC;AACnI,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,6BAA6B,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAG7G,gBAAgB;AAChB,2DAAyC;AAEzC,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,kCAAkC;gBACnC,OAAO,IAAI,mBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,kDAAkD;gBACnD,OAAO,IAAI,mCAA2B,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
* Creates and manages a procurement portal preference configuration for e-invoice delivery and purchase order retrieval.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProcurementPortalPreference extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ProcurementPortalPreference 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): ProcurementPortalPreference;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of ProcurementPortalPreference. 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 ProcurementPortalPreference;
|
|
23
|
+
/**
|
|
24
|
+
* The AWS account ID associated with this procurement portal preference.
|
|
25
|
+
*/
|
|
26
|
+
readonly awsAccountId: pulumi.Output<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The domain identifier for the buyer in the procurement portal.
|
|
29
|
+
*/
|
|
30
|
+
readonly buyerDomain: pulumi.Output<enums.invoicing.ProcurementPortalPreferenceBuyerDomain>;
|
|
31
|
+
/**
|
|
32
|
+
* The unique identifier for the buyer in the procurement portal.
|
|
33
|
+
*/
|
|
34
|
+
readonly buyerIdentifier: pulumi.Output<string>;
|
|
35
|
+
/**
|
|
36
|
+
* List of contact information for portal administrators and technical contacts.
|
|
37
|
+
*/
|
|
38
|
+
readonly contacts: pulumi.Output<outputs.invoicing.ProcurementPortalPreferenceContact[]>;
|
|
39
|
+
/**
|
|
40
|
+
* The date and time when the procurement portal preference was created.
|
|
41
|
+
*/
|
|
42
|
+
readonly createDate: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether e-invoice delivery is enabled for this procurement portal preference.
|
|
45
|
+
*/
|
|
46
|
+
readonly einvoiceDeliveryEnabled: pulumi.Output<boolean>;
|
|
47
|
+
readonly einvoiceDeliveryPreference: pulumi.Output<outputs.invoicing.ProcurementPortalPreferenceEinvoiceDeliveryPreference | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The current status of the e-invoice delivery preference.
|
|
50
|
+
*/
|
|
51
|
+
readonly einvoiceDeliveryPreferenceStatus: pulumi.Output<enums.invoicing.ProcurementPortalPreferenceEinvoiceDeliveryPreferenceStatus>;
|
|
52
|
+
/**
|
|
53
|
+
* The date and time when the procurement portal preference was last updated.
|
|
54
|
+
*/
|
|
55
|
+
readonly lastUpdateDate: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The endpoint URL where e-invoices are delivered to the procurement portal.
|
|
58
|
+
*/
|
|
59
|
+
readonly procurementPortalInstanceEndpoint: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the procurement portal.
|
|
62
|
+
*/
|
|
63
|
+
readonly procurementPortalName: pulumi.Output<enums.invoicing.ProcurementPortalPreferenceProcurementPortalName>;
|
|
64
|
+
/**
|
|
65
|
+
* The Amazon Resource Name (ARN) of the procurement portal preference.
|
|
66
|
+
*/
|
|
67
|
+
readonly procurementPortalPreferenceArn: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The shared secret or authentication credential used for secure communication with the procurement portal.
|
|
70
|
+
*/
|
|
71
|
+
readonly procurementPortalSharedSecret: pulumi.Output<string | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Indicates whether purchase order retrieval is enabled for this procurement portal preference.
|
|
74
|
+
*/
|
|
75
|
+
readonly purchaseOrderRetrievalEnabled: pulumi.Output<boolean>;
|
|
76
|
+
/**
|
|
77
|
+
* The endpoint URL used for retrieving purchase orders from the procurement portal.
|
|
78
|
+
*/
|
|
79
|
+
readonly purchaseOrderRetrievalEndpoint: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The current status of the purchase order retrieval preference.
|
|
82
|
+
*/
|
|
83
|
+
readonly purchaseOrderRetrievalPreferenceStatus: pulumi.Output<enums.invoicing.ProcurementPortalPreferencePurchaseOrderRetrievalPreferenceStatus>;
|
|
84
|
+
readonly selector: pulumi.Output<outputs.invoicing.ProcurementPortalPreferenceSelector | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* The domain identifier for the supplier in the procurement portal.
|
|
87
|
+
*/
|
|
88
|
+
readonly supplierDomain: pulumi.Output<enums.invoicing.ProcurementPortalPreferenceSupplierDomain>;
|
|
89
|
+
/**
|
|
90
|
+
* The unique identifier for the supplier in the procurement portal.
|
|
91
|
+
*/
|
|
92
|
+
readonly supplierIdentifier: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The tags associated with this procurement portal preference.
|
|
95
|
+
*/
|
|
96
|
+
readonly tags: pulumi.Output<outputs.Tag[] | undefined>;
|
|
97
|
+
readonly testEnvPreference: pulumi.Output<outputs.invoicing.ProcurementPortalPreferenceTestEnvPreference | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* The version number of the procurement portal preference configuration.
|
|
100
|
+
*/
|
|
101
|
+
readonly version: pulumi.Output<number>;
|
|
102
|
+
/**
|
|
103
|
+
* Create a ProcurementPortalPreference resource with the given unique name, arguments, and options.
|
|
104
|
+
*
|
|
105
|
+
* @param name The _unique_ name of the resource.
|
|
106
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
107
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
108
|
+
*/
|
|
109
|
+
constructor(name: string, args: ProcurementPortalPreferenceArgs, opts?: pulumi.CustomResourceOptions);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The set of arguments for constructing a ProcurementPortalPreference resource.
|
|
113
|
+
*/
|
|
114
|
+
export interface ProcurementPortalPreferenceArgs {
|
|
115
|
+
/**
|
|
116
|
+
* The domain identifier for the buyer in the procurement portal.
|
|
117
|
+
*/
|
|
118
|
+
buyerDomain: pulumi.Input<enums.invoicing.ProcurementPortalPreferenceBuyerDomain>;
|
|
119
|
+
/**
|
|
120
|
+
* The unique identifier for the buyer in the procurement portal.
|
|
121
|
+
*/
|
|
122
|
+
buyerIdentifier: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* List of contact information for portal administrators and technical contacts.
|
|
125
|
+
*/
|
|
126
|
+
contacts: pulumi.Input<pulumi.Input<inputs.invoicing.ProcurementPortalPreferenceContactArgs>[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Indicates whether e-invoice delivery is enabled for this procurement portal preference.
|
|
129
|
+
*/
|
|
130
|
+
einvoiceDeliveryEnabled: pulumi.Input<boolean>;
|
|
131
|
+
einvoiceDeliveryPreference?: pulumi.Input<inputs.invoicing.ProcurementPortalPreferenceEinvoiceDeliveryPreferenceArgs | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* The endpoint URL where e-invoices are delivered to the procurement portal.
|
|
134
|
+
*/
|
|
135
|
+
procurementPortalInstanceEndpoint?: pulumi.Input<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* The name of the procurement portal.
|
|
138
|
+
*/
|
|
139
|
+
procurementPortalName: pulumi.Input<enums.invoicing.ProcurementPortalPreferenceProcurementPortalName>;
|
|
140
|
+
/**
|
|
141
|
+
* The shared secret or authentication credential used for secure communication with the procurement portal.
|
|
142
|
+
*/
|
|
143
|
+
procurementPortalSharedSecret?: pulumi.Input<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Indicates whether purchase order retrieval is enabled for this procurement portal preference.
|
|
146
|
+
*/
|
|
147
|
+
purchaseOrderRetrievalEnabled: pulumi.Input<boolean>;
|
|
148
|
+
selector?: pulumi.Input<inputs.invoicing.ProcurementPortalPreferenceSelectorArgs | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* The domain identifier for the supplier in the procurement portal.
|
|
151
|
+
*/
|
|
152
|
+
supplierDomain: pulumi.Input<enums.invoicing.ProcurementPortalPreferenceSupplierDomain>;
|
|
153
|
+
/**
|
|
154
|
+
* The unique identifier for the supplier in the procurement portal.
|
|
155
|
+
*/
|
|
156
|
+
supplierIdentifier: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The tags associated with this procurement portal preference.
|
|
159
|
+
*/
|
|
160
|
+
tags?: pulumi.Input<pulumi.Input<inputs.TagArgs>[] | undefined>;
|
|
161
|
+
testEnvPreference?: pulumi.Input<inputs.invoicing.ProcurementPortalPreferenceTestEnvPreferenceArgs | undefined>;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=procurementPortalPreference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procurementPortalPreference.d.ts","sourceRoot":"","sources":["../../invoicing/procurementPortalPreference.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,O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,CAAC;IACxF;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,gDAAgD,GAAG,SAAS,CAAC,CAAC;CACnH"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ProcurementPortalPreference = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Creates and manages a procurement portal preference configuration for e-invoice delivery and purchase order retrieval.
|
|
33
|
+
*/
|
|
34
|
+
class ProcurementPortalPreference extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing ProcurementPortalPreference resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new ProcurementPortalPreference(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'aws-native:invoicing:ProcurementPortalPreference';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of ProcurementPortalPreference. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === ProcurementPortalPreference.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a ProcurementPortalPreference resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.buyerDomain === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'buyerDomain'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.buyerIdentifier === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'buyerIdentifier'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.contacts === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'contacts'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.einvoiceDeliveryEnabled === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'einvoiceDeliveryEnabled'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.procurementPortalName === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'procurementPortalName'");
|
|
83
|
+
}
|
|
84
|
+
if (args?.purchaseOrderRetrievalEnabled === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'purchaseOrderRetrievalEnabled'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.supplierDomain === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'supplierDomain'");
|
|
89
|
+
}
|
|
90
|
+
if (args?.supplierIdentifier === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'supplierIdentifier'");
|
|
92
|
+
}
|
|
93
|
+
resourceInputs["buyerDomain"] = args?.buyerDomain;
|
|
94
|
+
resourceInputs["buyerIdentifier"] = args?.buyerIdentifier;
|
|
95
|
+
resourceInputs["contacts"] = args?.contacts;
|
|
96
|
+
resourceInputs["einvoiceDeliveryEnabled"] = args?.einvoiceDeliveryEnabled;
|
|
97
|
+
resourceInputs["einvoiceDeliveryPreference"] = args?.einvoiceDeliveryPreference;
|
|
98
|
+
resourceInputs["procurementPortalInstanceEndpoint"] = args?.procurementPortalInstanceEndpoint;
|
|
99
|
+
resourceInputs["procurementPortalName"] = args?.procurementPortalName;
|
|
100
|
+
resourceInputs["procurementPortalSharedSecret"] = args?.procurementPortalSharedSecret;
|
|
101
|
+
resourceInputs["purchaseOrderRetrievalEnabled"] = args?.purchaseOrderRetrievalEnabled;
|
|
102
|
+
resourceInputs["selector"] = args?.selector;
|
|
103
|
+
resourceInputs["supplierDomain"] = args?.supplierDomain;
|
|
104
|
+
resourceInputs["supplierIdentifier"] = args?.supplierIdentifier;
|
|
105
|
+
resourceInputs["tags"] = args?.tags;
|
|
106
|
+
resourceInputs["testEnvPreference"] = args?.testEnvPreference;
|
|
107
|
+
resourceInputs["awsAccountId"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["createDate"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["einvoiceDeliveryPreferenceStatus"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["lastUpdateDate"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["procurementPortalPreferenceArn"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["purchaseOrderRetrievalEndpoint"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["purchaseOrderRetrievalPreferenceStatus"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["version"] = undefined /*out*/;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
resourceInputs["awsAccountId"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["buyerDomain"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["buyerIdentifier"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["contacts"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["createDate"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["einvoiceDeliveryEnabled"] = undefined /*out*/;
|
|
123
|
+
resourceInputs["einvoiceDeliveryPreference"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["einvoiceDeliveryPreferenceStatus"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["lastUpdateDate"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["procurementPortalInstanceEndpoint"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["procurementPortalName"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["procurementPortalPreferenceArn"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["procurementPortalSharedSecret"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["purchaseOrderRetrievalEnabled"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["purchaseOrderRetrievalEndpoint"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["purchaseOrderRetrievalPreferenceStatus"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["selector"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["supplierDomain"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["supplierIdentifier"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["tags"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["testEnvPreference"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["version"] = undefined /*out*/;
|
|
139
|
+
}
|
|
140
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
141
|
+
const replaceOnChanges = { replaceOnChanges: ["buyerDomain", "buyerIdentifier", "procurementPortalName", "supplierDomain", "supplierIdentifier"] };
|
|
142
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
143
|
+
super(ProcurementPortalPreference.__pulumiType, name, resourceInputs, opts);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.ProcurementPortalPreference = ProcurementPortalPreference;
|
|
147
|
+
//# sourceMappingURL=procurementPortalPreference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procurementPortalPreference.js","sourceRoot":"","sources":["../../invoicing/procurementPortalPreference.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C;;GAEG;AACH,MAAa,2BAA4B,S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AAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAhML,kEAiMC"}
|
|
@@ -1,29 +1,54 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
4
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
5
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
6
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
7
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
8
|
+
* **Avoid mixing permission resource types**
|
|
9
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
10
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
11
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
12
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
13
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
14
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
15
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
4
16
|
*/
|
|
5
17
|
export declare function getResourcePolicy(args: GetResourcePolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetResourcePolicyResult>;
|
|
6
18
|
export interface GetResourcePolicyArgs {
|
|
7
19
|
/**
|
|
8
|
-
* The
|
|
20
|
+
* The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
|
|
9
21
|
*/
|
|
10
22
|
resourceArn: string;
|
|
11
23
|
}
|
|
12
24
|
export interface GetResourcePolicyResult {
|
|
13
25
|
/**
|
|
14
|
-
* The
|
|
26
|
+
* The policy document you want to add to your LAM resource. This is formatted as a JSON string.
|
|
27
|
+
* For more information, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
15
28
|
*
|
|
16
29
|
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Lambda::ResourcePolicy` for more information about the expected schema for this property.
|
|
17
30
|
*/
|
|
18
31
|
readonly policyDocument?: any;
|
|
19
32
|
}
|
|
20
33
|
/**
|
|
21
|
-
*
|
|
34
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
35
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
36
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
37
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
38
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
39
|
+
* **Avoid mixing permission resource types**
|
|
40
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
41
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
42
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
43
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
44
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
45
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
46
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
22
47
|
*/
|
|
23
48
|
export declare function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourcePolicyResult>;
|
|
24
49
|
export interface GetResourcePolicyOutputArgs {
|
|
25
50
|
/**
|
|
26
|
-
* The
|
|
51
|
+
* The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
|
|
27
52
|
*/
|
|
28
53
|
resourceArn: pulumi.Input<string>;
|
|
29
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getResourcePolicy.d.ts","sourceRoot":"","sources":["../../lambda/getResourcePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"getResourcePolicy.d.ts","sourceRoot":"","sources":["../../lambda/getResourcePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAK5H;AAED,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC;CACjC;AACD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAKpJ;AAED,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACrC"}
|
|
@@ -29,7 +29,19 @@ exports.getResourcePolicyOutput = exports.getResourcePolicy = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("../utilities"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
33
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
34
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
35
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
36
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
37
|
+
* **Avoid mixing permission resource types**
|
|
38
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
39
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
40
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
41
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
42
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
43
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
44
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
33
45
|
*/
|
|
34
46
|
function getResourcePolicy(args, opts) {
|
|
35
47
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -39,7 +51,19 @@ function getResourcePolicy(args, opts) {
|
|
|
39
51
|
}
|
|
40
52
|
exports.getResourcePolicy = getResourcePolicy;
|
|
41
53
|
/**
|
|
42
|
-
*
|
|
54
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
55
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
56
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
57
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
58
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
59
|
+
* **Avoid mixing permission resource types**
|
|
60
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
61
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
62
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
63
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
64
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
65
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
66
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
43
67
|
*/
|
|
44
68
|
function getResourcePolicyOutput(args, opts) {
|
|
45
69
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getResourcePolicy.js","sourceRoot":"","sources":["../../lambda/getResourcePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getResourcePolicy.js","sourceRoot":"","sources":["../../lambda/getResourcePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC;AAkBD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAAiC;IACxG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,qCAAqC,EAAE;QACtE,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0DAKC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
4
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
5
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
6
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
7
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
8
|
+
* **Avoid mixing permission resource types**
|
|
9
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
10
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
11
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
12
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
13
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
14
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
15
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
4
16
|
*/
|
|
5
17
|
export declare class ResourcePolicy extends pulumi.CustomResource {
|
|
6
18
|
/**
|
|
@@ -18,13 +30,14 @@ export declare class ResourcePolicy extends pulumi.CustomResource {
|
|
|
18
30
|
*/
|
|
19
31
|
static isInstance(obj: any): obj is ResourcePolicy;
|
|
20
32
|
/**
|
|
21
|
-
* The
|
|
33
|
+
* The policy document you want to add to your LAM resource. This is formatted as a JSON string.
|
|
34
|
+
* For more information, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
22
35
|
*
|
|
23
36
|
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Lambda::ResourcePolicy` for more information about the expected schema for this property.
|
|
24
37
|
*/
|
|
25
38
|
readonly policyDocument: pulumi.Output<any>;
|
|
26
39
|
/**
|
|
27
|
-
* The
|
|
40
|
+
* The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
|
|
28
41
|
*/
|
|
29
42
|
readonly resourceArn: pulumi.Output<string>;
|
|
30
43
|
/**
|
|
@@ -41,13 +54,14 @@ export declare class ResourcePolicy extends pulumi.CustomResource {
|
|
|
41
54
|
*/
|
|
42
55
|
export interface ResourcePolicyArgs {
|
|
43
56
|
/**
|
|
44
|
-
* The
|
|
57
|
+
* The policy document you want to add to your LAM resource. This is formatted as a JSON string.
|
|
58
|
+
* For more information, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
45
59
|
*
|
|
46
60
|
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Lambda::ResourcePolicy` for more information about the expected schema for this property.
|
|
47
61
|
*/
|
|
48
62
|
policyDocument: any;
|
|
49
63
|
/**
|
|
50
|
-
* The
|
|
64
|
+
* The Amazon Resource Name (ARN) of the LAM resource you want to add the policy to. For a function, you can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
|
|
51
65
|
*/
|
|
52
66
|
resourceArn: pulumi.Input<string>;
|
|
53
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourcePolicy.d.ts","sourceRoot":"","sources":["../../lambda/resourcePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"resourcePolicy.d.ts","sourceRoot":"","sources":["../../lambda/resourcePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,cAAc;IAOjH;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD;;;;;OAKG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE3D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAqB1F;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;OAKG;IACH,cAAc,EAAE,GAAG,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACrC"}
|
package/lambda/resourcePolicy.js
CHANGED
|
@@ -29,7 +29,19 @@ exports.ResourcePolicy = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("../utilities"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Use the ``AWS::Lambda::ResourcePolicy`` resource to attach a resource-based policy to a LAM resource. A resource-based policy applies to a single LAM resource, for example, a function, function version, or function alias. To learn more about using resource-based policies with LAM, see [Working with resource-based policies in](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) in the *Developer Guide*.
|
|
33
|
+
* You can use resource-based policies to grant permissions to other AWS services, AWS accounts and organizations, and IAM users and roles to access your LAM resource. You can also deny access to specific entities, and use the full range of IAM global condition keys to further restrict who has access to your LAM resource. For example, you can limit access to calls originating from a specified IP address or VPC.
|
|
34
|
+
* A resource-based policy is a JSON document containing a number of statements. Each statement defines the entities you want to grant permission to, the API actions you want to allow or deny, and the LAM resource you want the statement to apply to. A statement can also optionally include an array of logical conditions using the IAM global condition keys.
|
|
35
|
+
* To use the ``AWS::Lambda::ResourcePolicy`` resource, make sure that you have the [resource-based policy permissions for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#access-control-resource-based-permissions).
|
|
36
|
+
* To learn more about creating resource-based policies, see [Policies and permissions in](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) in the *User Guide*. For more information about example policies for providing permissions to AWS services, other AWS accounts, and IAM users and roles, see [Example resource-based policies for functions](https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-examples.html) in the *Developer Guide*.
|
|
37
|
+
* **Avoid mixing permission resource types**
|
|
38
|
+
* To grant permissions to access your function, we recommend using the ``AWS::Lambda::ResourcePolicy`` resource to set access permissions. With this resource, you have more flexibility and fine-grained control than ``AWS::Lambda::Permission``. This resource grants an AWS service or another account permission to call a particular API action on a function.
|
|
39
|
+
* You can also use the ``AWS::Lambda::Permission`` resource, however using both ``AWS::Lambda::Permission`` and ``AWS::Lambda::ResourcePolicy`` to set permissions on a function can result in errors. Permissions defined in ``AWS::Lambda::Permission`` can be unintentionally overwritten, whether in a single CFN stack or across multiple stacks. Don't use both resource types to set permissions on a function.
|
|
40
|
+
* To migrate existing permissions for a function from ``AWS::Lambda::Permission`` to ``AWS::Lambda::ResourcePolicy``, do the following:
|
|
41
|
+
* 1. Set a ``Retain``[deletion policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) on the ``AWS::Lambda::Permission`` resources you want to migrate. This is necessary so that Lambda does not delete statements with the same statement ID when you delete these resources.
|
|
42
|
+
* 2. Use the [GetResourcePolicy](https://docs.aws.amazon.com/lambda/latest/api/API_GetResourcePolicy.html)LAM API to retrieve the resource-based policy currently attached to the function.
|
|
43
|
+
* 3. Use this policy to create a new ``AWS::Lambda::ResourcePolicy`` resource.
|
|
44
|
+
* 4. Delete all the existing ``AWS::Lambda::Permission`` resources for the function.
|
|
33
45
|
*/
|
|
34
46
|
class ResourcePolicy extends pulumi.CustomResource {
|
|
35
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourcePolicy.js","sourceRoot":"","sources":["../../lambda/resourcePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"resourcePolicy.js","sourceRoot":"","sources":["../../lambda/resourcePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,cAAc,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kCAAkC,CAAC;IAEzE;;;OAGG;IACI,MAAM,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