Struct aws_sdk_codepipeline::types::RuleDeclaration
source · #[non_exhaustive]pub struct RuleDeclaration {
pub name: String,
pub rule_type_id: Option<RuleTypeId>,
pub configuration: Option<HashMap<String, String>>,
pub input_artifacts: Option<Vec<InputArtifact>>,
pub role_arn: Option<String>,
pub region: Option<String>,
pub timeout_in_minutes: Option<i32>,
}
Expand description
Represents information about the rule to be created for an associated condition. An example would be creating a new rule for an entry condition, such as a rule that checks for a test result before allowing the run to enter the deployment stage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The name of the rule that is created for the condition, such as CheckAllResults.
rule_type_id: Option<RuleTypeId>
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
configuration: Option<HashMap<String, String>>
The action configuration fields for the rule.
input_artifacts: Option<Vec<InputArtifact>>
The input artifacts fields for the rule, such as specifying an input file for the rule.
role_arn: Option<String>
The pipeline role ARN associated with the rule.
region: Option<String>
The Region for the condition associated with the rule.
timeout_in_minutes: Option<i32>
The action timeout for the rule.
Implementations§
source§impl RuleDeclaration
impl RuleDeclaration
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the rule that is created for the condition, such as CheckAllResults.
sourcepub fn rule_type_id(&self) -> Option<&RuleTypeId>
pub fn rule_type_id(&self) -> Option<&RuleTypeId>
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
sourcepub fn configuration(&self) -> Option<&HashMap<String, String>>
pub fn configuration(&self) -> Option<&HashMap<String, String>>
The action configuration fields for the rule.
sourcepub fn input_artifacts(&self) -> &[InputArtifact]
pub fn input_artifacts(&self) -> &[InputArtifact]
The input artifacts fields for the rule, such as specifying an input file for the rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_artifacts.is_none()
.
sourcepub fn timeout_in_minutes(&self) -> Option<i32>
pub fn timeout_in_minutes(&self) -> Option<i32>
The action timeout for the rule.
source§impl RuleDeclaration
impl RuleDeclaration
sourcepub fn builder() -> RuleDeclarationBuilder
pub fn builder() -> RuleDeclarationBuilder
Creates a new builder-style object to manufacture RuleDeclaration
.
Trait Implementations§
source§impl Clone for RuleDeclaration
impl Clone for RuleDeclaration
source§fn clone(&self) -> RuleDeclaration
fn clone(&self) -> RuleDeclaration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleDeclaration
impl Debug for RuleDeclaration
source§impl PartialEq for RuleDeclaration
impl PartialEq for RuleDeclaration
impl StructuralPartialEq for RuleDeclaration
Auto Trait Implementations§
impl Freeze for RuleDeclaration
impl RefUnwindSafe for RuleDeclaration
impl Send for RuleDeclaration
impl Sync for RuleDeclaration
impl Unpin for RuleDeclaration
impl UnwindSafe for RuleDeclaration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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