pub struct Parameter {
pub name: String,
pub value: String,
pub description: String,
pub is_secure: bool,
}Expand description
Parameter struct
§Example
use aws_parameter_update::Parameter;
let parameter = Parameter {
name: "example_name".into(),
value: "example_value".into(),
description: "example_description".into(),
is_secure: false
};Fields§
§name: Stringname corresponds to the AWS parameter name
value: Stringvalue is the parameter’s value, stored as a String
description: Stringdescription is extra text used to clarify the use of a parameter
is_secure: bool‘is_secure’ toggles whether the parameter should be encrypted
Implementations§
Source§impl Parameter
impl Parameter
Sourcepub fn new<S>(name: S, value: S, description: S, is_secure: bool) -> Parameter
pub fn new<S>(name: S, value: S, description: S, is_secure: bool) -> Parameter
Creates a new parameter with arguments
§Example
use aws_parameter_update::Parameter;
let parameter = Parameter::new("test_name", "test_value", "test_description", true);Sourcepub async fn update(&self, client: &SsmClient) -> Result<String>
pub async fn update(&self, client: &SsmClient) -> Result<String>
Updates a parameter
§Example
use aws_parameter_update::Parameter;
use rusoto_core::Region;
use rusoto_ssm::SsmClient;
let client = SsmClient::new(Region::UsWest2);
let parameter = Parameter {
name: "name".into(),
value: "value".into(),
description: "description".into(),
is_secure: true
};
match tokio_test::block_on(parameter.update(&client)) {
Ok(parameter_name) => println!("Parameter {} processed", parameter_name),
Err(_error) => println!("Parameter not updated"),
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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