How to use get_code_signing_config method in localstack

Best Python code snippet using localstack_python

get_code_signing_config.py

Source:get_code_signing_config.py Github

copy

Full Screen

...98 description=self.description,99 id=self.id,100 last_modified=self.last_modified,101 policies=self.policies)102def get_code_signing_config(arn: Optional[str] = None,103 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCodeSigningConfigResult:104 """105 Provides information about a Lambda Code Signing Config. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).106 For information about Lambda code signing configurations and how to use them, see [configuring code signing for Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html)107 ## Example Usage108 ```python109 import pulumi110 import pulumi_aws as aws111 existing_csc = aws.lambda.get_code_signing_config(arn=f"arn:aws:lambda:{var['aws_region']}:{var['aws_account']}:code-signing-config:csc-0f6c334abcdea4d8b")112 ```113 :param str arn: The Amazon Resource Name (ARN) of the code signing configuration.114 """115 __args__ = dict()116 __args__['arn'] = arn117 if opts is None:118 opts = pulumi.InvokeOptions()119 if opts.version is None:120 opts.version = _utilities.get_version()121 __ret__ = pulumi.runtime.invoke('aws:lambda/getCodeSigningConfig:getCodeSigningConfig', __args__, opts=opts, typ=GetCodeSigningConfigResult).value122 return AwaitableGetCodeSigningConfigResult(123 allowed_publishers=__ret__.allowed_publishers,124 arn=__ret__.arn,125 config_id=__ret__.config_id,126 description=__ret__.description,127 id=__ret__.id,128 last_modified=__ret__.last_modified,129 policies=__ret__.policies)130@_utilities.lift_output_func(get_code_signing_config)131def get_code_signing_config_output(arn: Optional[pulumi.Input[str]] = None,132 opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCodeSigningConfigResult]:133 """134 Provides information about a Lambda Code Signing Config. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).135 For information about Lambda code signing configurations and how to use them, see [configuring code signing for Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html)136 ## Example Usage137 ```python138 import pulumi139 import pulumi_aws as aws140 existing_csc = aws.lambda.get_code_signing_config(arn=f"arn:aws:lambda:{var['aws_region']}:{var['aws_account']}:code-signing-config:csc-0f6c334abcdea4d8b")141 ```142 :param str arn: The Amazon Resource Name (ARN) of the code signing configuration.143 """...

Full Screen

Full Screen

helper.py

Source:helper.py Github

copy

Full Screen

...55 logging.debug(e)56 return None57 def event_source_mapping_exists(self, esm_uuid: str) -> bool:58 return self.get_event_source_mapping(esm_uuid) is not None59 def get_code_signing_config(self, code_signing_config_arn: str) -> dict:60 try:61 resp = self.lambda_client.get_code_signing_config(62 CodeSigningConfigArn=code_signing_config_arn,63 )64 return resp["CodeSigningConfig"]65 except Exception as e:66 logging.debug(e)67 return None68 def code_signing_config_exists(self, code_signing_config_arn: str) -> bool:69 return self.get_code_signing_config(code_signing_config_arn) is not None70 def get_alias(self, alias_name: str, function_name: str) -> dict:71 try:72 resp = self.lambda_client.get_alias(73 Name=alias_name,74 FunctionName=function_name75 )76 return resp77 except Exception as e:78 logging.debug(e)79 return None80 def alias_exists(self, alias_name: str, function_name: str) -> bool:81 return self.get_alias(alias_name, function_name) is not None82 def get_function_url_config(self, function_name: str) -> dict:83 try:...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful