Sha256: 499cf3a10215a5640fbb8c76490a23f5652156b653b082f0ba75f49e0ee34caf
Contents?: true
Size: 585 Bytes
Versions: 12
Compression:
Stored size: 585 Bytes
Contents
module Awspec::Type class EcsService < Base aws_resource Aws::ECS::Types::Service def initialize(service) super @display_name = service end def resource_via_client @resource_via_client ||= find_ecs_service(@display_name) end def id @id ||= resource_via_client.service_name if resource_via_client end def active? resource_via_client.status == 'ACTIVE' end def draining? resource_via_client.status == 'DRAINING' end def inactive? resource_via_client.status == 'INACTIVE' end end end
Version data entries
12 entries across 12 versions & 1 rubygems