AWS Native is in preview. AWS Classic is fully supported.
aws-native.ssm.getDocument
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
The AWS::SSM::Document resource is an SSM document in AWS Systems Manager that defines the actions that Systems Manager performs, which can be used to set up and run commands on your instances.
Using getDocument
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 getDocument(args: GetDocumentArgs, opts?: InvokeOptions): Promise<GetDocumentResult>
function getDocumentOutput(args: GetDocumentOutputArgs, opts?: InvokeOptions): Output<GetDocumentResult>
def get_document(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDocumentResult
def get_document_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDocumentResult]
func LookupDocument(ctx *Context, args *LookupDocumentArgs, opts ...InvokeOption) (*LookupDocumentResult, error)
func LookupDocumentOutput(ctx *Context, args *LookupDocumentOutputArgs, opts ...InvokeOption) LookupDocumentResultOutput
> Note: This function is named LookupDocument
in the Go SDK.
public static class GetDocument
{
public static Task<GetDocumentResult> InvokeAsync(GetDocumentArgs args, InvokeOptions? opts = null)
public static Output<GetDocumentResult> Invoke(GetDocumentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDocumentResult> getDocument(GetDocumentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ssm:getDocument
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- A name for the Systems Manager document.
- Name string
- A name for the Systems Manager document.
- name String
- A name for the Systems Manager document.
- name string
- A name for the Systems Manager document.
- name str
- A name for the Systems Manager document.
- name String
- A name for the Systems Manager document.
getDocument Result
The following output properties are available:
- Content object
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- Document
Format Pulumi.Aws Native. Ssm. Document Format - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- Requires
List<Pulumi.
Aws Native. Ssm. Outputs. Document Requires> - A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- List<Pulumi.
Aws Native. Outputs. Tag> - Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- Target
Type string - Specify a target type to define the kinds of resources the document can run on.
- Version
Name string - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
- Content interface{}
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- Document
Format DocumentFormat - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- Requires
[]Document
Requires - A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- Tag
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- Target
Type string - Specify a target type to define the kinds of resources the document can run on.
- Version
Name string - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
- content Object
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- document
Format DocumentFormat - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- requires
List<Document
Requires> - A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- List<Tag>
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- target
Type String - Specify a target type to define the kinds of resources the document can run on.
- version
Name String - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
- content any
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- document
Format DocumentFormat - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- requires
Document
Requires[] - A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- Tag[]
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- target
Type string - Specify a target type to define the kinds of resources the document can run on.
- version
Name string - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
- content Any
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- document_
format DocumentFormat - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- requires
Sequence[Document
Requires] - A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- Sequence[root_Tag]
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- target_
type str - Specify a target type to define the kinds of resources the document can run on.
- version_
name str - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
- content Any
The content for the Systems Manager document in JSON, YAML or String format.
Search the CloudFormation User Guide for
AWS::SSM::Document
for more information about the expected schema for this property.- document
Format "YAML" | "JSON" | "TEXT" - Specify the document format for the request. The document format can be either JSON or YAML. JSON is the default format.
- requires List<Property Map>
- A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.
- List<Property Map>
- Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.
- target
Type String - Specify a target type to define the kinds of resources the document can run on.
- version
Name String - An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.
Supporting Types
DocumentFormat
DocumentRequires
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.