@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
94 lines • 2.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* AccountAttachments assign an account to a role.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const accountAttachmentQuery = sdm.getAccountAttachment({
* accountId: "a-00000054",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
export declare function getAccountAttachment(args?: GetAccountAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountAttachmentResult>;
/**
* A collection of arguments for invoking getAccountAttachment.
*/
export interface GetAccountAttachmentArgs {
/**
* The id of the account of this AccountAttachment.
*/
accountId?: string;
/**
* Unique identifier of the AccountAttachment.
*/
id?: string;
/**
* The id of the attached role of this AccountAttachment.
*/
roleId?: string;
}
/**
* A collection of values returned by getAccountAttachment.
*/
export interface GetAccountAttachmentResult {
/**
* A list where each element has the following attributes:
*/
readonly accountAttachments: outputs.GetAccountAttachmentAccountAttachment[];
/**
* The id of the account of this AccountAttachment.
*/
readonly accountId?: string;
/**
* Unique identifier of the AccountAttachment.
*/
readonly id?: string;
/**
* a list of strings of ids of data sources that match the given arguments.
*/
readonly ids: string[];
/**
* The id of the attached role of this AccountAttachment.
*/
readonly roleId?: string;
}
/**
* AccountAttachments assign an account to a role.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const accountAttachmentQuery = sdm.getAccountAttachment({
* accountId: "a-00000054",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
export declare function getAccountAttachmentOutput(args?: GetAccountAttachmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountAttachmentResult>;
/**
* A collection of arguments for invoking getAccountAttachment.
*/
export interface GetAccountAttachmentOutputArgs {
/**
* The id of the account of this AccountAttachment.
*/
accountId?: pulumi.Input<string | undefined>;
/**
* Unique identifier of the AccountAttachment.
*/
id?: pulumi.Input<string | undefined>;
/**
* The id of the attached role of this AccountAttachment.
*/
roleId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getAccountAttachment.d.ts.map