TrustedTokenIssuer class

Resource for managing an AWS SSO Admin Trusted Token Issuer.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ssoadmin.getInstances({});
const exampleTrustedTokenIssuer = new aws.ssoadmin.TrustedTokenIssuer("example", {
    trustedTokenIssuerConfiguration: {
        oidcJwtConfiguration: {
            claimAttributePath: "email",
            identityStoreAttributePath: "emails.value",
            issuerUrl: "https://example.com",
            jwksRetrievalOption: "OPEN_ID_DISCOVERY",
        },
    },
    name: "example",
    instanceArn: example.then(example => example.arns?.[0]),
    trustedTokenIssuerType: "OIDC_JWT",
});
import pulumi
import pulumi_aws as aws

example = aws.ssoadmin.get_instances()
example_trusted_token_issuer = aws.ssoadmin.TrustedTokenIssuer("example",
    trusted_token_issuer_configuration={
        "oidc_jwt_configuration": {
            "claim_attribute_path": "email",
            "identity_store_attribute_path": "emails.value",
            "issuer_url": "https://example.com",
            "jwks_retrieval_option": "OPEN_ID_DISCOVERY",
        },
    },
    name="example",
    instance_arn=example.arns[0],
    trusted_token_issuer_type="OIDC_JWT")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = Aws.SsoAdmin.GetInstances.Invoke();

    var exampleTrustedTokenIssuer = new Aws.SsoAdmin.TrustedTokenIssuer("example", new()
    {
        TrustedTokenIssuerConfiguration = new Aws.SsoAdmin.Inputs.TrustedTokenIssuerTrustedTokenIssuerConfigurationArgs
        {
            OidcJwtConfiguration = new Aws.SsoAdmin.Inputs.TrustedTokenIssuerTrustedTokenIssuerConfigurationOidcJwtConfigurationArgs
            {
                ClaimAttributePath = "email",
                IdentityStoreAttributePath = "emails.value",
                IssuerUrl = "https://example.com",
                JwksRetrievalOption = "OPEN_ID_DISCOVERY",
            },
        },
        Name = "example",
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
        TrustedTokenIssuerType = "OIDC_JWT",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ssoadmin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ssoadmin.GetInstances(ctx, &ssoadmin.GetInstancesArgs{}, nil)
		if err != nil {
			return err
		}
		_, err = ssoadmin.NewTrustedTokenIssuer(ctx, "example", &ssoadmin.TrustedTokenIssuerArgs{
			TrustedTokenIssuerConfiguration: &ssoadmin.TrustedTokenIssuerTrustedTokenIssuerConfigurationArgs{
				OidcJwtConfiguration: &ssoadmin.TrustedTokenIssuerTrustedTokenIssuerConfigurationOidcJwtConfigurationArgs{
					ClaimAttributePath:         pulumi.String("email"),
					IdentityStoreAttributePath: pulumi.String("emails.value"),
					IssuerUrl:                  pulumi.String("https://example.com"),
					JwksRetrievalOption:        pulumi.String("OPEN_ID_DISCOVERY"),
				},
			},
			Name:                   pulumi.String("example"),
			InstanceArn:            pulumi.String(example.Arns[0]),
			TrustedTokenIssuerType: pulumi.String("OIDC_JWT"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

data "aws_ssoadmin_getinstances" "example" {
}

resource "aws_ssoadmin_trustedtokenissuer" "example" {
  trusted_token_issuer_configuration = {
    oidc_jwt_configuration = {
      claim_attribute_path          = "email"
      identity_store_attribute_path = "emails.value"
      issuer_url                    = "https://example.com"
      jwks_retrieval_option         = "OPEN_ID_DISCOVERY"
    }
  }
  name                      = "example"
  instance_arn              = data.aws_ssoadmin_getinstances.example.arns[0]
  trusted_token_issuer_type = "OIDC_JWT"
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.ssoadmin.inputs.GetInstancesArgs;
import com.pulumi.aws.ssoadmin.TrustedTokenIssuer;
import com.pulumi.aws.ssoadmin.TrustedTokenIssuerArgs;
import com.pulumi.aws.ssoadmin.inputs.TrustedTokenIssuerTrustedTokenIssuerConfigurationArgs;
import com.pulumi.aws.ssoadmin.inputs.TrustedTokenIssuerTrustedTokenIssuerConfigurationOidcJwtConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = SsoadminFunctions.getInstances(GetInstancesArgs.builder()
            .build());

        var exampleTrustedTokenIssuer = new TrustedTokenIssuer("exampleTrustedTokenIssuer", TrustedTokenIssuerArgs.builder()
            .trustedTokenIssuerConfiguration(TrustedTokenIssuerTrustedTokenIssuerConfigurationArgs.builder()
                .oidcJwtConfiguration(TrustedTokenIssuerTrustedTokenIssuerConfigurationOidcJwtConfigurationArgs.builder()
                    .claimAttributePath("email")
                    .identityStoreAttributePath("emails.value")
                    .issuerUrl("https://example.com")
                    .jwksRetrievalOption("OPEN_ID_DISCOVERY")
                    .build())
                .build())
            .name("example")
            .instanceArn(example.arns()[0])
            .trustedTokenIssuerType("OIDC_JWT")
            .build());

    }
}
resources:
  exampleTrustedTokenIssuer:
    type: aws:ssoadmin:TrustedTokenIssuer
    name: example
    properties:
      trustedTokenIssuerConfiguration:
        oidcJwtConfiguration:
          claimAttributePath: email
          identityStoreAttributePath: emails.value
          issuerUrl: https://example.com
          jwksRetrievalOption: OPEN_ID_DISCOVERY
      name: example
      instanceArn: ${example.arns[0]}
      trustedTokenIssuerType: OIDC_JWT
variables:
  example:
    fn::invoke:
      function: aws:ssoadmin:getInstances
      arguments: {}

Import

Identity Schema

Required

  • arn (String) ARN of the Trusted Token Issuer.

Optional

  • region (String) Region where this resource is managed.

Using pulumi import, import SSO Admin Trusted Token Issuer using the id. For example:

$ pulumi import aws:ssoadmin/trustedTokenIssuer:TrustedTokenIssuer example arn:aws:sso::123456789012:trustedTokenIssuer/ssoins-lu1ye3gew4mbc7ju/tti-2657c556-9707-11ee-b9d1-0242ac120002

Constructors

TrustedTokenIssuer(String name, {TrustedTokenIssuerArgs? args, CustomResourceOptions? options})
Creates a new TrustedTokenIssuer. name The Pulumi resource name. args Arguments used to configure this TrustedTokenIssuer. The set of arguments for TrustedTokenIssuer. options Resource options controlling this resource's behavior.
TrustedTokenIssuer.reference(String urn)
Creates a typed reference to an existing TrustedTokenIssuer resource.

Properties

arn ↔ Output<String>
ARN of the trusted token issuer.
latefinal
childResources → Set<Resource>
finalinherited
clientToken ↔ Output<String?>
A unique, case-sensitive ID that you provide to ensure the idempotency of the request. AWS generates a random value when not provided.
latefinal
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
instanceArn ↔ Output<String>
ARN of the instance of IAM Identity Center.
latefinal
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
name ↔ Output<String>
Name of the trusted token issuer.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags ↔ Output<Map<String, String>?>
Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
latefinal
tagsAll ↔ Output<Map<String, String>>
Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
trustedTokenIssuerConfiguration ↔ Output<TrustedTokenIssuerTrustedTokenIssuerConfiguration>
A block that specifies settings that apply to the trusted token issuer, these change depending on the type you specify in trustedTokenIssuerType. Documented below.
latefinal
trustedTokenIssuerType ↔ Output<String>
Specifies the type of the trusted token issuer. Valid values are OIDC_JWT
latefinal
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {TrustedTokenIssuerState? state, CustomResourceOptions? options}) → TrustedTokenIssuer
Gets an existing TrustedTokenIssuer resource's state with the given name and id.