mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
10 lines
236 B
Python
10 lines
236 B
Python
|
import boto3
|
||
|
|
||
|
|
||
|
def get_ssm_parameter(name: str, with_decryption: bool = True) -> str:
|
||
|
ssm = boto3.client("ssm")
|
||
|
|
||
|
response = ssm.get_parameter(Name=name, WithDecryption=with_decryption)
|
||
|
|
||
|
return response["Parameter"]["Value"]
|