Best Python code snippet using localstack_python
test_lambda.py
Source:test_lambda.py  
...513        assert (514            "UntrustedArtifactOnDeployment" in response["CodeSigningConfig"]["CodeSigningPolicies"]515        )516        code_signing_arn = response["CodeSigningConfig"]["CodeSigningConfigArn"]517        response = lambda_client.update_code_signing_config(518            CodeSigningConfigArn=code_signing_arn,519            CodeSigningPolicies={"UntrustedArtifactOnDeployment": "Warn"},520        )521        snapshot.match("update_code_signing_config", response)522        assert (523            "Warn"524            == response["CodeSigningConfig"]["CodeSigningPolicies"]["UntrustedArtifactOnDeployment"]525        )526        response = lambda_client.get_code_signing_config(CodeSigningConfigArn=code_signing_arn)527        assert 200 == response["ResponseMetadata"]["HTTPStatusCode"]528        snapshot.match("get_code_signing_config", response)529        response = lambda_client.put_function_code_signing_config(530            CodeSigningConfigArn=code_signing_arn, FunctionName=function_name531        )...client.pyi
Source:client.pyi  
...788        <https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html>`__ .789        [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/lambda.html#Lambda.Client.update_alias)790        [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_lambda/client.html#update_alias)791        """792    def update_code_signing_config(793        self,794        *,795        CodeSigningConfigArn: str,796        Description: str = None,797        AllowedPublishers: "AllowedPublishersTypeDef" = None,798        CodeSigningPolicies: "CodeSigningPoliciesTypeDef" = None799    ) -> UpdateCodeSigningConfigResponseTypeDef:800        """801        Update the code signing configuration.802        [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/lambda.html#Lambda.Client.update_code_signing_config)803        [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_lambda/client.html#update_code_signing_config)804        """805    def update_event_source_mapping(806        self,...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
