pub struct PolicyAssignmentProperties {
pub display_name: Option<String>,
pub policy_definition_id: Option<String>,
pub scope: Option<String>,
pub not_scopes: Vec<String>,
pub parameters: Option<ParameterValues>,
pub description: Option<String>,
pub metadata: Option<Value>,
pub enforcement_mode: Option<EnforcementMode>,
pub non_compliance_messages: Vec<NonComplianceMessage>,
}
Expand description
The policy assignment properties.
Fields§
§display_name: Option<String>
The display name of the policy assignment.
policy_definition_id: Option<String>
The ID of the policy definition or policy set definition being assigned.
scope: Option<String>
The scope for the policy assignment.
not_scopes: Vec<String>
The policy’s excluded scopes.
parameters: Option<ParameterValues>
The parameter values for the policy rule. The keys are the parameter names.
description: Option<String>
This message will be part of response in case of policy violation.
metadata: Option<Value>
The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
enforcement_mode: Option<EnforcementMode>
The policy assignment enforcement mode. Possible values are Default and DoNotEnforce.
non_compliance_messages: Vec<NonComplianceMessage>
The messages that describe why a resource is non-compliant with the policy.
Implementations§
Trait Implementations§
source§impl Clone for PolicyAssignmentProperties
impl Clone for PolicyAssignmentProperties
source§fn clone(&self) -> PolicyAssignmentProperties
fn clone(&self) -> PolicyAssignmentProperties
Returns a copy 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 PolicyAssignmentProperties
impl Debug for PolicyAssignmentProperties
source§impl Default for PolicyAssignmentProperties
impl Default for PolicyAssignmentProperties
source§fn default() -> PolicyAssignmentProperties
fn default() -> PolicyAssignmentProperties
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PolicyAssignmentProperties
impl<'de> Deserialize<'de> for PolicyAssignmentProperties
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<PolicyAssignmentProperties> for PolicyAssignmentProperties
impl PartialEq<PolicyAssignmentProperties> for PolicyAssignmentProperties
source§fn eq(&self, other: &PolicyAssignmentProperties) -> bool
fn eq(&self, other: &PolicyAssignmentProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.