StrongDM v1.20.0 published on Wednesday, Oct 23, 2024 by Piers Karsenbarg
sdm.getAccountAttachment
Explore with Pulumi AI
StrongDM v1.20.0 published on Wednesday, Oct 23, 2024 by Piers Karsenbarg
AccountAttachments assign an account to a role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdm from "@pulumi/sdm";
const accountAttachmentQuery = sdm.getAccountAttachment({
accountId: "a-00000054",
});
import pulumi
import pulumi_sdm as sdm
account_attachment_query = sdm.get_account_attachment(account_id="a-00000054")
package main
import (
"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdm.LookupAccountAttachment(ctx, &sdm.LookupAccountAttachmentArgs{
AccountId: pulumi.StringRef("a-00000054"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdm = Pulumi.Sdm;
return await Deployment.RunAsync(() =>
{
var accountAttachmentQuery = Sdm.GetAccountAttachment.Invoke(new()
{
AccountId = "a-00000054",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdm.SdmFunctions;
import com.pulumi.sdm.inputs.GetAccountAttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var accountAttachmentQuery = SdmFunctions.getAccountAttachment(GetAccountAttachmentArgs.builder()
.accountId("a-00000054")
.build());
}
}
variables:
accountAttachmentQuery:
fn::invoke:
Function: sdm:getAccountAttachment
Arguments:
accountId: a-00000054
Using getAccountAttachment
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 getAccountAttachment(args: GetAccountAttachmentArgs, opts?: InvokeOptions): Promise<GetAccountAttachmentResult>
function getAccountAttachmentOutput(args: GetAccountAttachmentOutputArgs, opts?: InvokeOptions): Output<GetAccountAttachmentResult>
def get_account_attachment(account_id: Optional[str] = None,
id: Optional[str] = None,
role_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountAttachmentResult
def get_account_attachment_output(account_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
role_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountAttachmentResult]
func LookupAccountAttachment(ctx *Context, args *LookupAccountAttachmentArgs, opts ...InvokeOption) (*LookupAccountAttachmentResult, error)
func LookupAccountAttachmentOutput(ctx *Context, args *LookupAccountAttachmentOutputArgs, opts ...InvokeOption) LookupAccountAttachmentResultOutput
> Note: This function is named LookupAccountAttachment
in the Go SDK.
public static class GetAccountAttachment
{
public static Task<GetAccountAttachmentResult> InvokeAsync(GetAccountAttachmentArgs args, InvokeOptions? opts = null)
public static Output<GetAccountAttachmentResult> Invoke(GetAccountAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountAttachmentResult> getAccountAttachment(GetAccountAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdm:index/getAccountAttachment:getAccountAttachment
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - The id of the account of this AccountAttachment.
- id str
- Unique identifier of the AccountAttachment.
- role_
id str - The id of the attached role of this AccountAttachment.
getAccountAttachment Result
The following output properties are available:
- Account
Attachments List<PiersKarsenbarg. Sdm. Outputs. Get Account Attachment Account Attachment> - A list where each element has the following attributes:
- Ids List<string>
- a list of strings of ids of data sources that match the given arguments.
- Account
Id string - The id of the account of this AccountAttachment.
- Id string
- Unique identifier of the AccountAttachment.
- Role
Id string - The id of the attached role of this AccountAttachment.
- Account
Attachments []GetAccount Attachment Account Attachment - A list where each element has the following attributes:
- Ids []string
- a list of strings of ids of data sources that match the given arguments.
- Account
Id string - The id of the account of this AccountAttachment.
- Id string
- Unique identifier of the AccountAttachment.
- Role
Id string - The id of the attached role of this AccountAttachment.
- account
Attachments List<GetAccount Attachment Account Attachment> - A list where each element has the following attributes:
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- account
Id String - The id of the account of this AccountAttachment.
- id String
- Unique identifier of the AccountAttachment.
- role
Id String - The id of the attached role of this AccountAttachment.
- account
Attachments GetAccount Attachment Account Attachment[] - A list where each element has the following attributes:
- ids string[]
- a list of strings of ids of data sources that match the given arguments.
- account
Id string - The id of the account of this AccountAttachment.
- id string
- Unique identifier of the AccountAttachment.
- role
Id string - The id of the attached role of this AccountAttachment.
- account_
attachments Sequence[GetAccount Attachment Account Attachment] - A list where each element has the following attributes:
- ids Sequence[str]
- a list of strings of ids of data sources that match the given arguments.
- account_
id str - The id of the account of this AccountAttachment.
- id str
- Unique identifier of the AccountAttachment.
- role_
id str - The id of the attached role of this AccountAttachment.
- account
Attachments List<Property Map> - A list where each element has the following attributes:
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- account
Id String - The id of the account of this AccountAttachment.
- id String
- Unique identifier of the AccountAttachment.
- role
Id String - The id of the attached role of this AccountAttachment.
Supporting Types
GetAccountAttachmentAccountAttachment
- account_
id str - The id of the account of this AccountAttachment.
- id str
- Unique identifier of the AccountAttachment.
- role_
id str - The id of the attached role of this AccountAttachment.
Package Details
- Repository
- sdm pierskarsenbarg/pulumi-sdm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdm
Terraform Provider.
StrongDM v1.20.0 published on Wednesday, Oct 23, 2024 by Piers Karsenbarg