#[non_exhaustive]pub struct AWSIntegrationUpdate {
pub credentials: Option<AWSCredentialsUpdate>,
pub type_: AWSIntegrationType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The definition of AWSIntegrationUpdate
object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.credentials: Option<AWSCredentialsUpdate>
The definition of AWSCredentialsUpdate
object.
type_: AWSIntegrationType
The definition of AWSIntegrationType
object.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl AWSIntegrationUpdate
impl AWSIntegrationUpdate
Sourcepub fn new(type_: AWSIntegrationType) -> AWSIntegrationUpdate
pub fn new(type_: AWSIntegrationType) -> AWSIntegrationUpdate
Examples found in repository?
examples/v2_action-connection_UpdateActionConnection.rs (line 22)
17async fn main() {
18 let body = UpdateActionConnectionRequest::new(ActionConnectionDataUpdate::new(
19 ActionConnectionAttributesUpdate::new()
20 .integration(ActionConnectionIntegrationUpdate::AWSIntegrationUpdate(
21 Box::new(
22 AWSIntegrationUpdate::new(AWSIntegrationType::AWS).credentials(
23 AWSCredentialsUpdate::AWSAssumeRoleUpdate(Box::new(
24 AWSAssumeRoleUpdate::new(AWSAssumeRoleType::AWSASSUMEROLE)
25 .account_id("123456789123".to_string())
26 .role("MyRoleUpdated".to_string()),
27 )),
28 ),
29 ),
30 ))
31 .name("Cassette Connection".to_string()),
32 ActionConnectionDataType::ACTION_CONNECTION,
33 ));
34 let configuration = datadog::Configuration::new();
35 let api = ActionConnectionAPI::with_config(configuration);
36 let resp = api
37 .update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d".to_string(), body)
38 .await;
39 if let Ok(value) = resp {
40 println!("{:#?}", value);
41 } else {
42 println!("{:#?}", resp.unwrap_err());
43 }
44}
Sourcepub fn credentials(self, value: AWSCredentialsUpdate) -> Self
pub fn credentials(self, value: AWSCredentialsUpdate) -> Self
Examples found in repository?
examples/v2_action-connection_UpdateActionConnection.rs (lines 22-28)
17async fn main() {
18 let body = UpdateActionConnectionRequest::new(ActionConnectionDataUpdate::new(
19 ActionConnectionAttributesUpdate::new()
20 .integration(ActionConnectionIntegrationUpdate::AWSIntegrationUpdate(
21 Box::new(
22 AWSIntegrationUpdate::new(AWSIntegrationType::AWS).credentials(
23 AWSCredentialsUpdate::AWSAssumeRoleUpdate(Box::new(
24 AWSAssumeRoleUpdate::new(AWSAssumeRoleType::AWSASSUMEROLE)
25 .account_id("123456789123".to_string())
26 .role("MyRoleUpdated".to_string()),
27 )),
28 ),
29 ),
30 ))
31 .name("Cassette Connection".to_string()),
32 ActionConnectionDataType::ACTION_CONNECTION,
33 ));
34 let configuration = datadog::Configuration::new();
35 let api = ActionConnectionAPI::with_config(configuration);
36 let resp = api
37 .update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d".to_string(), body)
38 .await;
39 if let Ok(value) = resp {
40 println!("{:#?}", value);
41 } else {
42 println!("{:#?}", resp.unwrap_err());
43 }
44}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for AWSIntegrationUpdate
impl Clone for AWSIntegrationUpdate
Source§fn clone(&self) -> AWSIntegrationUpdate
fn clone(&self) -> AWSIntegrationUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AWSIntegrationUpdate
impl Debug for AWSIntegrationUpdate
Source§impl<'de> Deserialize<'de> for AWSIntegrationUpdate
impl<'de> Deserialize<'de> for AWSIntegrationUpdate
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AWSIntegrationUpdate
impl PartialEq for AWSIntegrationUpdate
Source§impl Serialize for AWSIntegrationUpdate
impl Serialize for AWSIntegrationUpdate
impl StructuralPartialEq for AWSIntegrationUpdate
Auto Trait Implementations§
impl Freeze for AWSIntegrationUpdate
impl RefUnwindSafe for AWSIntegrationUpdate
impl Send for AWSIntegrationUpdate
impl Sync for AWSIntegrationUpdate
impl Unpin for AWSIntegrationUpdate
impl UnwindSafe for AWSIntegrationUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more