import * as core from "@terrascript/core";

export interface ManagedPolicyAttachmentArgs extends core.ResourceArgs {
  instanceArn: string | core.StringOut;

  managedPolicyArn: string | core.StringOut;

  permissionSetArn: string | core.StringOut;
}

export class ManagedPolicyAttachment extends core.Resource<ManagedPolicyAttachmentArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public instanceArn!: string | core.StringOut;

  @core.attr(String)
  public managedPolicyArn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public managedPolicyName!: string | core.StringOut;

  @core.attr(String)
  public permissionSetArn!: string | core.StringOut;

  constructor(name: string, args?: ManagedPolicyAttachmentArgs) {
    super(name, "aws_ssoadmin_managed_policy_attachment", args);
  }

  public override getNamespace(): string {
    return "aws_ssoadmin";
  }
}
