@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
106 lines • 2.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* An AccountGroup is a link between an Account and a Group.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const securityLeadGroups = sdm.getAccountGroup({
* accountId: securityLead.id,
* });
* const specificRelationship = sdm.getAccountGroup({
* id: "accountgroup-1234567890abcdef",
* });
* const usersInGroup = sdm.getAccountGroup({
* groupId: devopsGroup.id,
* });
* ```
* <!--End PulumiCodeChooser -->
*/
export declare function getAccountGroup(args?: GetAccountGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountGroupResult>;
/**
* A collection of arguments for invoking getAccountGroup.
*/
export interface GetAccountGroupArgs {
/**
* Unique identifier of the Account.
*/
accountId?: string;
/**
* Unique identifier of the Group.
*/
groupId?: string;
/**
* Unique identifier of the AccountGroup.
*/
id?: string;
}
/**
* A collection of values returned by getAccountGroup.
*/
export interface GetAccountGroupResult {
/**
* Unique identifier of the Account.
*/
readonly accountId?: string;
/**
* A list where each element has the following attributes:
*/
readonly accountsGroups: outputs.GetAccountGroupAccountsGroup[];
/**
* Unique identifier of the Group.
*/
readonly groupId?: string;
/**
* Unique identifier of the AccountGroup.
*/
readonly id?: string;
/**
* a list of strings of ids of data sources that match the given arguments.
*/
readonly ids: string[];
}
/**
* An AccountGroup is a link between an Account and a Group.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const securityLeadGroups = sdm.getAccountGroup({
* accountId: securityLead.id,
* });
* const specificRelationship = sdm.getAccountGroup({
* id: "accountgroup-1234567890abcdef",
* });
* const usersInGroup = sdm.getAccountGroup({
* groupId: devopsGroup.id,
* });
* ```
* <!--End PulumiCodeChooser -->
*/
export declare function getAccountGroupOutput(args?: GetAccountGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountGroupResult>;
/**
* A collection of arguments for invoking getAccountGroup.
*/
export interface GetAccountGroupOutputArgs {
/**
* Unique identifier of the Account.
*/
accountId?: pulumi.Input<string | undefined>;
/**
* Unique identifier of the Group.
*/
groupId?: pulumi.Input<string | undefined>;
/**
* Unique identifier of the AccountGroup.
*/
id?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getAccountGroup.d.ts.map