AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.appstream.getImage
Explore with Pulumi AI
Data source for managing an AWS AppStream 2.0 Image.
Using getImage
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 getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
function getImageOutput(args: GetImageOutputArgs, opts?: InvokeOptions): Output<GetImageResult>
def get_image(arn: Optional[str] = None,
most_recent: Optional[bool] = None,
name: Optional[str] = None,
name_regex: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(arn: Optional[pulumi.Input[str]] = None,
most_recent: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
func GetImage(ctx *Context, args *GetImageArgs, opts ...InvokeOption) (*GetImageResult, error)
func GetImageOutput(ctx *Context, args *GetImageOutputArgs, opts ...InvokeOption) GetImageResultOutput
> Note: This function is named GetImage
in the Go SDK.
public static class GetImage
{
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
public static Output<GetImageResult> Invoke(GetImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:appstream/getImage:getImage
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- Most
Recent bool - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- Name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- Name
Regex string - Regular expression name of the image being searched for. Cannot be used with arn or name.
- Type string
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
- Arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- Most
Recent bool - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- Name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- Name
Regex string - Regular expression name of the image being searched for. Cannot be used with arn or name.
- Type string
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
- arn String
- Arn of the image being searched for. Cannot be used with name_regex or name.
- most
Recent Boolean - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- name String
- Name of the image being searched for. Cannot be used with name_regex or arn.
- name
Regex String - Regular expression name of the image being searched for. Cannot be used with arn or name.
- type String
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
- arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- most
Recent boolean - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- name
Regex string - Regular expression name of the image being searched for. Cannot be used with arn or name.
- type string
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
- arn str
- Arn of the image being searched for. Cannot be used with name_regex or name.
- most_
recent bool - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- name str
- Name of the image being searched for. Cannot be used with name_regex or arn.
- name_
regex str - Regular expression name of the image being searched for. Cannot be used with arn or name.
- type str
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
- arn String
- Arn of the image being searched for. Cannot be used with name_regex or name.
- most
Recent Boolean - Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
- name String
- Name of the image being searched for. Cannot be used with name_regex or arn.
- name
Regex String - Regular expression name of the image being searched for. Cannot be used with arn or name.
- type String
- The type of image which must be (PUBLIC, PRIVATE, or SHARED).
getImage Result
The following output properties are available:
- Applications
List<Get
Image Application> - Appstream
Agent stringVersion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- Arn string
- ARN of the image.
- Base
Image stringArn - ARN of the image from which the image was created.
- Created
Time string - Time at which this image was created.
- Description string
- Description of image.
- Display
Name string - Image name to display.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Builder stringName - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- Image
Builder boolSupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- Image
Permissions List<GetImage Image Permission> - List of strings describing the image permissions containing the following:
- Name string
- Platform string
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- Public
Base stringImage Released Date - State string
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- State
Change List<GetReasons Image State Change Reason> - Most
Recent bool - Name
Regex string - Type string
- Applications
[]Get
Image Application - Appstream
Agent stringVersion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- Arn string
- ARN of the image.
- Base
Image stringArn - ARN of the image from which the image was created.
- Created
Time string - Time at which this image was created.
- Description string
- Description of image.
- Display
Name string - Image name to display.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Builder stringName - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- Image
Builder boolSupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- Image
Permissions []GetImage Image Permission - List of strings describing the image permissions containing the following:
- Name string
- Platform string
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- Public
Base stringImage Released Date - State string
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- State
Change []GetReasons Image State Change Reason - Most
Recent bool - Name
Regex string - Type string
- applications
List<Get
Image Application> - appstream
Agent StringVersion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- arn String
- ARN of the image.
- base
Image StringArn - ARN of the image from which the image was created.
- created
Time String - Time at which this image was created.
- description String
- Description of image.
- display
Name String - Image name to display.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Builder StringName - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- image
Builder BooleanSupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- image
Permissions List<GetImage Image Permission> - List of strings describing the image permissions containing the following:
- name String
- platform String
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- public
Base StringImage Released Date - state String
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- state
Change List<GetReasons Image State Change Reason> - most
Recent Boolean - name
Regex String - type String
- applications
Get
Image Application[] - appstream
Agent stringVersion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- arn string
- ARN of the image.
- base
Image stringArn - ARN of the image from which the image was created.
- created
Time string - Time at which this image was created.
- description string
- Description of image.
- display
Name string - Image name to display.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Builder stringName - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- image
Builder booleanSupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- image
Permissions GetImage Image Permission[] - List of strings describing the image permissions containing the following:
- name string
- platform string
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- public
Base stringImage Released Date - state string
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- state
Change GetReasons Image State Change Reason[] - most
Recent boolean - name
Regex string - type string
- applications
Sequence[Get
Image Application] - appstream_
agent_ strversion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- arn str
- ARN of the image.
- base_
image_ strarn - ARN of the image from which the image was created.
- created_
time str - Time at which this image was created.
- description str
- Description of image.
- display_
name str - Image name to display.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
builder_ strname - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- image_
builder_ boolsupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- image_
permissions Sequence[GetImage Image Permission] - List of strings describing the image permissions containing the following:
- name str
- platform str
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- public_
base_ strimage_ released_ date - state str
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- state_
change_ Sequence[Getreasons Image State Change Reason] - most_
recent bool - name_
regex str - type str
- applications List<Property Map>
- appstream
Agent StringVersion - Version of the AppStream 2.0 agent to use for instances that are launched from this image. Has a maximum length of 100 characters.
- arn String
- ARN of the image.
- base
Image StringArn - ARN of the image from which the image was created.
- created
Time String - Time at which this image was created.
- description String
- Description of image.
- display
Name String - Image name to display.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Builder StringName - The name of the image builder that was used to created the private image. If the image is sharedthen the value is null.
- image
Builder BooleanSupported - Boolean to indicate whether an image builder can be launched from this image.
image error
- Resource error object that describes the error containing the following:
- image
Permissions List<Property Map> - List of strings describing the image permissions containing the following:
- name String
- platform String
- Operating system platform of the image. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- public
Base StringImage Released Date - state String
- Current state of image. Image starts in PENDING state which changes to AVAILABLE if creation passes and FAILED if it fails. Values will be from: PENDING | AVAILABLE | FAILED | COPYING | DELETING | CREATING | IMPORTING.
- state
Change List<Property Map>Reasons - most
Recent Boolean - name
Regex String - type String
Supporting Types
GetImageApplication
- App
Block stringArn - The app block ARN of the application.
- Arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- Created
Time string - Time at which this image was created.
- Description string
- Description of image.
- Display
Name string - Image name to display.
- Enabled bool
- Bool based on if the application is enabled.
- Icon
S3Locations List<GetImage Application Icon S3Location> - A list named icon_s3_location that contains the following:
- Icon
Url string - URL of the application icon. This URL may be time-limited.
- Instance
Families List<string> - List of the instance families of the application.
- Launch
Parameters string - Arguments that are passed to the application at it's launch.
- Launch
Path string - Path to the application's excecutable in the instance.
- Metadata Dictionary<string, string>
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- Name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- Platforms List<string>
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- Working
Directory string - Working directory for the application.
- App
Block stringArn - The app block ARN of the application.
- Arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- Created
Time string - Time at which this image was created.
- Description string
- Description of image.
- Display
Name string - Image name to display.
- Enabled bool
- Bool based on if the application is enabled.
- Icon
S3Locations []GetImage Application Icon S3Location - A list named icon_s3_location that contains the following:
- Icon
Url string - URL of the application icon. This URL may be time-limited.
- Instance
Families []string - List of the instance families of the application.
- Launch
Parameters string - Arguments that are passed to the application at it's launch.
- Launch
Path string - Path to the application's excecutable in the instance.
- Metadata map[string]string
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- Name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- Platforms []string
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- Working
Directory string - Working directory for the application.
- app
Block StringArn - The app block ARN of the application.
- arn String
- Arn of the image being searched for. Cannot be used with name_regex or name.
- created
Time String - Time at which this image was created.
- description String
- Description of image.
- display
Name String - Image name to display.
- enabled Boolean
- Bool based on if the application is enabled.
- icon
S3Locations List<GetImage Application Icon S3Location> - A list named icon_s3_location that contains the following:
- icon
Url String - URL of the application icon. This URL may be time-limited.
- instance
Families List<String> - List of the instance families of the application.
- launch
Parameters String - Arguments that are passed to the application at it's launch.
- launch
Path String - Path to the application's excecutable in the instance.
- metadata Map<String,String>
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- name String
- Name of the image being searched for. Cannot be used with name_regex or arn.
- platforms List<String>
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- working
Directory String - Working directory for the application.
- app
Block stringArn - The app block ARN of the application.
- arn string
- Arn of the image being searched for. Cannot be used with name_regex or name.
- created
Time string - Time at which this image was created.
- description string
- Description of image.
- display
Name string - Image name to display.
- enabled boolean
- Bool based on if the application is enabled.
- icon
S3Locations GetImage Application Icon S3Location[] - A list named icon_s3_location that contains the following:
- icon
Url string - URL of the application icon. This URL may be time-limited.
- instance
Families string[] - List of the instance families of the application.
- launch
Parameters string - Arguments that are passed to the application at it's launch.
- launch
Path string - Path to the application's excecutable in the instance.
- metadata {[key: string]: string}
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- name string
- Name of the image being searched for. Cannot be used with name_regex or arn.
- platforms string[]
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- working
Directory string - Working directory for the application.
- app_
block_ strarn - The app block ARN of the application.
- arn str
- Arn of the image being searched for. Cannot be used with name_regex or name.
- created_
time str - Time at which this image was created.
- description str
- Description of image.
- display_
name str - Image name to display.
- enabled bool
- Bool based on if the application is enabled.
- icon_
s3_ Sequence[Getlocations Image Application Icon S3Location] - A list named icon_s3_location that contains the following:
- icon_
url str - URL of the application icon. This URL may be time-limited.
- instance_
families Sequence[str] - List of the instance families of the application.
- launch_
parameters str - Arguments that are passed to the application at it's launch.
- launch_
path str - Path to the application's excecutable in the instance.
- metadata Mapping[str, str]
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- name str
- Name of the image being searched for. Cannot be used with name_regex or arn.
- platforms Sequence[str]
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- working_
directory str - Working directory for the application.
- app
Block StringArn - The app block ARN of the application.
- arn String
- Arn of the image being searched for. Cannot be used with name_regex or name.
- created
Time String - Time at which this image was created.
- description String
- Description of image.
- display
Name String - Image name to display.
- enabled Boolean
- Bool based on if the application is enabled.
- icon
S3Locations List<Property Map> - A list named icon_s3_location that contains the following:
- icon
Url String - URL of the application icon. This URL may be time-limited.
- instance
Families List<String> - List of the instance families of the application.
- launch
Parameters String - Arguments that are passed to the application at it's launch.
- launch
Path String - Path to the application's excecutable in the instance.
- metadata Map<String>
- String to string map that contains additional attributes used to describe the application.
Name
- Name of the application.
- name String
- Name of the image being searched for. Cannot be used with name_regex or arn.
- platforms List<String>
- Array of strings describing the platforms on which the application can run. Values will be from: WINDOWS | WINDOWS_SERVER_2016 | WINDOWS_SERVER_2019 | WINDOWS_SERVER_2022 | AMAZON_LINUX2
- working
Directory String - Working directory for the application.
GetImageApplicationIconS3Location
GetImageImagePermission
- Allow
Fleet bool - Boolean indicating if the image can be used for a fleet.
- Allow
Image boolBuilder - indicated whether the image can be used for an image builder.
- Allow
Fleet bool - Boolean indicating if the image can be used for a fleet.
- Allow
Image boolBuilder - indicated whether the image can be used for an image builder.
- allow
Fleet Boolean - Boolean indicating if the image can be used for a fleet.
- allow
Image BooleanBuilder - indicated whether the image can be used for an image builder.
- allow
Fleet boolean - Boolean indicating if the image can be used for a fleet.
- allow
Image booleanBuilder - indicated whether the image can be used for an image builder.
- allow_
fleet bool - Boolean indicating if the image can be used for a fleet.
- allow_
image_ boolbuilder - indicated whether the image can be used for an image builder.
- allow
Fleet Boolean - Boolean indicating if the image can be used for a fleet.
- allow
Image BooleanBuilder - indicated whether the image can be used for an image builder.
GetImageStateChangeReason
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.