def get_ami_ids(executable_users: Optional[Sequence[str]]=None, filters: Optional[Sequence[pulumi.InputType['GetAmiIdsFilterArgs']]]=None, name_regex: Optional[str]=None, owners: Optional[Sequence[str]]=None, sort_ascending: Optional[bool]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetAmiIdsResult:
    '\n    Use this data source to get a list of AMI IDs matching the specified criteria.\n\n    ## Example Usage\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    ubuntu = aws.ec2.get_ami_ids(filters=[aws.ec2.GetAmiIdsFilterArgs(\n            name="name",\n            values=["ubuntu/images/ubuntu-*-*-amd64-server-*"],\n        )],\n        owners=["099720109477"])\n    ```\n\n\n    :param Sequence[str] executable_users: Limit search to users with *explicit* launch\n           permission on  the image. Valid items are the numeric account ID or `self`.\n    :param Sequence[pulumi.InputType[\'GetAmiIdsFilterArgs\']] filters: One or more name/value pairs to filter off of. There\n           are several valid keys, for a full reference, check out\n           [describe-images in the AWS CLI reference][1].\n    :param str name_regex: A regex string to apply to the AMI list returned\n           by AWS. This allows more advanced filtering not supported from the AWS API.\n           This filtering is done locally on what AWS returns, and could have a performance\n           impact if the result is large. It is recommended to combine this with other\n           options to narrow down the list AWS returns.\n    :param Sequence[str] owners: List of AMI owners to limit search. At least 1 value must be specified. Valid values: an AWS account ID, `self` (the current account), or an AWS owner alias (e.g. `amazon`, `aws-marketplace`, `microsoft`).\n    :param bool sort_ascending: Used to sort AMIs by creation time.\n    '
    pulumi.log.warn('get_ami_ids is deprecated: aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds')
    __args__ = dict()
    __args__['executableUsers'] = executable_users
    __args__['filters'] = filters
    __args__['nameRegex'] = name_regex
    __args__['owners'] = owners
    __args__['sortAscending'] = sort_ascending
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:index/getAmiIds:getAmiIds', __args__, opts=opts, typ=GetAmiIdsResult).value
    return AwaitableGetAmiIdsResult(executable_users=__ret__.executable_users, filters=__ret__.filters, id=__ret__.id, ids=__ret__.ids, name_regex=__ret__.name_regex, owners=__ret__.owners, sort_ascending=__ret__.sort_ascending)
Use this data source to get a list of AMI IDs matching the specified criteria.

## Example Usage

```python
import pulumi
import pulumi_aws as aws

ubuntu = aws.ec2.get_ami_ids(filters=[aws.ec2.GetAmiIdsFilterArgs(
        name="name",
        values=["ubuntu/images/ubuntu-*-*-amd64-server-*"],
    )],
    owners=["099720109477"])
```


:param Sequence[str] executable_users: Limit search to users with *explicit* launch
       permission on  the image. Valid items are the numeric account ID or `self`.
:param Sequence[pulumi.InputType['GetAmiIdsFilterArgs']] filters: One or more name/value pairs to filter off of. There
       are several valid keys, for a full reference, check out
       [describe-images in the AWS CLI reference][1].
:param str name_regex: A regex string to apply to the AMI list returned
       by AWS. This allows more advanced filtering not supported from the AWS API.
       This filtering is done locally on what AWS returns, and could have a performance
       impact if the result is large. It is recommended to combine this with other
       options to narrow down the list AWS returns.
:param Sequence[str] owners: List of AMI owners to limit search. At least 1 value must be specified. Valid values: an AWS account ID, `self` (the current account), or an AWS owner alias (e.g. `amazon`, `aws-marketplace`, `microsoft`).
:param bool sort_ascending: Used to sort AMIs by creation time.
def get_ami_ids(executable_users: Optional[Sequence[str]]=None, filters: Optional[Sequence[pulumi.InputType['GetAmiIdsFilterArgs']]]=None, name_regex: Optional[str]=None, owners: Optional[Sequence[str]]=None, sort_ascending: Optional[bool]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetAmiIdsResult:
    '\n    Use this data source to get a list of AMI IDs matching the specified criteria.\n\n    ## Example Usage\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    ubuntu = aws.ec2.get_ami_ids(filters=[aws.ec2.GetAmiIdsFilterArgs(\n            name="name",\n            values=["ubuntu/images/ubuntu-*-*-amd64-server-*"],\n        )],\n        owners=["099720109477"])\n    ```\n\n\n    :param Sequence[str] executable_users: Limit search to users with *explicit* launch\n           permission on  the image. Valid items are the numeric account ID or `self`.\n    :param Sequence[pulumi.InputType[\'GetAmiIdsFilterArgs\']] filters: One or more name/value pairs to filter off of. There\n           are several valid keys, for a full reference, check out\n           [describe-images in the AWS CLI reference][1].\n    :param str name_regex: A regex string to apply to the AMI list returned\n           by AWS. This allows more advanced filtering not supported from the AWS API.\n           This filtering is done locally on what AWS returns, and could have a performance\n           impact if the result is large. It is recommended to combine this with other\n           options to narrow down the list AWS returns.\n    :param Sequence[str] owners: List of AMI owners to limit search. At least 1 value must be specified. Valid values: an AWS account ID, `self` (the current account), or an AWS owner alias (e.g. `amazon`, `aws-marketplace`, `microsoft`).\n    :param bool sort_ascending: Used to sort AMIs by creation time.\n    '
    pulumi.log.warn('get_ami_ids is deprecated: aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds')
    __args__ = dict()
    __args__['executableUsers'] = executable_users
    __args__['filters'] = filters
    __args__['nameRegex'] = name_regex
    __args__['owners'] = owners
    __args__['sortAscending'] = sort_ascending
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:index/getAmiIds:getAmiIds', __args__, opts=opts, typ=GetAmiIdsResult).value
    return AwaitableGetAmiIdsResult(executable_users=__ret__.executable_users, filters=__ret__.filters, id=__ret__.id, ids=__ret__.ids, name_regex=__ret__.name_regex, owners=__ret__.owners, sort_ascending=__ret__.sort_ascending)