AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > DataDogFunctions Sample SAM Template for DataDogFunctions Globals: Function: Timeout: 20 Metadata: AWS::ServerlessRepo::Application: Name: DevOps-DataDog-Connector Description: DataDog Integration Author: DevOpsGuru SpdxLicenseId: Apache-2.0 LicenseUrl: ./LICENSE.txt ReadmeUrl: ./README.md Labels: [ 'DevOps-Guru', 'Datadog' ] HomePageUrl: https://code.amazon.com/packages/DevOpsGuruDataDogConnector SemanticVersion: 0.0.2 SourceCodeUrl: https://code.amazon.com/packages/DevOpsGuruDataDogConnector/trees/mainline Resources: Functions: Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Properties: CodeUri: Functions Handler: aws.devopsguru.partner.datadog.App::handleRequest Runtime: java11 Architectures: - x86_64 MemorySize: 512 Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object Variables: SECRET_NAME: DataDogSecretManager Policies: - AWSSecretsManagerGetSecretValuePolicy: SecretArn: !Sub "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:DataDogSecretManager-??????"