Crates.io | cloudwatch_logs_url |
lib.rs | cloudwatch_logs_url |
version | 1.0.0 |
source | src |
created_at | 2024-08-05 18:17:04.289003 |
updated_at | 2024-08-06 09:11:17.130529 |
description | generate CloudWatch Logs URL |
homepage | https://github.com/sinofseven/cloudwatch_logs_url |
repository | https://github.com/sinofseven/cloudwatch_logs_url |
max_upload_size | |
id | 1326378 |
size | 18,063 |
Generate AWS CloudWatch Logs URL
[dependencies]
cloudwatch_logs_url = "1"
let url = cloudwatch_logs_url::create_url_log_group(
"ap-northeast-1",
"/aws/lambda/luciferous-devio-index-cl-FunctionCheckIndividualS-qNWf7JYCZBBM"
);
let props = cloudwatch_logs_url::PropsCreateUrlLogEvents {
region: "ap-northeast-1".to_string(),
log_group_name: "/aws/lambda/luciferous-devio-index-cl-FunctionCheckIndividualS-qNWf7JYCZBBM".to_string(),
log_stream_name: Some("2024/06/30/[39]3ca88f3a2fff4810b2de52cf027d0a40".to_string()),
start: Some(-1800000),
end: None,
filter_pattern: None
};
let url = cloudwatch_logs_url::create_url_log_events(&props);
Options for URL generation are passed using Struct PropsCreateUrlLogEvents. See the Struct PropsCreateUrlLogEvents documentation for more information.
MIT © sinofseven