Sha256: 524005cb1d10ec7b14a741cfb19aeb0baa5dd96c3c13da0857ea8d56e0a8b141
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ account_id: "1234567", lambda_arn: "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest" }) # AWSAccountAndLambdaRequest | AWS Log Lambda Async request body. begin # Add AWS Log Lambda ARN result = api_instance.create_aws_lambda_arn(body) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling AWSLogsIntegrationAPI->create_aws_lambda_arn: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/aws-logs-integration/CreateAWSLambdaArn.rb |