@pulumi/aws 5.2.0-alpha.1650047579 → 5.2.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/apigateway/stage.d.ts +18 -6
- package/apigateway/stage.js +2 -0
- package/apigateway/stage.js.map +1 -1
- package/athena/database.d.ts +42 -0
- package/athena/database.js +26 -0
- package/athena/database.js.map +1 -1
- package/autoscaling/attachment.d.ts +1 -1
- package/autoscaling/attachment.js +1 -1
- package/autoscaling/group.d.ts +19 -10
- package/autoscaling/group.js +4 -1
- package/autoscaling/group.js.map +1 -1
- package/backup/plan.d.ts +3 -0
- package/backup/plan.js +3 -0
- package/backup/plan.js.map +1 -1
- package/cfg/rule.d.ts +39 -12
- package/cfg/rule.js +27 -0
- package/cfg/rule.js.map +1 -1
- package/cloudformation/stackSet.d.ts +12 -0
- package/cloudformation/stackSet.js +2 -0
- package/cloudformation/stackSet.js.map +1 -1
- package/cloudformation/stackSetInstance.d.ts +19 -1
- package/cloudformation/stackSetInstance.js +9 -1
- package/cloudformation/stackSetInstance.js.map +1 -1
- package/cloudtrail/trail.d.ts +31 -30
- package/cloudtrail/trail.js +31 -30
- package/cloudtrail/trail.js.map +1 -1
- package/cloudwatch/getEventBus.d.ts +51 -0
- package/cloudwatch/getEventBus.js +38 -0
- package/cloudwatch/getEventBus.js.map +1 -0
- package/cloudwatch/index.d.ts +1 -0
- package/cloudwatch/index.js +1 -0
- package/cloudwatch/index.js.map +1 -1
- package/cognito/index.d.ts +1 -0
- package/cognito/index.js +5 -0
- package/cognito/index.js.map +1 -1
- package/cognito/userInGroup.d.ts +100 -0
- package/cognito/userInGroup.js +90 -0
- package/cognito/userInGroup.js.map +1 -0
- package/cognito/userPoolClient.d.ts +22 -0
- package/cognito/userPoolClient.js +22 -0
- package/cognito/userPoolClient.js.map +1 -1
- package/datasync/fsxOpenZfsFileSystem.d.ts +175 -0
- package/datasync/fsxOpenZfsFileSystem.js +104 -0
- package/datasync/fsxOpenZfsFileSystem.js.map +1 -0
- package/datasync/index.d.ts +1 -0
- package/datasync/index.js +5 -0
- package/datasync/index.js.map +1 -1
- package/dynamodb/contributorInsights.d.ts +82 -0
- package/dynamodb/contributorInsights.js +76 -0
- package/dynamodb/contributorInsights.js.map +1 -0
- package/dynamodb/index.d.ts +1 -0
- package/dynamodb/index.js +5 -0
- package/dynamodb/index.js.map +1 -1
- package/dynamodb/tableItem.d.ts +6 -9
- package/dynamodb/tableItem.js.map +1 -1
- package/ec2/amiLaunchPermission.d.ts +70 -10
- package/ec2/amiLaunchPermission.js +32 -5
- package/ec2/amiLaunchPermission.js.map +1 -1
- package/ec2/defaultNetworkAcl.d.ts +1 -1
- package/ec2/defaultNetworkAcl.js +1 -1
- package/ec2/getEips.d.ts +1 -1
- package/ec2/getNatGateways.d.ts +65 -0
- package/ec2/getNatGateways.js +28 -0
- package/ec2/getNatGateways.js.map +1 -0
- package/ec2/getRoute.d.ts +9 -0
- package/ec2/getRoute.js +1 -0
- package/ec2/getRoute.js.map +1 -1
- package/ec2/index.d.ts +1 -0
- package/ec2/index.js +1 -0
- package/ec2/index.js.map +1 -1
- package/ec2/instance.d.ts +18 -6
- package/ec2/instance.js +2 -0
- package/ec2/instance.js.map +1 -1
- package/ec2/keyPair.d.ts +3 -12
- package/ec2/keyPair.js.map +1 -1
- package/ec2/route.d.ts +12 -0
- package/ec2/route.js +2 -0
- package/ec2/route.js.map +1 -1
- package/ec2/spotInstanceRequest.d.ts +18 -6
- package/ec2/spotInstanceRequest.js +2 -0
- package/ec2/spotInstanceRequest.js.map +1 -1
- package/ec2/vpc.d.ts +3 -3
- package/ec2/vpcEndpointService.d.ts +4 -4
- package/ec2/vpcIpam.d.ts +12 -0
- package/ec2/vpcIpam.js +2 -0
- package/ec2/vpcIpam.js.map +1 -1
- package/ec2/vpnConnection.d.ts +16 -0
- package/ec2/vpnConnection.js +4 -0
- package/ec2/vpnConnection.js.map +1 -1
- package/eks/addon.d.ts +18 -6
- package/eks/addon.js +2 -0
- package/eks/addon.js.map +1 -1
- package/eks/getAddonVersion.d.ts +82 -0
- package/eks/getAddonVersion.js +51 -0
- package/eks/getAddonVersion.js.map +1 -0
- package/eks/index.d.ts +1 -0
- package/eks/index.js +1 -0
- package/eks/index.js.map +1 -1
- package/elasticache/cluster.d.ts +64 -3
- package/elasticache/cluster.js +32 -0
- package/elasticache/cluster.js.map +1 -1
- package/elasticache/getCluster.d.ts +4 -0
- package/elasticache/getCluster.js.map +1 -1
- package/elasticache/getReplicationGroup.d.ts +5 -0
- package/elasticache/getReplicationGroup.js.map +1 -1
- package/elasticache/index.d.ts +1 -0
- package/elasticache/index.js +5 -0
- package/elasticache/index.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +54 -6
- package/elasticache/replicationGroup.js +32 -0
- package/elasticache/replicationGroup.js.map +1 -1
- package/elasticache/userGroupAssociation.d.ts +100 -0
- package/elasticache/userGroupAssociation.js +97 -0
- package/elasticache/userGroupAssociation.js.map +1 -0
- package/emr/cluster.d.ts +6 -6
- package/gamelift/alias.d.ts +2 -2
- package/gamelift/alias.js +2 -2
- package/gamelift/build.d.ts +6 -6
- package/gamelift/build.js +2 -2
- package/gamelift/fleet.d.ts +10 -14
- package/gamelift/fleet.js +2 -2
- package/gamelift/fleet.js.map +1 -1
- package/gamelift/gameServerGroup.d.ts +5 -5
- package/gamelift/gameServerGroup.js +3 -3
- package/gamelift/gameSessionQueue.d.ts +2 -2
- package/gamelift/gameSessionQueue.js +2 -2
- package/gamelift/script.d.ts +4 -4
- package/gamelift/script.js +2 -2
- package/getCanonicalUserId.d.ts +2 -0
- package/getCanonicalUserId.js +2 -0
- package/getCanonicalUserId.js.map +1 -1
- package/glue/schema.d.ts +3 -3
- package/grafana/index.d.ts +1 -0
- package/grafana/index.js +5 -0
- package/grafana/index.js.map +1 -1
- package/grafana/roleAssociation.d.ts +121 -0
- package/grafana/roleAssociation.js +98 -0
- package/grafana/roleAssociation.js.map +1 -0
- package/guardduty/ipset.d.ts +0 -1
- package/guardduty/ipset.js +0 -1
- package/guardduty/ipset.js.map +1 -1
- package/iam/getSamlProvider.d.ts +81 -0
- package/iam/getSamlProvider.js +39 -0
- package/iam/getSamlProvider.js.map +1 -0
- package/iam/group.d.ts +0 -2
- package/iam/group.js +0 -2
- package/iam/group.js.map +1 -1
- package/iam/index.d.ts +1 -0
- package/iam/index.js +1 -0
- package/iam/index.js.map +1 -1
- package/imagebuilder/getImagePipelines.d.ts +57 -0
- package/imagebuilder/getImagePipelines.js +40 -0
- package/imagebuilder/getImagePipelines.js.map +1 -0
- package/imagebuilder/index.d.ts +1 -0
- package/imagebuilder/index.js +1 -0
- package/imagebuilder/index.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/iot/authorizer.d.ts +12 -0
- package/iot/authorizer.js +2 -0
- package/iot/authorizer.js.map +1 -1
- package/iot/index.d.ts +3 -0
- package/iot/index.js +15 -0
- package/iot/index.js.map +1 -1
- package/iot/indexingConfiguration.d.ts +98 -0
- package/iot/indexingConfiguration.js +88 -0
- package/iot/indexingConfiguration.js.map +1 -0
- package/iot/loggingOptions.d.ts +87 -0
- package/iot/loggingOptions.js +74 -0
- package/iot/loggingOptions.js.map +1 -0
- package/iot/provisioningTemplate.d.ts +232 -0
- package/iot/provisioningTemplate.js +144 -0
- package/iot/provisioningTemplate.js.map +1 -0
- package/keyspaces/index.d.ts +1 -0
- package/keyspaces/index.js +37 -0
- package/keyspaces/index.js.map +1 -0
- package/keyspaces/keyspace.d.ts +114 -0
- package/keyspaces/keyspace.js +77 -0
- package/keyspaces/keyspace.js.map +1 -0
- package/lambda/function.d.ts +44 -0
- package/lambda/function.js +34 -0
- package/lambda/function.js.map +1 -1
- package/lambda/functionUrl.d.ts +153 -0
- package/lambda/functionUrl.js +111 -0
- package/lambda/functionUrl.js.map +1 -0
- package/lambda/getFunction.d.ts +4 -0
- package/lambda/getFunction.js.map +1 -1
- package/lambda/getFunctionUrl.d.ts +85 -0
- package/lambda/getFunctionUrl.js +39 -0
- package/lambda/getFunctionUrl.js.map +1 -0
- package/lambda/index.d.ts +2 -0
- package/lambda/index.js +6 -0
- package/lambda/index.js.map +1 -1
- package/lambda/permission.d.ts +18 -6
- package/lambda/permission.js +2 -0
- package/lambda/permission.js.map +1 -1
- package/memorydb/getAcl.d.ts +75 -0
- package/memorydb/getAcl.js +37 -0
- package/memorydb/getAcl.js.map +1 -0
- package/memorydb/getCluster.d.ts +152 -0
- package/memorydb/getCluster.js +37 -0
- package/memorydb/getCluster.js.map +1 -0
- package/memorydb/getParameterGroup.d.ts +83 -0
- package/memorydb/getParameterGroup.js +37 -0
- package/memorydb/getParameterGroup.js.map +1 -0
- package/memorydb/getSnapshot.d.ts +87 -0
- package/memorydb/getSnapshot.js +37 -0
- package/memorydb/getSnapshot.js.map +1 -0
- package/memorydb/getSubnetGroup.d.ts +79 -0
- package/memorydb/getSubnetGroup.js +37 -0
- package/memorydb/getSubnetGroup.js.map +1 -0
- package/memorydb/getUser.d.ts +80 -0
- package/memorydb/getUser.js +37 -0
- package/memorydb/getUser.js.map +1 -0
- package/memorydb/index.d.ts +6 -0
- package/memorydb/index.js +6 -0
- package/memorydb/index.js.map +1 -1
- package/msk/getCluster.d.ts +4 -0
- package/msk/getCluster.js.map +1 -1
- package/mskconnect/connector.d.ts +270 -0
- package/mskconnect/connector.js +166 -0
- package/mskconnect/connector.js.map +1 -0
- package/mskconnect/getConnector.d.ts +57 -0
- package/mskconnect/getConnector.js +36 -0
- package/mskconnect/getConnector.js.map +1 -0
- package/mskconnect/index.d.ts +2 -0
- package/mskconnect/index.js +6 -0
- package/mskconnect/index.js.map +1 -1
- package/mwaa/environment.d.ts +12 -0
- package/mwaa/environment.js +2 -0
- package/mwaa/environment.js.map +1 -1
- package/neptune/clusterEndpoint.d.ts +9 -0
- package/neptune/clusterEndpoint.js.map +1 -1
- package/opensearch/domain.d.ts +445 -0
- package/opensearch/domain.js +273 -0
- package/opensearch/domain.js.map +1 -0
- package/opensearch/domainPolicy.d.ts +93 -0
- package/opensearch/domainPolicy.js +90 -0
- package/opensearch/domainPolicy.js.map +1 -0
- package/opensearch/domainSamlOptions.d.ts +105 -0
- package/opensearch/domainSamlOptions.js +98 -0
- package/opensearch/domainSamlOptions.js.map +1 -0
- package/opensearch/getDomain.d.ts +144 -0
- package/opensearch/getDomain.js +37 -0
- package/opensearch/getDomain.js.map +1 -0
- package/opensearch/index.d.ts +4 -0
- package/opensearch/index.js +48 -0
- package/opensearch/index.js.map +1 -0
- package/organizations/account.d.ts +17 -5
- package/organizations/account.js +4 -2
- package/organizations/account.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/qldb/getLedger.d.ts +10 -0
- package/qldb/getLedger.js +1 -0
- package/qldb/getLedger.js.map +1 -1
- package/qldb/index.d.ts +1 -0
- package/qldb/index.js +5 -0
- package/qldb/index.js.map +1 -1
- package/qldb/ledger.d.ts +12 -0
- package/qldb/ledger.js +2 -0
- package/qldb/ledger.js.map +1 -1
- package/qldb/stream.d.ts +159 -0
- package/qldb/stream.js +104 -0
- package/qldb/stream.js.map +1 -0
- package/rds/cluster.d.ts +3 -3
- package/rds/clusterActivityStream.d.ts +138 -0
- package/rds/clusterActivityStream.js +112 -0
- package/rds/clusterActivityStream.js.map +1 -0
- package/rds/index.d.ts +2 -0
- package/rds/index.js +10 -0
- package/rds/index.js.map +1 -1
- package/rds/instance.d.ts +3 -3
- package/rds/instanceAutomatedBackupsReplication.d.ts +153 -0
- package/rds/instanceAutomatedBackupsReplication.js +127 -0
- package/rds/instanceAutomatedBackupsReplication.js.map +1 -0
- package/route53/getTrafficPolicyDocument.d.ts +125 -0
- package/route53/getTrafficPolicyDocument.js +72 -0
- package/route53/getTrafficPolicyDocument.js.map +1 -0
- package/route53/index.d.ts +3 -0
- package/route53/index.js +11 -0
- package/route53/index.js.map +1 -1
- package/route53/trafficPolicy.d.ts +122 -0
- package/route53/trafficPolicy.js +94 -0
- package/route53/trafficPolicy.js.map +1 -0
- package/route53/trafficPolicyInstance.d.ts +121 -0
- package/route53/trafficPolicyInstance.js +94 -0
- package/route53/trafficPolicyInstance.js.map +1 -0
- package/s3/bucketObject.d.ts +2 -12
- package/s3/bucketObject.js +2 -0
- package/s3/bucketObject.js.map +1 -1
- package/s3/bucketObjectLockConfigurationV2.d.ts +35 -2
- package/s3/bucketObjectLockConfigurationV2.js +35 -2
- package/s3/bucketObjectLockConfigurationV2.js.map +1 -1
- package/s3/bucketV2.d.ts +518 -32
- package/s3/bucketV2.js +378 -12
- package/s3/bucketV2.js.map +1 -1
- package/s3/getCanonicalUserId.d.ts +2 -0
- package/s3/getCanonicalUserId.js +2 -0
- package/s3/getCanonicalUserId.js.map +1 -1
- package/ses/identityNotificationTopic.d.ts +10 -10
- package/ses/identityNotificationTopic.js +1 -1
- package/ssm/getDocument.d.ts +3 -3
- package/ssm/getMaintenanceWindows.d.ts +53 -0
- package/ssm/getMaintenanceWindows.js +40 -0
- package/ssm/getMaintenanceWindows.js.map +1 -0
- package/ssm/index.d.ts +1 -0
- package/ssm/index.js +1 -0
- package/ssm/index.js.map +1 -1
- package/ssm/maintenanceWindowTask.d.ts +30 -2
- package/ssm/maintenanceWindowTask.js +6 -6
- package/ssm/maintenanceWindowTask.js.map +1 -1
- package/storagegateway/gateway.d.ts +12 -0
- package/storagegateway/gateway.js +2 -0
- package/storagegateway/gateway.js.map +1 -1
- package/storagegateway/nfsFileShare.d.ts +24 -0
- package/storagegateway/nfsFileShare.js +4 -0
- package/storagegateway/nfsFileShare.js.map +1 -1
- package/types/input.d.ts +1658 -413
- package/types/output.d.ts +1672 -285
- package/xray/group.d.ts +17 -0
- package/xray/group.js +6 -0
- package/xray/group.js.map +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages an IoT fleet provisioning template. For more info, see the AWS documentation on [fleet provisioning](https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const iotAssumeRolePolicy = aws.iam.getPolicyDocument({
|
|
13
|
+
* statements: [{
|
|
14
|
+
* actions: ["sts:AssumeRole"],
|
|
15
|
+
* principals: [{
|
|
16
|
+
* type: "Service",
|
|
17
|
+
* identifiers: ["iot.amazonaws.com"],
|
|
18
|
+
* }],
|
|
19
|
+
* }],
|
|
20
|
+
* });
|
|
21
|
+
* const iotFleetProvisioning = new aws.iam.Role("iotFleetProvisioning", {
|
|
22
|
+
* path: "/service-role/",
|
|
23
|
+
* assumeRolePolicy: iotAssumeRolePolicy.then(iotAssumeRolePolicy => iotAssumeRolePolicy.json),
|
|
24
|
+
* });
|
|
25
|
+
* const iotFleetProvisioningRegistration = new aws.iam.RolePolicyAttachment("iotFleetProvisioningRegistration", {
|
|
26
|
+
* role: iotFleetProvisioning.name,
|
|
27
|
+
* policyArn: "arn:aws:iam::aws:policy/service-role/AWSIoTThingsRegistration",
|
|
28
|
+
* });
|
|
29
|
+
* const devicePolicyPolicyDocument = aws.iam.getPolicyDocument({
|
|
30
|
+
* statements: [{
|
|
31
|
+
* actions: ["iot:Subscribe"],
|
|
32
|
+
* resources: ["*"],
|
|
33
|
+
* }],
|
|
34
|
+
* });
|
|
35
|
+
* const devicePolicyPolicy = new aws.iot.Policy("devicePolicyPolicy", {policy: devicePolicyPolicyDocument.then(devicePolicyPolicyDocument => devicePolicyPolicyDocument.json)});
|
|
36
|
+
* const fleet = new aws.iot.ProvisioningTemplate("fleet", {
|
|
37
|
+
* description: "My provisioning template",
|
|
38
|
+
* provisioningRoleArn: iotFleetProvisioning.arn,
|
|
39
|
+
* templateBody: devicePolicyPolicy.name.apply(name => JSON.stringify({
|
|
40
|
+
* Parameters: {
|
|
41
|
+
* SerialNumber: {
|
|
42
|
+
* Type: "String",
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* Resources: {
|
|
46
|
+
* certificate: {
|
|
47
|
+
* Properties: {
|
|
48
|
+
* CertificateId: {
|
|
49
|
+
* Ref: "AWS::IoT::Certificate::Id",
|
|
50
|
+
* },
|
|
51
|
+
* Status: "Active",
|
|
52
|
+
* },
|
|
53
|
+
* Type: "AWS::IoT::Certificate",
|
|
54
|
+
* },
|
|
55
|
+
* policy: {
|
|
56
|
+
* Properties: {
|
|
57
|
+
* PolicyName: name,
|
|
58
|
+
* },
|
|
59
|
+
* Type: "AWS::IoT::Policy",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* })),
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* IoT fleet provisioning templates can be imported using the `name`, e.g.
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import aws:iot/provisioningTemplate:ProvisioningTemplate fleet FleetProvisioningTemplate
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare class ProvisioningTemplate extends pulumi.CustomResource {
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing ProvisioningTemplate resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProvisioningTemplateState, opts?: pulumi.CustomResourceOptions): ProvisioningTemplate;
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of ProvisioningTemplate. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj: any): obj is ProvisioningTemplate;
|
|
90
|
+
/**
|
|
91
|
+
* The ARN that identifies the provisioning template.
|
|
92
|
+
*/
|
|
93
|
+
readonly arn: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The default version of the fleet provisioning template.
|
|
96
|
+
*/
|
|
97
|
+
readonly defaultVersionId: pulumi.Output<number>;
|
|
98
|
+
/**
|
|
99
|
+
* The description of the fleet provisioning template.
|
|
100
|
+
*/
|
|
101
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* True to enable the fleet provisioning template, otherwise false.
|
|
104
|
+
*/
|
|
105
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* The name of the fleet provisioning template.
|
|
108
|
+
*/
|
|
109
|
+
readonly name: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Creates a pre-provisioning hook template. Details below.
|
|
112
|
+
*/
|
|
113
|
+
readonly preProvisioningHook: pulumi.Output<outputs.iot.ProvisioningTemplatePreProvisioningHook | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
|
|
116
|
+
*/
|
|
117
|
+
readonly provisioningRoleArn: pulumi.Output<string>;
|
|
118
|
+
/**
|
|
119
|
+
* A map of tags to assign to the resource. 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.
|
|
120
|
+
*/
|
|
121
|
+
readonly tags: pulumi.Output<{
|
|
122
|
+
[key: string]: string;
|
|
123
|
+
} | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* A 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).
|
|
126
|
+
*/
|
|
127
|
+
readonly tagsAll: pulumi.Output<{
|
|
128
|
+
[key: string]: string;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* The JSON formatted contents of the fleet provisioning template.
|
|
132
|
+
*/
|
|
133
|
+
readonly templateBody: pulumi.Output<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Create a ProvisioningTemplate resource with the given unique name, arguments, and options.
|
|
136
|
+
*
|
|
137
|
+
* @param name The _unique_ name of the resource.
|
|
138
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
139
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
140
|
+
*/
|
|
141
|
+
constructor(name: string, args: ProvisioningTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Input properties used for looking up and filtering ProvisioningTemplate resources.
|
|
145
|
+
*/
|
|
146
|
+
export interface ProvisioningTemplateState {
|
|
147
|
+
/**
|
|
148
|
+
* The ARN that identifies the provisioning template.
|
|
149
|
+
*/
|
|
150
|
+
arn?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The default version of the fleet provisioning template.
|
|
153
|
+
*/
|
|
154
|
+
defaultVersionId?: pulumi.Input<number>;
|
|
155
|
+
/**
|
|
156
|
+
* The description of the fleet provisioning template.
|
|
157
|
+
*/
|
|
158
|
+
description?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* True to enable the fleet provisioning template, otherwise false.
|
|
161
|
+
*/
|
|
162
|
+
enabled?: pulumi.Input<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* The name of the fleet provisioning template.
|
|
165
|
+
*/
|
|
166
|
+
name?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Creates a pre-provisioning hook template. Details below.
|
|
169
|
+
*/
|
|
170
|
+
preProvisioningHook?: pulumi.Input<inputs.iot.ProvisioningTemplatePreProvisioningHook>;
|
|
171
|
+
/**
|
|
172
|
+
* The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
|
|
173
|
+
*/
|
|
174
|
+
provisioningRoleArn?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* A map of tags to assign to the resource. 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.
|
|
177
|
+
*/
|
|
178
|
+
tags?: pulumi.Input<{
|
|
179
|
+
[key: string]: pulumi.Input<string>;
|
|
180
|
+
}>;
|
|
181
|
+
/**
|
|
182
|
+
* A 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).
|
|
183
|
+
*/
|
|
184
|
+
tagsAll?: pulumi.Input<{
|
|
185
|
+
[key: string]: pulumi.Input<string>;
|
|
186
|
+
}>;
|
|
187
|
+
/**
|
|
188
|
+
* The JSON formatted contents of the fleet provisioning template.
|
|
189
|
+
*/
|
|
190
|
+
templateBody?: pulumi.Input<string>;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The set of arguments for constructing a ProvisioningTemplate resource.
|
|
194
|
+
*/
|
|
195
|
+
export interface ProvisioningTemplateArgs {
|
|
196
|
+
/**
|
|
197
|
+
* The description of the fleet provisioning template.
|
|
198
|
+
*/
|
|
199
|
+
description?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* True to enable the fleet provisioning template, otherwise false.
|
|
202
|
+
*/
|
|
203
|
+
enabled?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* The name of the fleet provisioning template.
|
|
206
|
+
*/
|
|
207
|
+
name?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* Creates a pre-provisioning hook template. Details below.
|
|
210
|
+
*/
|
|
211
|
+
preProvisioningHook?: pulumi.Input<inputs.iot.ProvisioningTemplatePreProvisioningHook>;
|
|
212
|
+
/**
|
|
213
|
+
* The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
|
|
214
|
+
*/
|
|
215
|
+
provisioningRoleArn: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* A map of tags to assign to the resource. 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.
|
|
218
|
+
*/
|
|
219
|
+
tags?: pulumi.Input<{
|
|
220
|
+
[key: string]: pulumi.Input<string>;
|
|
221
|
+
}>;
|
|
222
|
+
/**
|
|
223
|
+
* A 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).
|
|
224
|
+
*/
|
|
225
|
+
tagsAll?: pulumi.Input<{
|
|
226
|
+
[key: string]: pulumi.Input<string>;
|
|
227
|
+
}>;
|
|
228
|
+
/**
|
|
229
|
+
* The JSON formatted contents of the fleet provisioning template.
|
|
230
|
+
*/
|
|
231
|
+
templateBody: pulumi.Input<string>;
|
|
232
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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.ProvisioningTemplate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an IoT fleet provisioning template. For more info, see the AWS documentation on [fleet provisioning](https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html).
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const iotAssumeRolePolicy = aws.iam.getPolicyDocument({
|
|
18
|
+
* statements: [{
|
|
19
|
+
* actions: ["sts:AssumeRole"],
|
|
20
|
+
* principals: [{
|
|
21
|
+
* type: "Service",
|
|
22
|
+
* identifiers: ["iot.amazonaws.com"],
|
|
23
|
+
* }],
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const iotFleetProvisioning = new aws.iam.Role("iotFleetProvisioning", {
|
|
27
|
+
* path: "/service-role/",
|
|
28
|
+
* assumeRolePolicy: iotAssumeRolePolicy.then(iotAssumeRolePolicy => iotAssumeRolePolicy.json),
|
|
29
|
+
* });
|
|
30
|
+
* const iotFleetProvisioningRegistration = new aws.iam.RolePolicyAttachment("iotFleetProvisioningRegistration", {
|
|
31
|
+
* role: iotFleetProvisioning.name,
|
|
32
|
+
* policyArn: "arn:aws:iam::aws:policy/service-role/AWSIoTThingsRegistration",
|
|
33
|
+
* });
|
|
34
|
+
* const devicePolicyPolicyDocument = aws.iam.getPolicyDocument({
|
|
35
|
+
* statements: [{
|
|
36
|
+
* actions: ["iot:Subscribe"],
|
|
37
|
+
* resources: ["*"],
|
|
38
|
+
* }],
|
|
39
|
+
* });
|
|
40
|
+
* const devicePolicyPolicy = new aws.iot.Policy("devicePolicyPolicy", {policy: devicePolicyPolicyDocument.then(devicePolicyPolicyDocument => devicePolicyPolicyDocument.json)});
|
|
41
|
+
* const fleet = new aws.iot.ProvisioningTemplate("fleet", {
|
|
42
|
+
* description: "My provisioning template",
|
|
43
|
+
* provisioningRoleArn: iotFleetProvisioning.arn,
|
|
44
|
+
* templateBody: devicePolicyPolicy.name.apply(name => JSON.stringify({
|
|
45
|
+
* Parameters: {
|
|
46
|
+
* SerialNumber: {
|
|
47
|
+
* Type: "String",
|
|
48
|
+
* },
|
|
49
|
+
* },
|
|
50
|
+
* Resources: {
|
|
51
|
+
* certificate: {
|
|
52
|
+
* Properties: {
|
|
53
|
+
* CertificateId: {
|
|
54
|
+
* Ref: "AWS::IoT::Certificate::Id",
|
|
55
|
+
* },
|
|
56
|
+
* Status: "Active",
|
|
57
|
+
* },
|
|
58
|
+
* Type: "AWS::IoT::Certificate",
|
|
59
|
+
* },
|
|
60
|
+
* policy: {
|
|
61
|
+
* Properties: {
|
|
62
|
+
* PolicyName: name,
|
|
63
|
+
* },
|
|
64
|
+
* Type: "AWS::IoT::Policy",
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* })),
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* ## Import
|
|
72
|
+
*
|
|
73
|
+
* IoT fleet provisioning templates can be imported using the `name`, e.g.
|
|
74
|
+
*
|
|
75
|
+
* ```sh
|
|
76
|
+
* $ pulumi import aws:iot/provisioningTemplate:ProvisioningTemplate fleet FleetProvisioningTemplate
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
class ProvisioningTemplate extends pulumi.CustomResource {
|
|
80
|
+
constructor(name, argsOrState, opts) {
|
|
81
|
+
let resourceInputs = {};
|
|
82
|
+
opts = opts || {};
|
|
83
|
+
if (opts.id) {
|
|
84
|
+
const state = argsOrState;
|
|
85
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
86
|
+
resourceInputs["defaultVersionId"] = state ? state.defaultVersionId : undefined;
|
|
87
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
88
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
89
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
90
|
+
resourceInputs["preProvisioningHook"] = state ? state.preProvisioningHook : undefined;
|
|
91
|
+
resourceInputs["provisioningRoleArn"] = state ? state.provisioningRoleArn : undefined;
|
|
92
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
93
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
94
|
+
resourceInputs["templateBody"] = state ? state.templateBody : undefined;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
const args = argsOrState;
|
|
98
|
+
if ((!args || args.provisioningRoleArn === undefined) && !opts.urn) {
|
|
99
|
+
throw new Error("Missing required property 'provisioningRoleArn'");
|
|
100
|
+
}
|
|
101
|
+
if ((!args || args.templateBody === undefined) && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'templateBody'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
105
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
106
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
107
|
+
resourceInputs["preProvisioningHook"] = args ? args.preProvisioningHook : undefined;
|
|
108
|
+
resourceInputs["provisioningRoleArn"] = args ? args.provisioningRoleArn : undefined;
|
|
109
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
110
|
+
resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
111
|
+
resourceInputs["templateBody"] = args ? args.templateBody : undefined;
|
|
112
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["defaultVersionId"] = undefined /*out*/;
|
|
114
|
+
}
|
|
115
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
116
|
+
super(ProvisioningTemplate.__pulumiType, name, resourceInputs, opts);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Get an existing ProvisioningTemplate 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, id, state, opts) {
|
|
128
|
+
return new ProvisioningTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns true if the given object is an instance of ProvisioningTemplate. This is designed to work even
|
|
132
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
133
|
+
*/
|
|
134
|
+
static isInstance(obj) {
|
|
135
|
+
if (obj === undefined || obj === null) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
return obj['__pulumiType'] === ProvisioningTemplate.__pulumiType;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.ProvisioningTemplate = ProvisioningTemplate;
|
|
142
|
+
/** @internal */
|
|
143
|
+
ProvisioningTemplate.__pulumiType = 'aws:iot/provisioningTemplate:ProvisioningTemplate';
|
|
144
|
+
//# sourceMappingURL=provisioningTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provisioningTemplate.js","sourceRoot":"","sources":["../../iot/provisioningTemplate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IA6E3D,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,a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ACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;;AA1BL,oDAkHC;AApGG,gBAAgB;AACO,iCAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./keyspace";
|
|
@@ -0,0 +1,37 @@
|
|
|
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("./keyspace"), exports);
|
|
23
|
+
// Import resources to register:
|
|
24
|
+
const keyspace_1 = require("./keyspace");
|
|
25
|
+
const _module = {
|
|
26
|
+
version: utilities.getVersion(),
|
|
27
|
+
construct: (name, type, urn) => {
|
|
28
|
+
switch (type) {
|
|
29
|
+
case "aws:keyspaces/keyspace:Keyspace":
|
|
30
|
+
return new keyspace_1.Keyspace(name, undefined, { urn });
|
|
31
|
+
default:
|
|
32
|
+
throw new Error(`unknown resource type ${type}`);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
pulumi.runtime.registerResourceModule("aws", "keyspaces/keyspace", _module);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../keyspaces/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,6CAA2B;AAE3B,gCAAgC;AAChC,yCAAsC;AAEtC,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,iCAAiC;gBAClC,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Keyspaces Keyspace.
|
|
4
|
+
*
|
|
5
|
+
* More information about keyspaces can be found in the [Keyspaces User Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/what-is-keyspaces.html).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const example = new aws.keyspaces.Keyspace("example", {});
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* Use the `name` to import a subnet group. For example
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import aws:keyspaces/keyspace:Keyspace example my_keyspace
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class Keyspace extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing Keyspace resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KeyspaceState, opts?: pulumi.CustomResourceOptions): Keyspace;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of Keyspace. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is Keyspace;
|
|
40
|
+
/**
|
|
41
|
+
* The ARN of the subnet group.
|
|
42
|
+
*/
|
|
43
|
+
readonly arn: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the keyspace to be created.
|
|
46
|
+
*/
|
|
47
|
+
readonly name: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* A map of tags to assign to the resource. 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.
|
|
50
|
+
*/
|
|
51
|
+
readonly tags: pulumi.Output<{
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
} | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* A 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).
|
|
56
|
+
*/
|
|
57
|
+
readonly tagsAll: pulumi.Output<{
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Create a Keyspace resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args?: KeyspaceArgs, opts?: pulumi.CustomResourceOptions);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Input properties used for looking up and filtering Keyspace resources.
|
|
71
|
+
*/
|
|
72
|
+
export interface KeyspaceState {
|
|
73
|
+
/**
|
|
74
|
+
* The ARN of the subnet group.
|
|
75
|
+
*/
|
|
76
|
+
arn?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the keyspace to be created.
|
|
79
|
+
*/
|
|
80
|
+
name?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* A map of tags to assign to the resource. 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.
|
|
83
|
+
*/
|
|
84
|
+
tags?: pulumi.Input<{
|
|
85
|
+
[key: string]: pulumi.Input<string>;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* A 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).
|
|
89
|
+
*/
|
|
90
|
+
tagsAll?: pulumi.Input<{
|
|
91
|
+
[key: string]: pulumi.Input<string>;
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The set of arguments for constructing a Keyspace resource.
|
|
96
|
+
*/
|
|
97
|
+
export interface KeyspaceArgs {
|
|
98
|
+
/**
|
|
99
|
+
* The name of the keyspace to be created.
|
|
100
|
+
*/
|
|
101
|
+
name?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* A map of tags to assign to the resource. 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.
|
|
104
|
+
*/
|
|
105
|
+
tags?: pulumi.Input<{
|
|
106
|
+
[key: string]: pulumi.Input<string>;
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* A 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).
|
|
110
|
+
*/
|
|
111
|
+
tagsAll?: pulumi.Input<{
|
|
112
|
+
[key: string]: pulumi.Input<string>;
|
|
113
|
+
}>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.Keyspace = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Keyspaces Keyspace.
|
|
10
|
+
*
|
|
11
|
+
* More information about keyspaces can be found in the [Keyspaces User Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/what-is-keyspaces.html).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const example = new aws.keyspaces.Keyspace("example", {});
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Use the `name` to import a subnet group. For example
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import aws:keyspaces/keyspace:Keyspace example my_keyspace
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class Keyspace extends pulumi.CustomResource {
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["arn"] = state ? state.arn : undefined;
|
|
37
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
38
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
39
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
44
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
45
|
+
resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
46
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
47
|
+
}
|
|
48
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
49
|
+
super(Keyspace.__pulumiType, name, resourceInputs, opts);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing Keyspace resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name, id, state, opts) {
|
|
61
|
+
return new Keyspace(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of Keyspace. This is designed to work even
|
|
65
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
+
*/
|
|
67
|
+
static isInstance(obj) {
|
|
68
|
+
if (obj === undefined || obj === null) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
return obj['__pulumiType'] === Keyspace.__pulumiType;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.Keyspace = Keyspace;
|
|
75
|
+
/** @internal */
|
|
76
|
+
Keyspace.__pulumiType = 'aws:keyspaces/keyspace:Keyspace';
|
|
77
|
+
//# sourceMappingURL=keyspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyspace.js","sourceRoot":"","sources":["../../keyspaces/keyspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAqD/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GA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