2 releases (1 stable)

1.0.0 Aug 6, 2024
0.1.0 Aug 5, 2024

#1490 in Network programming

Download history 218/week @ 2024-08-02 22/week @ 2024-08-09

240 downloads per month

MIT license

13KB
140 lines

cloudwatch_logs_url CratesIOBadge DocsRsBadge

Generate AWS CloudWatch Logs URL


[dependencies]
cloudwatch_logs_url = "1"

Examples

create_url_log_group()

let url = cloudwatch_logs_url::create_url_log_group(
    "ap-northeast-1",
    "/aws/lambda/luciferous-devio-index-cl-FunctionCheckIndividualS-qNWf7JYCZBBM"
);

create_url_log_events()

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.

License

MIT © sinofseven

Dependencies

~16KB