ServiceResource / Collection / stacks

stacks#

OpsWorks.ServiceResource.stacks#

A collection of Stack resources.A Stack Collection will include all resources by default, and extreme caution should be taken when performing actions on all resources.

all()#

Creates an iterable of all Stack resources in the collection.

See also: AWS API Documentation

Request Syntax

stack_iterator = opsworks.stacks.all()
Return type:

list(opsworks.Stack)

Returns:

A list of Stack resources

filter(**kwargs)#

Creates an iterable of all Stack resources in the collection filtered by kwargs passed to method. A Stack collection will include all resources by default if no filters are provided, and extreme caution should be taken when performing actions on all resources.

See also: AWS API Documentation

Request Syntax

stack_iterator = opsworks.stacks.filter(
    StackIds=[
        'string',
    ]
)
Parameters:

StackIds (list) –

An array of stack IDs that specify the stacks to be described. If you omit this parameter, DescribeStacks returns a description of every stack.

  • (string) –

Return type:

list(opsworks.Stack)

Returns:

A list of Stack resources

limit(**kwargs)#

Creates an iterable up to a specified amount of Stack resources in the collection.

See also: AWS API Documentation

Request Syntax

stack_iterator = opsworks.stacks.limit(
    count=123
)
Parameters:

count (integer) – The limit to the number of resources in the iterable.

Return type:

list(opsworks.Stack)

Returns:

A list of Stack resources

page_size(**kwargs)#

Creates an iterable of all Stack resources in the collection, but limits the number of items returned by each service call by the specified amount.

See also: AWS API Documentation

Request Syntax

stack_iterator = opsworks.stacks.page_size(
    count=123
)
Parameters:

count (integer) – The number of items returned by each service call

Return type:

list(opsworks.Stack)

Returns:

A list of Stack resources