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

export interface ModelPackageGroupPolicyArgs extends core.ResourceArgs {
  modelPackageGroupName: string | core.StringOut;

  resourcePolicy: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: ModelPackageGroupPolicyArgs) {
    super(name, "aws_sagemaker_model_package_group_policy", args);
  }

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