1. Packages
  2. Packages
  3. Twingate
  4. API Docs
  5. getTwingateSyncToS3
Viewing docs for Twingate v4.3.1
published on Wednesday, Aug 5, 2026 by Twingate
twingate logo
Viewing docs for Twingate v4.3.1
published on Wednesday, Aug 5, 2026 by Twingate

    The datasource would allow users automate and get the oidc url used for the resources aws_iam_role, aws_iam_openid_connect_provider. For more information, see Twingate’s documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as twingate from "@twingate/pulumi-twingate";
    
    const example = twingate.getTwingateSyncToS3({});
    export const oidcUrl = example.then(example => example.oidcUrl);
    export const oidcPrefix = example.then(example => example.oidcPrefix);
    
    import pulumi
    import pulumi_twingate as twingate
    
    example = twingate.get_twingate_sync_to_s3()
    pulumi.export("oidcUrl", example.oidc_url)
    pulumi.export("oidcPrefix", example.oidc_prefix)
    
    package main
    
    import (
    	"github.com/Twingate/pulumi-twingate/sdk/v4/go/twingate"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := twingate.GetTwingateSyncToS3(ctx, &twingate.GetTwingateSyncToS3Args{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("oidcUrl", example.OidcUrl)
    		ctx.Export("oidcPrefix", example.OidcPrefix)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Twingate = Twingate.Twingate;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Twingate.GetTwingateSyncToS3.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["oidcUrl"] = example.Apply(getTwingateSyncToS3Result => getTwingateSyncToS3Result.OidcUrl),
            ["oidcPrefix"] = example.Apply(getTwingateSyncToS3Result => getTwingateSyncToS3Result.OidcPrefix),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.twingate.TwingateFunctions;
    import com.pulumi.twingate.inputs.GetTwingateSyncToS3Args;
    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 = TwingateFunctions.getTwingateSyncToS3(GetTwingateSyncToS3Args.builder()
                .build());
    
            ctx.export("oidcUrl", example.oidcUrl());
            ctx.export("oidcPrefix", example.oidcPrefix());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: twingate:getTwingateSyncToS3
          arguments: {}
    outputs:
      oidcUrl: ${example.oidcUrl}
      oidcPrefix: ${example.oidcPrefix}
    
    pulumi {
      required_providers {
        twingate = {
          source = "pulumi/twingate"
        }
      }
    }
    
    data "twingate_gettwingatesynctos3" "example" {
    }
    
    output "oidcUrl" {
      value = data.twingate_gettwingatesynctos3.example.oidc_url
    }
    output "oidcPrefix" {
      value = data.twingate_gettwingatesynctos3.example.oidc_prefix
    }
    

    Using getTwingateSyncToS3

    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 getTwingateSyncToS3(args: GetTwingateSyncToS3Args, opts?: InvokeOptions): Promise<GetTwingateSyncToS3Result>
    function getTwingateSyncToS3Output(args: GetTwingateSyncToS3OutputArgs, opts?: InvokeOptions): Output<GetTwingateSyncToS3Result>
    def get_twingate_sync_to_s3(type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTwingateSyncToS3Result
    def get_twingate_sync_to_s3_output(type: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetTwingateSyncToS3Result]
    func GetTwingateSyncToS3(ctx *Context, args *GetTwingateSyncToS3Args, opts ...InvokeOption) (*GetTwingateSyncToS3Result, error)
    func GetTwingateSyncToS3Output(ctx *Context, args *GetTwingateSyncToS3OutputArgs, opts ...InvokeOption) GetTwingateSyncToS3ResultOutput

    > Note: This function is named GetTwingateSyncToS3 in the Go SDK.

    public static class GetTwingateSyncToS3 
    {
        public static Task<GetTwingateSyncToS3Result> InvokeAsync(GetTwingateSyncToS3Args args, InvokeOptions? opts = null)
        public static Output<GetTwingateSyncToS3Result> Invoke(GetTwingateSyncToS3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTwingateSyncToS3Result> getTwingateSyncToS3(GetTwingateSyncToS3Args args, InvokeOptions options)
    public static Output<GetTwingateSyncToS3Result> getTwingateSyncToS3(GetTwingateSyncToS3Args args, InvokeOptions options)
    
    fn::invoke:
      function: twingate:index/getTwingateSyncToS3:getTwingateSyncToS3
      arguments:
        # arguments dictionary
    data "twingate_get_twingate_sync_to_s3" "name" {
        # arguments
    }

    The following arguments are supported:

    Type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    Type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    type String
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    type str
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    type String
    The type of the resource. One of: oidc or iam. Defaults to "oidc".

    getTwingateSyncToS3 Result

    The following output properties are available:

    Id string
    The ID of this resource.
    OidcPrefix string
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    OidcUrl string
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    Type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    Id string
    The ID of this resource.
    OidcPrefix string
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    OidcUrl string
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    Type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    id string
    The ID of this resource.
    oidc_prefix string
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    oidc_url string
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    id String
    The ID of this resource.
    oidcPrefix String
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    oidcUrl String
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    type String
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    id string
    The ID of this resource.
    oidcPrefix string
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    oidcUrl string
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    type string
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    id str
    The ID of this resource.
    oidc_prefix str
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    oidc_url str
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    type str
    The type of the resource. One of: oidc or iam. Defaults to "oidc".
    id String
    The ID of this resource.
    oidcPrefix String
    The IAM Identity Provider prefix (return only if type "oidc"). Example: tenant.twingate.com/oidc/v2
    oidcUrl String
    The IAM Identity Provider URL (return only if type "oidc"). Example: https://tenant.twingate.com/oidc/v2
    type String
    The type of the resource. One of: oidc or iam. Defaults to "oidc".

    Package Details

    Repository
    twingate Twingate/pulumi-twingate
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the twingate Terraform Provider.
    twingate logo
    Viewing docs for Twingate v4.3.1
    published on Wednesday, Aug 5, 2026 by Twingate

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial