cloudwatch_logs_url

Crates.iocloudwatch_logs_url
lib.rscloudwatch_logs_url
version1.0.0
sourcesrc
created_at2024-08-05 18:17:04.289003
updated_at2024-08-06 09:11:17.130529
descriptiongenerate CloudWatch Logs URL
homepagehttps://github.com/sinofseven/cloudwatch_logs_url
repositoryhttps://github.com/sinofseven/cloudwatch_logs_url
max_upload_size
id1326378
size18,063
Yuta Natsume (sinofseven)

documentation

https://docs.rs/cloudwatch_logs_url

README

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

Commit count: 0

cargo fmt