Struct aws_sdk_ssm::operation::put_compliance_items::builders::PutComplianceItemsInputBuilder
source · #[non_exhaustive]pub struct PutComplianceItemsInputBuilder { /* private fields */ }
Expand description
A builder for PutComplianceItemsInput
.
Implementations§
source§impl PutComplianceItemsInputBuilder
impl PutComplianceItemsInputBuilder
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
Specify an ID for this resource. For a managed node, this is the node ID.
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
Specify an ID for this resource. For a managed node, this is the node ID.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
Specify an ID for this resource. For a managed node, this is the node ID.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
Specify the type of resource. ManagedInstance
is currently the only supported resource type.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
Specify the type of resource. ManagedInstance
is currently the only supported resource type.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
Specify the type of resource. ManagedInstance
is currently the only supported resource type.
sourcepub fn compliance_type(self, input: impl Into<String>) -> Self
pub fn compliance_type(self, input: impl Into<String>) -> Self
Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string
.
sourcepub fn set_compliance_type(self, input: Option<String>) -> Self
pub fn set_compliance_type(self, input: Option<String>) -> Self
Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string
.
sourcepub fn get_compliance_type(&self) -> &Option<String>
pub fn get_compliance_type(&self) -> &Option<String>
Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string
.
sourcepub fn execution_summary(self, input: ComplianceExecutionSummary) -> Self
pub fn execution_summary(self, input: ComplianceExecutionSummary) -> Self
A summary of the call execution that includes an execution ID, the type of execution (for example, Command
), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'
sourcepub fn set_execution_summary(
self,
input: Option<ComplianceExecutionSummary>
) -> Self
pub fn set_execution_summary( self, input: Option<ComplianceExecutionSummary> ) -> Self
A summary of the call execution that includes an execution ID, the type of execution (for example, Command
), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'
sourcepub fn get_execution_summary(&self) -> &Option<ComplianceExecutionSummary>
pub fn get_execution_summary(&self) -> &Option<ComplianceExecutionSummary>
A summary of the call execution that includes an execution ID, the type of execution (for example, Command
), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'
sourcepub fn items(self, input: ComplianceItemEntry) -> Self
pub fn items(self, input: ComplianceItemEntry) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items
includes information about the PatchSeverity, Classification, and so on.
sourcepub fn set_items(self, input: Option<Vec<ComplianceItemEntry>>) -> Self
pub fn set_items(self, input: Option<Vec<ComplianceItemEntry>>) -> Self
Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items
includes information about the PatchSeverity, Classification, and so on.
sourcepub fn get_items(&self) -> &Option<Vec<ComplianceItemEntry>>
pub fn get_items(&self) -> &Option<Vec<ComplianceItemEntry>>
Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items
includes information about the PatchSeverity, Classification, and so on.
sourcepub fn item_content_hash(self, input: impl Into<String>) -> Self
pub fn item_content_hash(self, input: impl Into<String>) -> Self
MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.
sourcepub fn set_item_content_hash(self, input: Option<String>) -> Self
pub fn set_item_content_hash(self, input: Option<String>) -> Self
MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.
sourcepub fn get_item_content_hash(&self) -> &Option<String>
pub fn get_item_content_hash(&self) -> &Option<String>
MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.
sourcepub fn upload_type(self, input: ComplianceUploadType) -> Self
pub fn upload_type(self, input: ComplianceUploadType) -> Self
The mode for uploading compliance items. You can specify COMPLETE
or PARTIAL
. In COMPLETE
mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.
In PARTIAL
mode, the system overwrites compliance information for a specific association. The association must be configured with SyncCompliance
set to MANUAL
. By default, all requests use COMPLETE
mode.
This attribute is only valid for association compliance.
sourcepub fn set_upload_type(self, input: Option<ComplianceUploadType>) -> Self
pub fn set_upload_type(self, input: Option<ComplianceUploadType>) -> Self
The mode for uploading compliance items. You can specify COMPLETE
or PARTIAL
. In COMPLETE
mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.
In PARTIAL
mode, the system overwrites compliance information for a specific association. The association must be configured with SyncCompliance
set to MANUAL
. By default, all requests use COMPLETE
mode.
This attribute is only valid for association compliance.
sourcepub fn get_upload_type(&self) -> &Option<ComplianceUploadType>
pub fn get_upload_type(&self) -> &Option<ComplianceUploadType>
The mode for uploading compliance items. You can specify COMPLETE
or PARTIAL
. In COMPLETE
mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request.
In PARTIAL
mode, the system overwrites compliance information for a specific association. The association must be configured with SyncCompliance
set to MANUAL
. By default, all requests use COMPLETE
mode.
This attribute is only valid for association compliance.
sourcepub fn build(self) -> Result<PutComplianceItemsInput, BuildError>
pub fn build(self) -> Result<PutComplianceItemsInput, BuildError>
Consumes the builder and constructs a PutComplianceItemsInput
.
source§impl PutComplianceItemsInputBuilder
impl PutComplianceItemsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutComplianceItemsOutput, SdkError<PutComplianceItemsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutComplianceItemsOutput, SdkError<PutComplianceItemsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutComplianceItemsInputBuilder
impl Clone for PutComplianceItemsInputBuilder
source§fn clone(&self) -> PutComplianceItemsInputBuilder
fn clone(&self) -> PutComplianceItemsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutComplianceItemsInputBuilder
impl Default for PutComplianceItemsInputBuilder
source§fn default() -> PutComplianceItemsInputBuilder
fn default() -> PutComplianceItemsInputBuilder
source§impl PartialEq for PutComplianceItemsInputBuilder
impl PartialEq for PutComplianceItemsInputBuilder
source§fn eq(&self, other: &PutComplianceItemsInputBuilder) -> bool
fn eq(&self, other: &PutComplianceItemsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutComplianceItemsInputBuilder
Auto Trait Implementations§
impl Freeze for PutComplianceItemsInputBuilder
impl RefUnwindSafe for PutComplianceItemsInputBuilder
impl Send for PutComplianceItemsInputBuilder
impl Sync for PutComplianceItemsInputBuilder
impl Unpin for PutComplianceItemsInputBuilder
impl UnwindSafe for PutComplianceItemsInputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more