mirror of https://github.com/pulumi/pulumi.git
48 KiB
48 KiB
title: "getAmiIds" title_tag: "mypkg.getAmiIds" meta_desc: "Documentation for the mypkg.getAmiIds function with examples, input properties, output properties, and supporting types." layout: api no_edit_this_page: true
Deprecated: aws.getAmiIds has been deprecated in favor of aws.ec2.getAmiIds
Taken from pulumi-AWS to regress an issue
Using getAmiIds
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAmiIds(args: GetAmiIdsArgs, opts?: InvokeOptions): Promise<GetAmiIdsResult>
function getAmiIdsOutput(args: GetAmiIdsOutputArgs, opts?: InvokeOptions): Output<GetAmiIdsResult>
def get_ami_ids(executable_users: Optional[Sequence[str]] = None,
filters: Optional[Sequence[GetAmiIdsFilter]] = None,
name_regex: Optional[str] = None,
owners: Optional[Sequence[str]] = None,
sort_ascending: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetAmiIdsResult
def get_ami_ids_output(executable_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAmiIdsFilterArgs]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
owners: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
sort_ascending: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAmiIdsResult]
func GetAmiIds(ctx *Context, args *GetAmiIdsArgs, opts ...InvokeOption) (*GetAmiIdsResult, error)
func GetAmiIdsOutput(ctx *Context, args *GetAmiIdsOutputArgs, opts ...InvokeOption) GetAmiIdsResultOutput
> Note: This function is named GetAmiIds
in the Go SDK.
public static class GetAmiIds
{
public static Task<GetAmiIdsResult> InvokeAsync(GetAmiIdsArgs args, InvokeOptions? opts = null)
public static Output<GetAmiIdsResult> Invoke(GetAmiIdsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAmiIdsResult> getAmiIds(GetAmiIdsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mypkg:getAmiIds
arguments:
# arguments dictionary
The following arguments are supported:
- Owners List<string>
- 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
). -
Executable
Users List<string> - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. -
Filters
List<Get
Ami Ids Filter> - 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].
-
Name
Regex string - 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.
-
Sort
Ascending bool - Used to sort AMIs by creation time.
- Owners []string
- 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
). -
Executable
Users []string - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. -
Filters
[]Get
Ami Ids Filter - 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].
-
Name
Regex string - 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.
-
Sort
Ascending bool - Used to sort AMIs by creation time.
- owners List<String>
- 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
). -
executable
Users List<String> - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. -
filters
List<Get
Ami Ids Filter> - 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].
-
name
Regex String - 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.
-
sort
Ascending Boolean - Used to sort AMIs by creation time.
- owners string[]
- 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
). -
executable
Users string[] - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. -
filters
Get
Ami Ids Filter[] - 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].
-
name
Regex string - 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.
-
sort
Ascending boolean - Used to sort AMIs by creation time.
- owners Sequence[str]
- 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
). -
executable_
users Sequence[str] - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. -
filters
Sequence[Get
Ami Ids Filter] - 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].
-
name_
regex str - 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.
-
sort_
ascending bool - Used to sort AMIs by creation time.
- owners List<String>
- 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
). -
executable
Users List<String> - Limit search to users with explicit launch
permission on the image. Valid items are the numeric account ID or
self
. - filters List<Property Map>
- 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].
-
name
Regex String - 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.
-
sort
Ascending Boolean - Used to sort AMIs by creation time.
getAmiIds Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Owners List<string>
-
Executable
Users List<string> -
Filters
List<Get
Ami Ids Filter> -
Name
Regex string -
Sort
Ascending bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Owners []string
-
Executable
Users []string -
Filters
[]Get
Ami Ids Filter -
Name
Regex string -
Sort
Ascending bool
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- owners List<String>
-
executable
Users List<String> -
filters
List<Get
Ami Ids Filter> -
name
Regex String -
sort
Ascending Boolean
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- owners string[]
-
executable
Users string[] -
filters
Get
Ami Ids Filter[] -
name
Regex string -
sort
Ascending boolean
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- owners Sequence[str]
-
executable_
users Sequence[str] -
filters
Sequence[Get
Ami Ids Filter] -
name_
regex str -
sort_
ascending bool
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- owners List<String>
-
executable
Users List<String> - filters List<Property Map>
-
name
Regex String -
sort
Ascending Boolean
Supporting Types
GetAmiIdsFilter
Package Details
- Repository
- mypkg
- License