Class: AWSCDK::ECS::CfnDaemonProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_daemon_props.rb

Overview

Properties for defining a CfnDaemon.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capacity_provider_arns: nil, cluster_arn: nil, daemon_name: nil, daemon_task_definition_arn: nil, deployment_configuration: nil, enable_ecs_managed_tags: nil, enable_execute_command: nil, propagate_tags: nil, tags: nil) ⇒ CfnDaemonProps

Returns a new instance of CfnDaemonProps.

Parameters:

  • capacity_provider_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Names (ARNs) of the capacity providers associated with the daemon.

  • cluster_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the cluster that the daemon is running in.

  • daemon_name (String, nil) (defaults to: nil)
  • daemon_task_definition_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the daemon task definition used by this revision.

  • deployment_configuration (AWSCDK::IResolvable, AWSCDK::ECS::CfnDaemon::DaemonDeploymentConfigurationProperty, nil) (defaults to: nil)

    Optional deployment parameters that control how a daemon rolls out updates across container instances.

  • enable_ecs_managed_tags (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether Amazon ECS managed tags are turned on for the daemon tasks.

  • enable_execute_command (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether the execute command functionality is turned on for the daemon tasks.

  • propagate_tags (String, nil) (defaults to: nil)

    Specifies whether tags are propagated from the daemon to the daemon tasks.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'ecs/cfn_daemon_props.rb', line 18

def initialize(capacity_provider_arns: nil, cluster_arn: nil, daemon_name: nil, daemon_task_definition_arn: nil, deployment_configuration: nil, enable_ecs_managed_tags: nil, enable_execute_command: nil, propagate_tags: nil, tags: nil)
  @capacity_provider_arns = capacity_provider_arns
  Jsii::Type.check_type(@capacity_provider_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "capacityProviderArns") unless @capacity_provider_arns.nil?
  @cluster_arn = cluster_arn
  Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn") unless @cluster_arn.nil?
  @daemon_name = daemon_name
  Jsii::Type.check_type(@daemon_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "daemonName") unless @daemon_name.nil?
  @daemon_task_definition_arn = daemon_task_definition_arn
  Jsii::Type.check_type(@daemon_task_definition_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "daemonTaskDefinitionArn") unless @daemon_task_definition_arn.nil?
  @deployment_configuration = deployment_configuration.is_a?(Hash) ? ::AWSCDK::ECS::CfnDaemon::DaemonDeploymentConfigurationProperty.new(**deployment_configuration.transform_keys(&:to_sym)) : deployment_configuration
  Jsii::Type.check_type(@deployment_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuRGFlbW9uLkRhZW1vbkRlcGxveW1lbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "deploymentConfiguration") unless @deployment_configuration.nil?
  @enable_ecs_managed_tags = enable_ecs_managed_tags
  Jsii::Type.check_type(@enable_ecs_managed_tags, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableEcsManagedTags") unless @enable_ecs_managed_tags.nil?
  @enable_execute_command = enable_execute_command
  Jsii::Type.check_type(@enable_execute_command, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableExecuteCommand") unless @enable_execute_command.nil?
  @propagate_tags = propagate_tags
  Jsii::Type.check_type(@propagate_tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propagateTags") unless @propagate_tags.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#capacity_provider_arnsArray<String>? (readonly)

The Amazon Resource Names (ARNs) of the capacity providers associated with the daemon.



43
44
45
# File 'ecs/cfn_daemon_props.rb', line 43

def capacity_provider_arns
  @capacity_provider_arns
end

#cluster_arnString? (readonly)

The Amazon Resource Name (ARN) of the cluster that the daemon is running in.



48
49
50
# File 'ecs/cfn_daemon_props.rb', line 48

def cluster_arn
  @cluster_arn
end

#daemon_nameString? (readonly)



51
52
53
# File 'ecs/cfn_daemon_props.rb', line 51

def daemon_name
  @daemon_name
end

#daemon_task_definition_arnString? (readonly)

The Amazon Resource Name (ARN) of the daemon task definition used by this revision.



56
57
58
# File 'ecs/cfn_daemon_props.rb', line 56

def daemon_task_definition_arn
  @daemon_task_definition_arn
end

#deployment_configurationAWSCDK::IResolvable, ... (readonly)

Optional deployment parameters that control how a daemon rolls out updates across container instances.



61
62
63
# File 'ecs/cfn_daemon_props.rb', line 61

def deployment_configuration
  @deployment_configuration
end

#enable_ecs_managed_tagsBoolean, ... (readonly)

Specifies whether Amazon ECS managed tags are turned on for the daemon tasks.



66
67
68
# File 'ecs/cfn_daemon_props.rb', line 66

def enable_ecs_managed_tags
  @enable_ecs_managed_tags
end

#enable_execute_commandBoolean, ... (readonly)

Specifies whether the execute command functionality is turned on for the daemon tasks.



71
72
73
# File 'ecs/cfn_daemon_props.rb', line 71

def enable_execute_command
  @enable_execute_command
end

#propagate_tagsString? (readonly)

Specifies whether tags are propagated from the daemon to the daemon tasks.



76
77
78
# File 'ecs/cfn_daemon_props.rb', line 76

def propagate_tags
  @propagate_tags
end

#tagsArray<AWSCDK::CfnTag>? (readonly)



79
80
81
# File 'ecs/cfn_daemon_props.rb', line 79

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'ecs/cfn_daemon_props.rb', line 81

def self.jsii_properties
  {
    :capacity_provider_arns => "capacityProviderArns",
    :cluster_arn => "clusterArn",
    :daemon_name => "daemonName",
    :daemon_task_definition_arn => "daemonTaskDefinitionArn",
    :deployment_configuration => "deploymentConfiguration",
    :enable_ecs_managed_tags => "enableEcsManagedTags",
    :enable_execute_command => "enableExecuteCommand",
    :propagate_tags => "propagateTags",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'ecs/cfn_daemon_props.rb', line 95

def to_jsii
  result = {}
  result.merge!({
    "capacityProviderArns" => @capacity_provider_arns,
    "clusterArn" => @cluster_arn,
    "daemonName" => @daemon_name,
    "daemonTaskDefinitionArn" => @daemon_task_definition_arn,
    "deploymentConfiguration" => @deployment_configuration,
    "enableEcsManagedTags" => @enable_ecs_managed_tags,
    "enableExecuteCommand" => @enable_execute_command,
    "propagateTags" => @propagate_tags,
    "tags" => @tags,
  })
  result.compact
end