#[non_exhaustive]pub struct DaemonTaskDefinition {Show 15 fields
pub daemon_task_definition_arn: Option<String>,
pub family: Option<String>,
pub revision: i32,
pub task_role_arn: Option<String>,
pub execution_role_arn: Option<String>,
pub container_definitions: Option<Vec<DaemonContainerDefinition>>,
pub volumes: Option<Vec<DaemonVolume>>,
pub cpu: Option<String>,
pub memory: Option<String>,
pub status: Option<DaemonTaskDefinitionStatus>,
pub registered_at: Option<DateTime>,
pub delete_requested_at: Option<DateTime>,
pub registered_by: Option<String>,
pub pid_mode: Option<DaemonPidMode>,
pub ipc_mode: Option<DaemonIpcMode>,
}Expand description
The details of a daemon task definition. A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.
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.daemon_task_definition_arn: Option<String>The full Amazon Resource Name (ARN) of the daemon task definition.
family: Option<String>The name of a family that this daemon task definition is registered to.
revision: i32The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is 1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.
task_role_arn: Option<String>The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
execution_role_arn: Option<String>The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
container_definitions: Option<Vec<DaemonContainerDefinition>>A list of container definitions in JSON format that describe the containers that make up the daemon task.
volumes: Option<Vec<DaemonVolume>>The list of data volume definitions for the daemon task.
cpu: Option<String>The number of CPU units used by the daemon task.
memory: Option<String>The amount of memory (in MiB) used by the daemon task.
status: Option<DaemonTaskDefinitionStatus>The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.
registered_at: Option<DateTime>The Unix timestamp for the time when the daemon task definition was registered.
delete_requested_at: Option<DateTime>The Unix timestamp for the time when the daemon task definition delete was requested.
registered_by: Option<String>The principal that registered the daemon task definition.
pid_mode: Option<DaemonPidMode>The PID namespace mode for the daemon. The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. If shared is specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that use pidMode: "host" or other daemons that use pidMode: "shared".
ipc_mode: Option<DaemonIpcMode>The IPC namespace mode for the daemon. The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. If shared is specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that use ipcMode: "host" or other daemons that use ipcMode: "shared".
Implementations§
Source§impl DaemonTaskDefinition
impl DaemonTaskDefinition
Sourcepub fn daemon_task_definition_arn(&self) -> Option<&str>
pub fn daemon_task_definition_arn(&self) -> Option<&str>
The full Amazon Resource Name (ARN) of the daemon task definition.
Sourcepub fn family(&self) -> Option<&str>
pub fn family(&self) -> Option<&str>
The name of a family that this daemon task definition is registered to.
Sourcepub fn revision(&self) -> i32
pub fn revision(&self) -> i32
The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is 1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.
Sourcepub fn task_role_arn(&self) -> Option<&str>
pub fn task_role_arn(&self) -> Option<&str>
The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
Sourcepub fn execution_role_arn(&self) -> Option<&str>
pub fn execution_role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
Sourcepub fn container_definitions(&self) -> &[DaemonContainerDefinition]
pub fn container_definitions(&self) -> &[DaemonContainerDefinition]
A list of container definitions in JSON format that describe the containers that make up the daemon task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .container_definitions.is_none().
Sourcepub fn volumes(&self) -> &[DaemonVolume]
pub fn volumes(&self) -> &[DaemonVolume]
The list of data volume definitions for the daemon task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .volumes.is_none().
Sourcepub fn status(&self) -> Option<&DaemonTaskDefinitionStatus>
pub fn status(&self) -> Option<&DaemonTaskDefinitionStatus>
The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.
Sourcepub fn registered_at(&self) -> Option<&DateTime>
pub fn registered_at(&self) -> Option<&DateTime>
The Unix timestamp for the time when the daemon task definition was registered.
Sourcepub fn delete_requested_at(&self) -> Option<&DateTime>
pub fn delete_requested_at(&self) -> Option<&DateTime>
The Unix timestamp for the time when the daemon task definition delete was requested.
Sourcepub fn registered_by(&self) -> Option<&str>
pub fn registered_by(&self) -> Option<&str>
The principal that registered the daemon task definition.
Sourcepub fn pid_mode(&self) -> Option<&DaemonPidMode>
pub fn pid_mode(&self) -> Option<&DaemonPidMode>
The PID namespace mode for the daemon. The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. If shared is specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that use pidMode: "host" or other daemons that use pidMode: "shared".
Sourcepub fn ipc_mode(&self) -> Option<&DaemonIpcMode>
pub fn ipc_mode(&self) -> Option<&DaemonIpcMode>
The IPC namespace mode for the daemon. The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. If shared is specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that use ipcMode: "host" or other daemons that use ipcMode: "shared".
Source§impl DaemonTaskDefinition
impl DaemonTaskDefinition
Sourcepub fn builder() -> DaemonTaskDefinitionBuilder
pub fn builder() -> DaemonTaskDefinitionBuilder
Creates a new builder-style object to manufacture DaemonTaskDefinition.
Source§impl DaemonTaskDefinition
impl DaemonTaskDefinition
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for DaemonTaskDefinition
impl Clone for DaemonTaskDefinition
Source§impl Debug for DaemonTaskDefinition
impl Debug for DaemonTaskDefinition
Source§impl PartialEq for DaemonTaskDefinition
impl PartialEq for DaemonTaskDefinition
Source§impl SerializableStruct for DaemonTaskDefinition
impl SerializableStruct for DaemonTaskDefinition
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
impl StructuralPartialEq for DaemonTaskDefinition
Auto Trait Implementations§
impl Forget for DaemonTaskDefinition
impl Freeze for DaemonTaskDefinition
impl Move for DaemonTaskDefinition
impl RefUnwindSafe for DaemonTaskDefinition
impl Send for DaemonTaskDefinition
impl Sync for DaemonTaskDefinition
impl Unpin for DaemonTaskDefinition
impl UnsafeUnpin for DaemonTaskDefinition
impl UnwindSafe for DaemonTaskDefinition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);