You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ECS::Types::DeleteServiceRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass DeleteServiceRequest data as a hash:

{
  cluster: "String",
  service: "String", # required
  force: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#clusterString

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to delete. If you do not specify a cluster, the default cluster is assumed.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1757

class DeleteServiceRequest < Struct.new(
  :cluster,
  :service,
  :force)
  include Aws::Structure
end

#forceBoolean

If true, allows you to delete a service even if it has not been scaled down to zero tasks. It is only necessary to use this if the service is using the REPLICA scheduling strategy.

Returns:

  • (Boolean)


1757
1758
1759
1760
1761
1762
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1757

class DeleteServiceRequest < Struct.new(
  :cluster,
  :service,
  :force)
  include Aws::Structure
end

#serviceString

The name of the service to delete.

Returns:

  • (String)


1757
1758
1759
1760
1761
1762
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1757

class DeleteServiceRequest < Struct.new(
  :cluster,
  :service,
  :force)
  include Aws::Structure
end