[][src]Struct aws_parameter_update::Parameter

pub struct Parameter {
    pub name: String,
    pub value: String,
    pub description: String,
    pub is_secure: bool,
}

Parameter struct

Fields

name: String

name corresponds to the AWS parameter name

value: String

value is the parameter's value, stored as a String

description: String

description is extra text used to clarify the use of a parameter

is_secure: bool

'is_secure' toggles whether the parameter should be encrypted

Methods

impl Parameter[src]

pub fn update(&self, client: &SsmClient) -> Result<String, NoneError>[src]

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".to_string(),
    value: "value".to_string(),
    description: "description".to_string(),
    is_secure: true
};

match parameter.update(&client) {
    Ok(parameter_name) => println!("Parameter {} processed", parameter_name),
    Err(_error) => println!("Parameter not updated"),
}

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.