Skip to content

Commit 5a3515c

Browse files
authored
Merge pull request #223 from jstrunk/cr-fix-licence
chore(bedrock): fix custom resource license header
2 parents cc075c4 + a46078e commit 5a3515c

File tree

9 files changed

+108
-81
lines changed

9 files changed

+108
-81
lines changed

lambda/bedrock-custom-resources/custom_resources/__init__.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013

1114
__version__ = "0.1.0"
1215

lambda/bedrock-custom-resources/custom_resources/bedrock_agent.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013
import pickle # nosec B403: pickle is used to create a hashable value. The value will never be deserialized.
1114

1215
import uuid

lambda/bedrock-custom-resources/custom_resources/bedrock_agent_alias.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013

1114
"""
1215
Input should be agentId, alias name, and hashes of any knowledge bases and action groups attached to identify changes.

lambda/bedrock-custom-resources/custom_resources/bedrock_agent_knowledgebase.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013
import uuid
1114

1215
import boto3

lambda/bedrock-custom-resources/custom_resources/bedrock_datasource.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013
import uuid
1114

1215
import boto3

lambda/bedrock-custom-resources/custom_resources/bedrock_knowledgebase.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013
import uuid
1114

1215
import boto3

lambda/bedrock-custom-resources/custom_resources/bedrock_prepare_agent.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013

1114
"""
1215
Input should be agentId, alias name, and hashes of any knowledge bases and action groups attached to identify changes.

lambda/bedrock-custom-resources/custom_resources/cr_types.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013

1114
from typing import TypeVar, TypedDict, Generic, Literal, NotRequired
1215

lambda/bedrock-custom-resources/custom_resources/exceptions.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
# Licensed under the Amazon Software License (the "License"). You may not
3-
# use this file except in compliance with the License. A copy of the
4-
# License is located at:
5-
# http://aws.amazon.com/asl/
6-
# or in the "license" file accompanying this file. This file is distributed
7-
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
8-
# See the License for the specific language governing permissions and
9-
# limitations under the License.
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5+
# with the License. A copy of the License is located at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10+
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11+
# and limitations under the License.
12+
#
1013
import os
1114

1215
import botocore.exceptions

0 commit comments

Comments
 (0)