AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.iam.getSamlProvider
Explore with Pulumi AI
This data source can be used to fetch information about a specific IAM SAML provider. This will allow you to easily retrieve the metadata document of an existing SAML provider.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.iam.getSamlProvider({
arn: "arn:aws:iam::123456789:saml-provider/myprovider",
});
import pulumi
import pulumi_aws as aws
example = aws.iam.get_saml_provider(arn="arn:aws:iam::123456789:saml-provider/myprovider")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.LookupSamlProvider(ctx, &iam.LookupSamlProviderArgs{
Arn: "arn:aws:iam::123456789:saml-provider/myprovider",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Iam.GetSamlProvider.Invoke(new()
{
Arn = "arn:aws:iam::123456789:saml-provider/myprovider",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetSamlProviderArgs;
import java.util.List;
import java.util.ArrayList;
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 = IamFunctions.getSamlProvider(GetSamlProviderArgs.builder()
.arn("arn:aws:iam::123456789:saml-provider/myprovider")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:iam:getSamlProvider
Arguments:
arn: arn:aws:iam::123456789:saml-provider/myprovider
Using getSamlProvider
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 getSamlProvider(args: GetSamlProviderArgs, opts?: InvokeOptions): Promise<GetSamlProviderResult>
function getSamlProviderOutput(args: GetSamlProviderOutputArgs, opts?: InvokeOptions): Output<GetSamlProviderResult>
def get_saml_provider(arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSamlProviderResult
def get_saml_provider_output(arn: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSamlProviderResult]
func LookupSamlProvider(ctx *Context, args *LookupSamlProviderArgs, opts ...InvokeOption) (*LookupSamlProviderResult, error)
func LookupSamlProviderOutput(ctx *Context, args *LookupSamlProviderOutputArgs, opts ...InvokeOption) LookupSamlProviderResultOutput
> Note: This function is named LookupSamlProvider
in the Go SDK.
public static class GetSamlProvider
{
public static Task<GetSamlProviderResult> InvokeAsync(GetSamlProviderArgs args, InvokeOptions? opts = null)
public static Output<GetSamlProviderResult> Invoke(GetSamlProviderInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSamlProviderResult> getSamlProvider(GetSamlProviderArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:iam/getSamlProvider:getSamlProvider
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- ARN assigned by AWS for the provider.
- Dictionary<string, string>
- Tags attached to the SAML provider.
- Arn string
- ARN assigned by AWS for the provider.
- map[string]string
- Tags attached to the SAML provider.
- arn String
- ARN assigned by AWS for the provider.
- Map<String,String>
- Tags attached to the SAML provider.
- arn string
- ARN assigned by AWS for the provider.
- {[key: string]: string}
- Tags attached to the SAML provider.
- arn str
- ARN assigned by AWS for the provider.
- Mapping[str, str]
- Tags attached to the SAML provider.
- arn String
- ARN assigned by AWS for the provider.
- Map<String>
- Tags attached to the SAML provider.
getSamlProvider Result
The following output properties are available:
- Arn string
- Create
Date string - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the provider.
- Saml
Metadata stringDocument - The XML document generated by an identity provider that supports SAML 2.0.
- Dictionary<string, string>
- Tags attached to the SAML provider.
- Valid
Until string - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
- Arn string
- Create
Date string - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the provider.
- Saml
Metadata stringDocument - The XML document generated by an identity provider that supports SAML 2.0.
- map[string]string
- Tags attached to the SAML provider.
- Valid
Until string - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
- arn String
- create
Date String - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the provider.
- saml
Metadata StringDocument - The XML document generated by an identity provider that supports SAML 2.0.
- Map<String,String>
- Tags attached to the SAML provider.
- valid
Until String - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
- arn string
- create
Date string - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the provider.
- saml
Metadata stringDocument - The XML document generated by an identity provider that supports SAML 2.0.
- {[key: string]: string}
- Tags attached to the SAML provider.
- valid
Until string - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
- arn str
- create_
date str - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the provider.
- saml_
metadata_ strdocument - The XML document generated by an identity provider that supports SAML 2.0.
- Mapping[str, str]
- Tags attached to the SAML provider.
- valid_
until str - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
- arn String
- create
Date String - Creation date of the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2006 15:04:05 MST
. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the provider.
- saml
Metadata StringDocument - The XML document generated by an identity provider that supports SAML 2.0.
- Map<String>
- Tags attached to the SAML provider.
- valid
Until String - Expiration date and time for the SAML provider in RFC1123 format, e.g.
Mon, 02 Jan 2007 15:04:05 MST
.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.