import { PrivateAssetBucket } from 'cdk-private-asset-bucket'
new PrivateAssetBucket(scope: Construct, id: string, props: PrivateAssetBucketProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
PrivateAssetBucketProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: PrivateAssetBucketProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Type | Description |
---|---|---|
assetBucketCloudfrontUrl |
string |
No description. |
assetBucketName |
string |
No description. |
assetBucketRecordDomainName |
string |
No description. |
public readonly assetBucketCloudfrontUrl: string;
- Type: string
public readonly assetBucketName: string;
- Type: string
public readonly assetBucketRecordDomainName: string;
- Type: string
import { CustomDomain } from 'cdk-private-asset-bucket'
const customDomain: CustomDomain = { ... }
Name | Type | Description |
---|---|---|
domainName |
string |
domainName needs to be part of the hosted zone e.g.: image.example.com. |
zone |
aws-cdk-lib.aws_route53.IHostedZone |
No description. |
public readonly domainName: string;
- Type: string
domainName needs to be part of the hosted zone e.g.: image.example.com.
public readonly zone: IHostedZone;
- Type: aws-cdk-lib.aws_route53.IHostedZone
import { PrivateAssetBucketProps } from 'cdk-private-asset-bucket'
const privateAssetBucketProps: PrivateAssetBucketProps = { ... }
Name | Type | Description |
---|---|---|
userPoolClientId |
string |
No description. |
userPoolId |
string |
No description. |
assetBucketName |
string |
No description. |
assetBucketNameImport |
string |
if you want to use an imported bucket instead. |
customDomain |
CustomDomain |
No description. |
tokenUse |
string |
The token use that you expect to be present in the JWT's token_use claim. |
public readonly userPoolClientId: string;
- Type: string
public readonly userPoolId: string;
- Type: string
public readonly assetBucketName: string;
- Type: string
public readonly assetBucketNameImport: string;
- Type: string
if you want to use an imported bucket instead.
public readonly customDomain: CustomDomain;
- Type: CustomDomain
public readonly tokenUse: string;
- Type: string
The token use that you expect to be present in the JWT's token_use claim.
Usually you are verifying either Access token (common) or ID token (less common). Pass null explicitly to not check the JWT's token use--if you know what you're doing