Skip to content

Data Source: awsSsoadminPermissionSet

Use this data source to get a Single Sign-On (SSO) Permission Set.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsSsoadminInstancesExample =
  new aws.dataAwsSsoadminInstances.DataAwsSsoadminInstances(
    this,
    "example",
    {}
  );
const dataAwsSsoadminPermissionSetExample =
  new aws.dataAwsSsoadminPermissionSet.DataAwsSsoadminPermissionSet(
    this,
    "example_1",
    {
      instanceArn: `\${tolist(${dataAwsSsoadminInstancesExample.arns})[0]}`,
      name: "Example",
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAwsSsoadminPermissionSetExample.overrideLogicalId("example");
new cdktf.TerraformOutput(this, "arn", {
  value: dataAwsSsoadminPermissionSetExample.arn,
});

Argument Reference

The following arguments are supported:

\~> NOTE: Either arn or name must be configured.

  • arn - (Optional) ARN of the permission set.
  • instanceArn - (Required) ARN of the SSO Instance associated with the permission set.
  • name - (Optional) Name of the SSO Permission Set.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - ARN of the Permission Set.
  • description - Description of the Permission Set.
  • relayState - Relay state URL used to redirect users within the application during the federation authentication process.
  • sessionDuration - Length of time that the application user sessions are valid in the ISO-8601 standard.
  • tags - Key-value map of resource tags.