Skip to main content

aws_sdk_codecatalyst/
lib.rs

1#![allow(deprecated)]
2#![allow(unknown_lints)]
3#![allow(clippy::module_inception)]
4#![allow(clippy::upper_case_acronyms)]
5#![allow(clippy::large_enum_variant)]
6#![allow(clippy::wrong_self_convention)]
7#![allow(clippy::should_implement_trait)]
8#![allow(clippy::disallowed_names)]
9#![allow(clippy::vec_init_then_push)]
10#![allow(clippy::type_complexity)]
11#![allow(clippy::needless_return)]
12#![allow(clippy::derive_partial_eq_without_eq)]
13#![allow(clippy::result_large_err)]
14#![allow(clippy::unnecessary_map_on_constructor)]
15#![allow(clippy::useless_conversion)]
16#![allow(clippy::deprecated_semver)]
17#![allow(rustdoc::bare_urls)]
18#![allow(rustdoc::redundant_explicit_links)]
19#![allow(rustdoc::broken_intra_doc_links)]
20#![allow(rustdoc::invalid_html_tags)]
21#![forbid(unsafe_code)]
22#![warn(missing_docs)]
23#![cfg_attr(docsrs, feature(doc_cfg))]
24//! Welcome to the Amazon CodeCatalyst API reference. This reference provides descriptions of operations and data types for Amazon CodeCatalyst. You can use the Amazon CodeCatalyst API to work with the following objects.
25//!
26//! Spaces, by calling the following:
27//!   - DeleteSpace, which deletes a space.
28//!   - GetSpace, which returns information about a space.
29//!   - GetSubscription, which returns information about the Amazon Web Services account used for billing purposes and the billing plan for the space.
30//!   - ListSpaces, which retrieves a list of spaces.
31//!   - UpdateSpace, which changes one or more values for a space.
32//!
33//! Projects, by calling the following:
34//!   - CreateProject which creates a project in a specified space.
35//!   - GetProject, which returns information about a project.
36//!   - ListProjects, which retrieves a list of projects in a space.
37//!
38//! Users, by calling the following:
39//!   - GetUserDetails, which returns information about a user in Amazon CodeCatalyst.
40//!
41//! Source repositories, by calling the following:
42//!   - CreateSourceRepository, which creates an empty Git-based source repository in a specified project.
43//!   - CreateSourceRepositoryBranch, which creates a branch in a specified repository where you can work on code.
44//!   - DeleteSourceRepository, which deletes a source repository.
45//!   - GetSourceRepository, which returns information about a source repository.
46//!   - GetSourceRepositoryCloneUrls, which returns information about the URLs that can be used with a Git client to clone a source repository.
47//!   - ListSourceRepositories, which retrieves a list of source repositories in a project.
48//!   - ListSourceRepositoryBranches, which retrieves a list of branches in a source repository.
49//!
50//! Dev Environments and the Amazon Web Services Toolkits, by calling the following:
51//!   - CreateDevEnvironment, which creates a Dev Environment, where you can quickly work on the code stored in the source repositories of your project.
52//!   - DeleteDevEnvironment, which deletes a Dev Environment.
53//!   - GetDevEnvironment, which returns information about a Dev Environment.
54//!   - ListDevEnvironments, which retrieves a list of Dev Environments in a project.
55//!   - ListDevEnvironmentSessions, which retrieves a list of active Dev Environment sessions in a project.
56//!   - StartDevEnvironment, which starts a specified Dev Environment and puts it into an active state.
57//!   - StartDevEnvironmentSession, which starts a session to a specified Dev Environment.
58//!   - StopDevEnvironment, which stops a specified Dev Environment and puts it into an stopped state.
59//!   - StopDevEnvironmentSession, which stops a session for a specified Dev Environment.
60//!   - UpdateDevEnvironment, which changes one or more values for a Dev Environment.
61//!
62//! Workflows, by calling the following:
63//!   - GetWorkflow, which returns information about a workflow.
64//!   - GetWorkflowRun, which returns information about a specified run of a workflow.
65//!   - ListWorkflowRuns, which retrieves a list of runs of a specified workflow.
66//!   - ListWorkflows, which retrieves a list of workflows in a specified project.
67//!   - StartWorkflowRun, which starts a run of a specified workflow.
68//!
69//! Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:
70//!   - CreateAccessToken, which creates a personal access token (PAT) for the current user.
71//!   - DeleteAccessToken, which deletes a specified personal access token (PAT).
72//!   - ListAccessTokens, which lists all personal access tokens (PATs) associated with a user.
73//!   - ListEventLogs, which retrieves a list of events that occurred during a specified time period in a space.
74//!   - VerifySession, which verifies whether the calling user has a valid Amazon CodeCatalyst login and session.
75//!
76//! ## Getting Started
77//!
78//! > Examples are available for many services and operations, check out the
79//! > [usage examples](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/rustv1).
80//!
81//! The SDK provides one crate per AWS service. You must add [Tokio](https://crates.io/crates/tokio)
82//! as a dependency within your Rust project to execute asynchronous code. To add `aws-sdk-codecatalyst` to
83//! your project, add the following to your **Cargo.toml** file:
84//!
85//! ```toml
86//! [dependencies]
87//! aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
88//! aws-sdk-codecatalyst = "1.95.0"
89//! tokio = { version = "1", features = ["full"] }
90//! ```
91//!
92//! Then in code, a client can be created with the following:
93//!
94//! ```rust,no_run
95//! use aws_sdk_codecatalyst as codecatalyst;
96//!
97//! #[::tokio::main]
98//! async fn main() -> Result<(), codecatalyst::Error> {
99//!     let config = aws_config::load_from_env().await;
100//!     let client = aws_sdk_codecatalyst::Client::new(&config);
101//!
102//!     // ... make some calls with the client
103//!
104//!     Ok(())
105//! }
106//! ```
107//!
108//! See the [client documentation](https://docs.rs/aws-sdk-codecatalyst/latest/aws_sdk_codecatalyst/client/struct.Client.html)
109//! for information on what calls can be made, and the inputs and outputs for each of those calls.
110//!
111//! ## Using the SDK
112//!
113//! Until the SDK is released, we will be adding information about using the SDK to the
114//! [Developer Guide](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/welcome.html). Feel free to suggest
115//! additional sections for the guide by opening an issue and describing what you are trying to do.
116//!
117//! ## Getting Help
118//!
119//! * [GitHub discussions](https://github.com/awslabs/aws-sdk-rust/discussions) - For ideas, RFCs & general questions
120//! * [GitHub issues](https://github.com/awslabs/aws-sdk-rust/issues/new/choose) - For bug reports & feature requests
121//! * [Generated Docs (latest version)](https://awslabs.github.io/aws-sdk-rust/)
122//! * [Usage examples](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/rustv1)
123//!
124//!
125//! # Crate Organization
126//!
127//! The entry point for most customers will be [`Client`], which exposes one method for each API
128//! offered by Amazon CodeCatalyst. The return value of each of these methods is a "fluent builder",
129//! where the different inputs for that API are added by builder-style function call chaining,
130//! followed by calling `send()` to get a [`Future`](std::future::Future) that will result in
131//! either a successful output or a [`SdkError`](crate::error::SdkError).
132//!
133//! Some of these API inputs may be structs or enums to provide more complex structured information.
134//! These structs and enums live in [`types`](crate::types). There are some simpler types for
135//! representing data such as date times or binary blobs that live in [`primitives`](crate::primitives).
136//!
137//! All types required to configure a client via the [`Config`](crate::Config) struct live
138//! in [`config`](crate::config).
139//!
140//! The [`operation`](crate::operation) module has a submodule for every API, and in each submodule
141//! is the input, output, and error type for that API, as well as builders to construct each of those.
142//!
143//! There is a top-level [`Error`](crate::Error) type that encompasses all the errors that the
144//! client can return. Any other error type can be converted to this `Error` type via the
145//! [`From`](std::convert::From) trait.
146//!
147//! The other modules within this crate are not required for normal usage.
148
149// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
150pub use error_meta::Error;
151
152#[doc(inline)]
153pub use config::Config;
154
155/// Client for calling Amazon CodeCatalyst.
156/// ## Constructing a `Client`
157///
158/// A [`Config`] is required to construct a client. For most use cases, the [`aws-config`]
159/// crate should be used to automatically resolve this config using
160/// [`aws_config::load_from_env()`], since this will resolve an [`SdkConfig`] which can be shared
161/// across multiple different AWS SDK clients. This config resolution process can be customized
162/// by calling [`aws_config::from_env()`] instead, which returns a [`ConfigLoader`] that uses
163/// the [builder pattern] to customize the default config.
164///
165/// In the simplest case, creating a client looks as follows:
166/// ```rust,no_run
167/// # async fn wrapper() {
168/// let config = aws_config::load_from_env().await;
169/// let client = aws_sdk_codecatalyst::Client::new(&config);
170/// # }
171/// ```
172///
173/// Occasionally, SDKs may have additional service-specific values that can be set on the [`Config`] that
174/// is absent from [`SdkConfig`], or slightly different settings for a specific client may be desired.
175/// The [`Builder`](crate::config::Builder) struct implements `From<&SdkConfig>`, so setting these specific settings can be
176/// done as follows:
177///
178/// ```rust,no_run
179/// # async fn wrapper() {
180/// let sdk_config = ::aws_config::load_from_env().await;
181/// let config = aws_sdk_codecatalyst::config::Builder::from(&sdk_config)
182/// # /*
183///     .some_service_specific_setting("value")
184/// # */
185///     .build();
186/// # }
187/// ```
188///
189/// See the [`aws-config` docs] and [`Config`] for more information on customizing configuration.
190///
191/// _Note:_ Client construction is expensive due to connection thread pool initialization, and should
192/// be done once at application start-up.
193///
194/// [`Config`]: crate::Config
195/// [`ConfigLoader`]: https://docs.rs/aws-config/*/aws_config/struct.ConfigLoader.html
196/// [`SdkConfig`]: https://docs.rs/aws-config/*/aws_config/struct.SdkConfig.html
197/// [`aws-config` docs]: https://docs.rs/aws-config/*
198/// [`aws-config`]: https://crates.io/crates/aws-config
199/// [`aws_config::from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.from_env.html
200/// [`aws_config::load_from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.load_from_env.html
201/// [builder pattern]: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder
202/// # Using the `Client`
203///
204/// A client has a function for every operation that can be performed by the service.
205/// For example, the [`CreateAccessToken`](crate::operation::create_access_token) operation has
206/// a [`Client::create_access_token`], function which returns a builder for that operation.
207/// The fluent builder ultimately has a `send()` function that returns an async future that
208/// returns a result, as illustrated below:
209///
210/// ```rust,ignore
211/// let result = client.create_access_token()
212///     .name("example")
213///     .send()
214///     .await;
215/// ```
216///
217/// The underlying HTTP requests that get made by this can be modified with the `customize_operation`
218/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more
219/// information.
220pub mod client;
221
222/// Configuration for Amazon CodeCatalyst.
223pub mod config;
224
225/// Common errors and error handling utilities.
226pub mod error;
227
228mod error_meta;
229
230/// Information about this crate.
231pub mod meta;
232
233/// All operations that this crate can perform.
234pub mod operation;
235
236/// Primitives such as `Blob` or `DateTime` used by other types.
237pub mod primitives;
238
239/// Data structures used by operation inputs/outputs.
240pub mod types;
241
242pub(crate) mod client_idempotency_token;
243
244mod idempotency_token;
245
246mod observability_feature;
247
248pub(crate) mod protocol_serde;
249
250mod sdk_feature_tracker;
251
252mod serialization_settings;
253
254mod endpoint_lib;
255
256mod lens;
257
258mod serde_util;
259
260mod json_errors;
261
262#[doc(inline)]
263pub use client::Client;