@aws-cdk/aws-redshift-alpha 2.2.0-alpha.0 → 2.6.0-alpha.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/.jsii +88 -84
- package/.jsii.tabl.json +579 -28
- package/.warnings.jsii.js +3 -3
- package/LICENSE +1 -1
- package/NOTICE +1 -1
- package/lib/cluster.js +1 -1
- package/lib/database-secret.js +1 -1
- package/lib/endpoint.js +1 -1
- package/lib/parameter-group.js +1 -1
- package/lib/redshift-canned-metrics.generated.d.ts +208 -53
- package/lib/redshift-canned-metrics.generated.js +86 -6
- package/lib/subnet-group.js +1 -1
- package/lib/table.js +1 -1
- package/lib/user.js +1 -1
- package/package.json +8 -8
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.6.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -2855,7 +2855,7 @@
|
|
|
2855
2855
|
"stability": "experimental"
|
|
2856
2856
|
},
|
|
2857
2857
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
2858
|
-
"jsiiVersion": "1.
|
|
2858
|
+
"jsiiVersion": "1.50.0 (build d1830a4)",
|
|
2859
2859
|
"keywords": [
|
|
2860
2860
|
"aws",
|
|
2861
2861
|
"cdk",
|
|
@@ -2919,6 +2919,7 @@
|
|
|
2919
2919
|
"base": "aws-cdk-lib.Resource",
|
|
2920
2920
|
"docs": {
|
|
2921
2921
|
"custom": {
|
|
2922
|
+
"exampleMetadata": "infused",
|
|
2922
2923
|
"resource": "AWS::Redshift::Cluster"
|
|
2923
2924
|
},
|
|
2924
2925
|
"example": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});",
|
|
@@ -3152,7 +3153,7 @@
|
|
|
3152
3153
|
"docs": {
|
|
3153
3154
|
"stability": "experimental",
|
|
3154
3155
|
"summary": "Properties that describe an existing cluster instance.",
|
|
3155
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const securityGroup: ec2.SecurityGroup;\
|
|
3156
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const securityGroup: ec2.SecurityGroup;\nconst clusterAttributes: redshift_alpha.ClusterAttributes = {\n clusterEndpointAddress: 'clusterEndpointAddress',\n clusterEndpointPort: 123,\n clusterName: 'clusterName',\n\n // the properties below are optional\n securityGroups: [securityGroup],\n};",
|
|
3156
3157
|
"custom": {
|
|
3157
3158
|
"exampleMetadata": "fixture=_generated"
|
|
3158
3159
|
}
|
|
@@ -3249,7 +3250,7 @@
|
|
|
3249
3250
|
},
|
|
3250
3251
|
"stability": "experimental",
|
|
3251
3252
|
"summary": "A cluster parameter group.",
|
|
3252
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\
|
|
3253
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst clusterParameterGroup = new redshift_alpha.ClusterParameterGroup(this, 'MyClusterParameterGroup', {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n});"
|
|
3253
3254
|
},
|
|
3254
3255
|
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterParameterGroup",
|
|
3255
3256
|
"initializer": {
|
|
@@ -3355,7 +3356,7 @@
|
|
|
3355
3356
|
"docs": {
|
|
3356
3357
|
"stability": "experimental",
|
|
3357
3358
|
"summary": "Properties for a parameter group.",
|
|
3358
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\
|
|
3359
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst clusterParameterGroupProps: redshift_alpha.ClusterParameterGroupProps = {\n parameters: {\n parametersKey: 'parameters',\n },\n\n // the properties below are optional\n description: 'description',\n};",
|
|
3359
3360
|
"custom": {
|
|
3360
3361
|
"exampleMetadata": "fixture=_generated"
|
|
3361
3362
|
}
|
|
@@ -3371,40 +3372,40 @@
|
|
|
3371
3372
|
{
|
|
3372
3373
|
"abstract": true,
|
|
3373
3374
|
"docs": {
|
|
3374
|
-
"default": "a CDK generated description",
|
|
3375
3375
|
"stability": "experimental",
|
|
3376
|
-
"summary": "
|
|
3376
|
+
"summary": "The parameters in this parameter group."
|
|
3377
3377
|
},
|
|
3378
3378
|
"immutable": true,
|
|
3379
3379
|
"locationInModule": {
|
|
3380
3380
|
"filename": "lib/parameter-group.ts",
|
|
3381
|
-
"line":
|
|
3381
|
+
"line": 41
|
|
3382
3382
|
},
|
|
3383
|
-
"name": "
|
|
3384
|
-
"optional": true,
|
|
3383
|
+
"name": "parameters",
|
|
3385
3384
|
"type": {
|
|
3386
|
-
"
|
|
3385
|
+
"collection": {
|
|
3386
|
+
"elementtype": {
|
|
3387
|
+
"primitive": "string"
|
|
3388
|
+
},
|
|
3389
|
+
"kind": "map"
|
|
3390
|
+
}
|
|
3387
3391
|
}
|
|
3388
3392
|
},
|
|
3389
3393
|
{
|
|
3390
3394
|
"abstract": true,
|
|
3391
3395
|
"docs": {
|
|
3396
|
+
"default": "a CDK generated description",
|
|
3392
3397
|
"stability": "experimental",
|
|
3393
|
-
"summary": "
|
|
3398
|
+
"summary": "Description for this parameter group."
|
|
3394
3399
|
},
|
|
3395
3400
|
"immutable": true,
|
|
3396
3401
|
"locationInModule": {
|
|
3397
3402
|
"filename": "lib/parameter-group.ts",
|
|
3398
|
-
"line":
|
|
3403
|
+
"line": 36
|
|
3399
3404
|
},
|
|
3400
|
-
"name": "
|
|
3405
|
+
"name": "description",
|
|
3406
|
+
"optional": true,
|
|
3401
3407
|
"type": {
|
|
3402
|
-
"
|
|
3403
|
-
"elementtype": {
|
|
3404
|
-
"primitive": "string"
|
|
3405
|
-
},
|
|
3406
|
-
"kind": "map"
|
|
3407
|
-
}
|
|
3408
|
+
"primitive": "string"
|
|
3408
3409
|
}
|
|
3409
3410
|
}
|
|
3410
3411
|
],
|
|
@@ -3414,6 +3415,9 @@
|
|
|
3414
3415
|
"assembly": "@aws-cdk/aws-redshift-alpha",
|
|
3415
3416
|
"datatype": true,
|
|
3416
3417
|
"docs": {
|
|
3418
|
+
"custom": {
|
|
3419
|
+
"exampleMetadata": "infused"
|
|
3420
|
+
},
|
|
3417
3421
|
"example": "import * as ec2 from 'aws-cdk-lib/aws-ec2';\n\nconst vpc = new ec2.Vpc(this, 'Vpc');\nconst cluster = new Cluster(this, 'Redshift', {\n masterUser: {\n masterUsername: 'admin',\n },\n vpc\n});",
|
|
3418
3422
|
"stability": "experimental",
|
|
3419
3423
|
"summary": "Properties for a new database cluster."
|
|
@@ -3810,7 +3814,7 @@
|
|
|
3810
3814
|
},
|
|
3811
3815
|
"stability": "experimental",
|
|
3812
3816
|
"summary": "Class for creating a Redshift cluster subnet group.",
|
|
3813
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\
|
|
3817
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\nconst clusterSubnetGroup = new redshift_alpha.ClusterSubnetGroup(this, 'MyClusterSubnetGroup', {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n});"
|
|
3814
3818
|
},
|
|
3815
3819
|
"fqn": "@aws-cdk/aws-redshift-alpha.ClusterSubnetGroup",
|
|
3816
3820
|
"initializer": {
|
|
@@ -3916,7 +3920,7 @@
|
|
|
3916
3920
|
"docs": {
|
|
3917
3921
|
"stability": "experimental",
|
|
3918
3922
|
"summary": "Properties for creating a ClusterSubnetGroup.",
|
|
3919
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\
|
|
3923
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport * as cdk from 'aws-cdk-lib';\nimport { aws_ec2 as ec2 } from 'aws-cdk-lib';\n\ndeclare const subnet: ec2.Subnet;\ndeclare const subnetFilter: ec2.SubnetFilter;\ndeclare const vpc: ec2.Vpc;\nconst clusterSubnetGroupProps: redshift_alpha.ClusterSubnetGroupProps = {\n description: 'description',\n vpc: vpc,\n\n // the properties below are optional\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n vpcSubnets: {\n availabilityZones: ['availabilityZones'],\n onePerAz: false,\n subnetFilters: [subnetFilter],\n subnetGroupName: 'subnetGroupName',\n subnets: [subnet],\n subnetType: ec2.SubnetType.PRIVATE_ISOLATED,\n },\n};",
|
|
3920
3924
|
"custom": {
|
|
3921
3925
|
"exampleMetadata": "fixture=_generated"
|
|
3922
3926
|
}
|
|
@@ -3948,35 +3952,35 @@
|
|
|
3948
3952
|
{
|
|
3949
3953
|
"abstract": true,
|
|
3950
3954
|
"docs": {
|
|
3951
|
-
"default": "RemovalPolicy.RETAIN",
|
|
3952
3955
|
"stability": "experimental",
|
|
3953
|
-
"summary": "The
|
|
3956
|
+
"summary": "The VPC to place the subnet group in."
|
|
3954
3957
|
},
|
|
3955
3958
|
"immutable": true,
|
|
3956
3959
|
"locationInModule": {
|
|
3957
3960
|
"filename": "lib/subnet-group.ts",
|
|
3958
|
-
"line":
|
|
3961
|
+
"line": 29
|
|
3959
3962
|
},
|
|
3960
|
-
"name": "
|
|
3961
|
-
"optional": true,
|
|
3963
|
+
"name": "vpc",
|
|
3962
3964
|
"type": {
|
|
3963
|
-
"fqn": "aws-cdk-lib.
|
|
3965
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
3964
3966
|
}
|
|
3965
3967
|
},
|
|
3966
3968
|
{
|
|
3967
3969
|
"abstract": true,
|
|
3968
3970
|
"docs": {
|
|
3971
|
+
"default": "RemovalPolicy.RETAIN",
|
|
3969
3972
|
"stability": "experimental",
|
|
3970
|
-
"summary": "The
|
|
3973
|
+
"summary": "The removal policy to apply when the subnet group are removed from the stack or replaced during an update."
|
|
3971
3974
|
},
|
|
3972
3975
|
"immutable": true,
|
|
3973
3976
|
"locationInModule": {
|
|
3974
3977
|
"filename": "lib/subnet-group.ts",
|
|
3975
|
-
"line":
|
|
3978
|
+
"line": 44
|
|
3976
3979
|
},
|
|
3977
|
-
"name": "
|
|
3980
|
+
"name": "removalPolicy",
|
|
3981
|
+
"optional": true,
|
|
3978
3982
|
"type": {
|
|
3979
|
-
"fqn": "aws-cdk-lib.
|
|
3983
|
+
"fqn": "aws-cdk-lib.RemovalPolicy"
|
|
3980
3984
|
}
|
|
3981
3985
|
},
|
|
3982
3986
|
{
|
|
@@ -4038,7 +4042,7 @@
|
|
|
4038
4042
|
"docs": {
|
|
4039
4043
|
"stability": "experimental",
|
|
4040
4044
|
"summary": "A column in a Redshift table.",
|
|
4041
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\
|
|
4045
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst column: redshift_alpha.Column = {\n dataType: 'dataType',\n name: 'name',\n\n // the properties below are optional\n distKey: false,\n sortKey: false,\n};",
|
|
4042
4046
|
"custom": {
|
|
4043
4047
|
"exampleMetadata": "fixture=_generated"
|
|
4044
4048
|
}
|
|
@@ -4070,35 +4074,35 @@
|
|
|
4070
4074
|
{
|
|
4071
4075
|
"abstract": true,
|
|
4072
4076
|
"docs": {
|
|
4073
|
-
"default": "- column is not DISTKEY",
|
|
4074
4077
|
"stability": "experimental",
|
|
4075
|
-
"summary": "
|
|
4078
|
+
"summary": "The name of the column."
|
|
4076
4079
|
},
|
|
4077
4080
|
"immutable": true,
|
|
4078
4081
|
"locationInModule": {
|
|
4079
4082
|
"filename": "lib/table.ts",
|
|
4080
|
-
"line":
|
|
4083
|
+
"line": 63
|
|
4081
4084
|
},
|
|
4082
|
-
"name": "
|
|
4083
|
-
"optional": true,
|
|
4085
|
+
"name": "name",
|
|
4084
4086
|
"type": {
|
|
4085
|
-
"primitive": "
|
|
4087
|
+
"primitive": "string"
|
|
4086
4088
|
}
|
|
4087
4089
|
},
|
|
4088
4090
|
{
|
|
4089
4091
|
"abstract": true,
|
|
4090
4092
|
"docs": {
|
|
4093
|
+
"default": "- column is not DISTKEY",
|
|
4091
4094
|
"stability": "experimental",
|
|
4092
|
-
"summary": "
|
|
4095
|
+
"summary": "Boolean value that indicates whether the column is to be configured as DISTKEY."
|
|
4093
4096
|
},
|
|
4094
4097
|
"immutable": true,
|
|
4095
4098
|
"locationInModule": {
|
|
4096
4099
|
"filename": "lib/table.ts",
|
|
4097
|
-
"line":
|
|
4100
|
+
"line": 75
|
|
4098
4101
|
},
|
|
4099
|
-
"name": "
|
|
4102
|
+
"name": "distKey",
|
|
4103
|
+
"optional": true,
|
|
4100
4104
|
"type": {
|
|
4101
|
-
"primitive": "
|
|
4105
|
+
"primitive": "boolean"
|
|
4102
4106
|
}
|
|
4103
4107
|
},
|
|
4104
4108
|
{
|
|
@@ -4128,7 +4132,7 @@
|
|
|
4128
4132
|
"docs": {
|
|
4129
4133
|
"stability": "experimental",
|
|
4130
4134
|
"summary": "Properties for accessing a Redshift database.",
|
|
4131
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';\n\ndeclare const cluster: redshift_alpha.Cluster;\ndeclare const secret: secretsmanager.Secret;\
|
|
4135
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';\n\ndeclare const cluster: redshift_alpha.Cluster;\ndeclare const secret: secretsmanager.Secret;\nconst databaseOptions: redshift_alpha.DatabaseOptions = {\n cluster: cluster,\n databaseName: 'databaseName',\n\n // the properties below are optional\n adminUser: secret,\n};",
|
|
4132
4136
|
"custom": {
|
|
4133
4137
|
"exampleMetadata": "fixture=_generated"
|
|
4134
4138
|
}
|
|
@@ -4144,52 +4148,52 @@
|
|
|
4144
4148
|
{
|
|
4145
4149
|
"abstract": true,
|
|
4146
4150
|
"docs": {
|
|
4147
|
-
"default": "- the admin secret is taken from the cluster",
|
|
4148
|
-
"remarks": "Secret JSON schema: `{ username: string; password: string }`.",
|
|
4149
4151
|
"stability": "experimental",
|
|
4150
|
-
"summary": "The
|
|
4152
|
+
"summary": "The cluster containing the database."
|
|
4151
4153
|
},
|
|
4152
4154
|
"immutable": true,
|
|
4153
4155
|
"locationInModule": {
|
|
4154
4156
|
"filename": "lib/database-options.ts",
|
|
4155
|
-
"line":
|
|
4157
|
+
"line": 11
|
|
4156
4158
|
},
|
|
4157
|
-
"name": "
|
|
4158
|
-
"optional": true,
|
|
4159
|
+
"name": "cluster",
|
|
4159
4160
|
"type": {
|
|
4160
|
-
"fqn": "aws-cdk-
|
|
4161
|
+
"fqn": "@aws-cdk/aws-redshift-alpha.ICluster"
|
|
4161
4162
|
}
|
|
4162
4163
|
},
|
|
4163
4164
|
{
|
|
4164
4165
|
"abstract": true,
|
|
4165
4166
|
"docs": {
|
|
4166
4167
|
"stability": "experimental",
|
|
4167
|
-
"summary": "The
|
|
4168
|
+
"summary": "The name of the database."
|
|
4168
4169
|
},
|
|
4169
4170
|
"immutable": true,
|
|
4170
4171
|
"locationInModule": {
|
|
4171
4172
|
"filename": "lib/database-options.ts",
|
|
4172
|
-
"line":
|
|
4173
|
+
"line": 16
|
|
4173
4174
|
},
|
|
4174
|
-
"name": "
|
|
4175
|
+
"name": "databaseName",
|
|
4175
4176
|
"type": {
|
|
4176
|
-
"
|
|
4177
|
+
"primitive": "string"
|
|
4177
4178
|
}
|
|
4178
4179
|
},
|
|
4179
4180
|
{
|
|
4180
4181
|
"abstract": true,
|
|
4181
4182
|
"docs": {
|
|
4183
|
+
"default": "- the admin secret is taken from the cluster",
|
|
4184
|
+
"remarks": "Secret JSON schema: `{ username: string; password: string }`.",
|
|
4182
4185
|
"stability": "experimental",
|
|
4183
|
-
"summary": "The
|
|
4186
|
+
"summary": "The secret containing credentials to a Redshift user with administrator privileges."
|
|
4184
4187
|
},
|
|
4185
4188
|
"immutable": true,
|
|
4186
4189
|
"locationInModule": {
|
|
4187
4190
|
"filename": "lib/database-options.ts",
|
|
4188
|
-
"line":
|
|
4191
|
+
"line": 25
|
|
4189
4192
|
},
|
|
4190
|
-
"name": "
|
|
4193
|
+
"name": "adminUser",
|
|
4194
|
+
"optional": true,
|
|
4191
4195
|
"type": {
|
|
4192
|
-
"
|
|
4196
|
+
"fqn": "aws-cdk-lib.aws_secretsmanager.ISecret"
|
|
4193
4197
|
}
|
|
4194
4198
|
}
|
|
4195
4199
|
],
|
|
@@ -4205,7 +4209,7 @@
|
|
|
4205
4209
|
},
|
|
4206
4210
|
"stability": "experimental",
|
|
4207
4211
|
"summary": "A database secret.",
|
|
4208
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\
|
|
4212
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\nconst databaseSecret = new redshift_alpha.DatabaseSecret(this, 'MyDatabaseSecret', {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n});"
|
|
4209
4213
|
},
|
|
4210
4214
|
"fqn": "@aws-cdk/aws-redshift-alpha.DatabaseSecret",
|
|
4211
4215
|
"initializer": {
|
|
@@ -4251,7 +4255,7 @@
|
|
|
4251
4255
|
"docs": {
|
|
4252
4256
|
"stability": "experimental",
|
|
4253
4257
|
"summary": "Construction properties for a DatabaseSecret.",
|
|
4254
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\
|
|
4258
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nimport { aws_kms as kms } from 'aws-cdk-lib';\n\ndeclare const key: kms.Key;\nconst databaseSecretProps: redshift_alpha.DatabaseSecretProps = {\n username: 'username',\n\n // the properties below are optional\n encryptionKey: key,\n};",
|
|
4255
4259
|
"custom": {
|
|
4256
4260
|
"exampleMetadata": "fixture=_generated"
|
|
4257
4261
|
}
|
|
@@ -4267,35 +4271,35 @@
|
|
|
4267
4271
|
{
|
|
4268
4272
|
"abstract": true,
|
|
4269
4273
|
"docs": {
|
|
4270
|
-
"default": "default master key",
|
|
4271
4274
|
"stability": "experimental",
|
|
4272
|
-
"summary": "The
|
|
4275
|
+
"summary": "The username."
|
|
4273
4276
|
},
|
|
4274
4277
|
"immutable": true,
|
|
4275
4278
|
"locationInModule": {
|
|
4276
4279
|
"filename": "lib/database-secret.ts",
|
|
4277
|
-
"line":
|
|
4280
|
+
"line": 12
|
|
4278
4281
|
},
|
|
4279
|
-
"name": "
|
|
4280
|
-
"optional": true,
|
|
4282
|
+
"name": "username",
|
|
4281
4283
|
"type": {
|
|
4282
|
-
"
|
|
4284
|
+
"primitive": "string"
|
|
4283
4285
|
}
|
|
4284
4286
|
},
|
|
4285
4287
|
{
|
|
4286
4288
|
"abstract": true,
|
|
4287
4289
|
"docs": {
|
|
4290
|
+
"default": "default master key",
|
|
4288
4291
|
"stability": "experimental",
|
|
4289
|
-
"summary": "The
|
|
4292
|
+
"summary": "The KMS key to use to encrypt the secret."
|
|
4290
4293
|
},
|
|
4291
4294
|
"immutable": true,
|
|
4292
4295
|
"locationInModule": {
|
|
4293
4296
|
"filename": "lib/database-secret.ts",
|
|
4294
|
-
"line":
|
|
4297
|
+
"line": 19
|
|
4295
4298
|
},
|
|
4296
|
-
"name": "
|
|
4299
|
+
"name": "encryptionKey",
|
|
4300
|
+
"optional": true,
|
|
4297
4301
|
"type": {
|
|
4298
|
-
"
|
|
4302
|
+
"fqn": "aws-cdk-lib.aws_kms.IKey"
|
|
4299
4303
|
}
|
|
4300
4304
|
}
|
|
4301
4305
|
],
|
|
@@ -4307,7 +4311,7 @@
|
|
|
4307
4311
|
"remarks": "Consists of a combination of hostname and port.",
|
|
4308
4312
|
"stability": "experimental",
|
|
4309
4313
|
"summary": "Connection endpoint of a redshift cluster.",
|
|
4310
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\
|
|
4314
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';\nconst endpoint = new redshift_alpha.Endpoint('address', 123);",
|
|
4311
4315
|
"custom": {
|
|
4312
4316
|
"exampleMetadata": "fixture=_generated"
|
|
4313
4317
|
}
|
|
@@ -4768,7 +4772,7 @@
|
|
|
4768
4772
|
"datatype": true,
|
|
4769
4773
|
"docs": {
|
|
4770
4774
|
"custom": {
|
|
4771
|
-
"exampleMetadata": "fixture=cluster"
|
|
4775
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
4772
4776
|
},
|
|
4773
4777
|
"example": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
|
|
4774
4778
|
"stability": "experimental",
|
|
@@ -4923,7 +4927,7 @@
|
|
|
4923
4927
|
"datatype": true,
|
|
4924
4928
|
"docs": {
|
|
4925
4929
|
"custom": {
|
|
4926
|
-
"exampleMetadata": "fixture=cluster"
|
|
4930
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
4927
4931
|
},
|
|
4928
4932
|
"example": "import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\n\ncluster.addRotationMultiUser('MyUser', {\n secret: secretsmanager.Secret.fromSecretNameV2(this, 'Imported Secret', 'my-secret'),\n});",
|
|
4929
4933
|
"stability": "experimental",
|
|
@@ -4980,7 +4984,7 @@
|
|
|
4980
4984
|
"base": "constructs.Construct",
|
|
4981
4985
|
"docs": {
|
|
4982
4986
|
"custom": {
|
|
4983
|
-
"exampleMetadata": "fixture=cluster"
|
|
4987
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
4984
4988
|
},
|
|
4985
4989
|
"example": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
|
|
4986
4990
|
"stability": "experimental",
|
|
@@ -5189,7 +5193,7 @@
|
|
|
5189
5193
|
"assembly": "@aws-cdk/aws-redshift-alpha",
|
|
5190
5194
|
"docs": {
|
|
5191
5195
|
"custom": {
|
|
5192
|
-
"exampleMetadata": "fixture=cluster"
|
|
5196
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5193
5197
|
},
|
|
5194
5198
|
"example": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = new User(this, 'User', {\n username: username,\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = new Table(this, 'Table', {\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: databaseName,\n});\ntable.grant(user, TableAction.INSERT);",
|
|
5195
5199
|
"stability": "experimental",
|
|
@@ -5261,7 +5265,7 @@
|
|
|
5261
5265
|
"datatype": true,
|
|
5262
5266
|
"docs": {
|
|
5263
5267
|
"custom": {
|
|
5264
|
-
"exampleMetadata": "fixture=cluster"
|
|
5268
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5265
5269
|
},
|
|
5266
5270
|
"example": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);",
|
|
5267
5271
|
"stability": "experimental",
|
|
@@ -5351,7 +5355,7 @@
|
|
|
5351
5355
|
"assembly": "@aws-cdk/aws-redshift-alpha",
|
|
5352
5356
|
"docs": {
|
|
5353
5357
|
"custom": {
|
|
5354
|
-
"exampleMetadata": "fixture=cluster"
|
|
5358
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5355
5359
|
},
|
|
5356
5360
|
"example": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
|
|
5357
5361
|
"stability": "experimental",
|
|
@@ -5401,7 +5405,7 @@
|
|
|
5401
5405
|
"datatype": true,
|
|
5402
5406
|
"docs": {
|
|
5403
5407
|
"custom": {
|
|
5404
|
-
"exampleMetadata": "fixture=cluster"
|
|
5408
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5405
5409
|
},
|
|
5406
5410
|
"example": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', distKey: true },\n { name: 'col2', dataType: 'float' },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n distStyle: TableDistStyle.KEY,\n});",
|
|
5407
5411
|
"stability": "experimental",
|
|
@@ -5518,7 +5522,7 @@
|
|
|
5518
5522
|
"assembly": "@aws-cdk/aws-redshift-alpha",
|
|
5519
5523
|
"docs": {
|
|
5520
5524
|
"custom": {
|
|
5521
|
-
"exampleMetadata": "fixture=cluster"
|
|
5525
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5522
5526
|
},
|
|
5523
5527
|
"example": "new Table(this, 'Table', {\n tableColumns: [\n { name: 'col1', dataType: 'varchar(4)', sortKey: true },\n { name: 'col2', dataType: 'float', sortKey: true },\n ],\n cluster: cluster,\n databaseName: 'databaseName',\n sortStyle: TableSortStyle.COMPOUND,\n});",
|
|
5524
5528
|
"stability": "experimental",
|
|
@@ -5561,7 +5565,7 @@
|
|
|
5561
5565
|
"base": "constructs.Construct",
|
|
5562
5566
|
"docs": {
|
|
5563
5567
|
"custom": {
|
|
5564
|
-
"exampleMetadata": "fixture=cluster"
|
|
5568
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5565
5569
|
},
|
|
5566
5570
|
"example": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
|
|
5567
5571
|
"stability": "experimental",
|
|
@@ -5780,7 +5784,7 @@
|
|
|
5780
5784
|
"datatype": true,
|
|
5781
5785
|
"docs": {
|
|
5782
5786
|
"custom": {
|
|
5783
|
-
"exampleMetadata": "fixture=cluster"
|
|
5787
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5784
5788
|
},
|
|
5785
5789
|
"example": "const databaseName = 'databaseName';\nconst username = 'myuser'\nconst tableName = 'mytable'\n\nconst user = User.fromUserAttributes(this, 'User', {\n username: username,\n password: SecretValue.plainText('NOT_FOR_PRODUCTION'),\n cluster: cluster,\n databaseName: databaseName,\n});\nconst table = Table.fromTableAttributes(this, 'Table', {\n tableName: tableName,\n tableColumns: [{ name: 'col1', dataType: 'varchar(4)' }, { name: 'col2', dataType: 'float' }],\n cluster: cluster,\n databaseName: 'databaseName',\n});\ntable.grant(user, TableAction.INSERT);",
|
|
5786
5790
|
"stability": "experimental",
|
|
@@ -5838,7 +5842,7 @@
|
|
|
5838
5842
|
"datatype": true,
|
|
5839
5843
|
"docs": {
|
|
5840
5844
|
"custom": {
|
|
5841
|
-
"exampleMetadata": "fixture=cluster"
|
|
5845
|
+
"exampleMetadata": "fixture=cluster infused"
|
|
5842
5846
|
},
|
|
5843
5847
|
"example": "import * as kms from 'aws-cdk-lib/aws-kms';\n\nconst encryptionKey = new kms.Key(this, 'Key');\nnew User(this, 'User', {\n encryptionKey: encryptionKey,\n cluster: cluster,\n databaseName: 'databaseName',\n});",
|
|
5844
5848
|
"stability": "experimental",
|
|
@@ -5914,6 +5918,6 @@
|
|
|
5914
5918
|
"symbolId": "lib/user:UserProps"
|
|
5915
5919
|
}
|
|
5916
5920
|
},
|
|
5917
|
-
"version": "2.
|
|
5921
|
+
"version": "2.6.0-alpha.0",
|
|
5918
5922
|
"fingerprint": "**********"
|
|
5919
5923
|
}
|