Skip to content

Commit

Permalink
Merge branch 'main' into aurora-postgresql-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
sumupitchayan authored Oct 3, 2024
2 parents f503fb9 + b9e7855 commit 567ee28
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 48 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"IamAuthFunctionUrlsServiceRole35DF9DE0",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.10"
},
"DependsOn": [
Expand Down Expand Up @@ -99,13 +99,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"NoAuthFunctionUrlsServiceRole7247E6F2",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.10"
},
"DependsOn": [
Expand Down Expand Up @@ -134,8 +134,8 @@
"Arn"
]
},
"Principal": "*",
"FunctionUrlAuthType": "NONE"
"FunctionUrlAuthType": "NONE",
"Principal": "*"
}
},
"CorsFunctionUrlsServiceRole6227B597": {
Expand Down Expand Up @@ -175,13 +175,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"CorsFunctionUrlsServiceRole6227B597",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.10"
},
"DependsOn": [
Expand All @@ -192,19 +192,19 @@
"Type": "AWS::Lambda::Url",
"Properties": {
"AuthType": "NONE",
"TargetFunctionArn": {
"Fn::GetAtt": [
"CorsFunctionUrlsD81CF424",
"Arn"
]
},
"Cors": {
"AllowMethods": [
"*"
],
"AllowOrigins": [
"https://example.com"
]
},
"TargetFunctionArn": {
"Fn::GetAtt": [
"CorsFunctionUrlsD81CF424",
"Arn"
]
}
}
},
Expand All @@ -218,8 +218,8 @@
"Arn"
]
},
"Principal": "*",
"FunctionUrlAuthType": "NONE"
"FunctionUrlAuthType": "NONE",
"Principal": "*"
}
},
"StreamFunctionUrlsServiceRoleAF76EC5D": {
Expand Down Expand Up @@ -259,13 +259,13 @@
"Code": {
"ZipFile": "def handler(event, context):\n return \"success\""
},
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"StreamFunctionUrlsServiceRoleAF76EC5D",
"Arn"
]
},
"Handler": "index.handler",
"Runtime": "python3.10"
},
"DependsOn": [
Expand All @@ -276,13 +276,13 @@
"Type": "AWS::Lambda::Url",
"Properties": {
"AuthType": "NONE",
"InvokeMode": "RESPONSE_STREAM",
"TargetFunctionArn": {
"Fn::GetAtt": [
"StreamFunctionUrlsAAB55C9C",
"Arn"
]
},
"InvokeMode": "RESPONSE_STREAM"
}
}
},
"StreamFunctionUrlsinvokefunctionurl4FD8689D": {
Expand All @@ -295,8 +295,8 @@
"Arn"
]
},
"Principal": "*",
"FunctionUrlAuthType": "NONE"
"FunctionUrlAuthType": "NONE",
"Principal": "*"
}
}
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ
public static readonly S3_OUTPOSTS = new InterfaceVpcEndpointAwsService('s3-outposts');
public static readonly S3_MULTI_REGION_ACCESS_POINTS = new InterfaceVpcEndpointAwsService('s3-global.accesspoint', 'com.amazonaws', undefined, { global: true });
public static readonly SAGEMAKER_API = new InterfaceVpcEndpointAwsService('sagemaker.api');
public static readonly SAGEMAKER_EXPERIMENTS = new InterfaceVpcEndpointAwsService('experiments', 'aws.sagemaker');
public static readonly SAGEMAKER_FEATURESTORE_RUNTIME = new InterfaceVpcEndpointAwsService('sagemaker.featurestore-runtime');
public static readonly SAGEMAKER_GEOSPATIAL = new InterfaceVpcEndpointAwsService('sagemaker-geospatial');
public static readonly SAGEMAKER_METRICS = new InterfaceVpcEndpointAwsService('sagemaker.metrics');
Expand Down
9 changes: 8 additions & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/function-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ export class FunctionUrl extends Resource implements IFunctionUrl {
*/
public readonly functionArn: string;

/**
* The authentication type used for this Function URL
*/
public readonly authType: FunctionUrlAuthType;

private readonly function: IFunction;

constructor(scope: Construct, id: string, props: FunctionUrlProps) {
Expand All @@ -217,8 +222,10 @@ export class FunctionUrl extends Resource implements IFunctionUrl {
? { targetFunction: props.function.version.lambda, alias: props.function }
: { targetFunction: props.function, alias: undefined };

this.authType = props.authType ?? FunctionUrlAuthType.AWS_IAM;

const resource: CfnUrl = new CfnUrl(this, 'Resource', {
authType: props.authType ?? FunctionUrlAuthType.AWS_IAM,
authType: this.authType,
cors: props.cors ? this.renderCors(props.cors) : undefined,
invokeMode: props.invokeMode,
targetFunctionArn: targetFunction.functionArn,
Expand Down
Loading

0 comments on commit 567ee28

Please sign in to comment.