aws.iam.SecurityTokenServicePreferences
Explore with Pulumi AI
Provides an IAM Security Token Service Preferences resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.iam.SecurityTokenServicePreferences("example", {globalEndpointTokenVersion: "v2Token"});
import pulumi
import pulumi_aws as aws
example = aws.iam.SecurityTokenServicePreferences("example", global_endpoint_token_version="v2Token")
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.NewSecurityTokenServicePreferences(ctx, "example", &iam.SecurityTokenServicePreferencesArgs{
GlobalEndpointTokenVersion: pulumi.String("v2Token"),
})
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 = new Aws.Iam.SecurityTokenServicePreferences("example", new()
{
GlobalEndpointTokenVersion = "v2Token",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.SecurityTokenServicePreferences;
import com.pulumi.aws.iam.SecurityTokenServicePreferencesArgs;
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) {
var example = new SecurityTokenServicePreferences("example", SecurityTokenServicePreferencesArgs.builder()
.globalEndpointTokenVersion("v2Token")
.build());
}
}
resources:
example:
type: aws:iam:SecurityTokenServicePreferences
properties:
globalEndpointTokenVersion: v2Token
Create SecurityTokenServicePreferences Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityTokenServicePreferences(name: string, args: SecurityTokenServicePreferencesArgs, opts?: CustomResourceOptions);
@overload
def SecurityTokenServicePreferences(resource_name: str,
args: SecurityTokenServicePreferencesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityTokenServicePreferences(resource_name: str,
opts: Optional[ResourceOptions] = None,
global_endpoint_token_version: Optional[str] = None)
func NewSecurityTokenServicePreferences(ctx *Context, name string, args SecurityTokenServicePreferencesArgs, opts ...ResourceOption) (*SecurityTokenServicePreferences, error)
public SecurityTokenServicePreferences(string name, SecurityTokenServicePreferencesArgs args, CustomResourceOptions? opts = null)
public SecurityTokenServicePreferences(String name, SecurityTokenServicePreferencesArgs args)
public SecurityTokenServicePreferences(String name, SecurityTokenServicePreferencesArgs args, CustomResourceOptions options)
type: aws:iam:SecurityTokenServicePreferences
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityTokenServicePreferencesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityTokenServicePreferencesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityTokenServicePreferencesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityTokenServicePreferencesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityTokenServicePreferencesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityTokenServicePreferencesResource = new Aws.Iam.SecurityTokenServicePreferences("securityTokenServicePreferencesResource", new()
{
GlobalEndpointTokenVersion = "string",
});
example, err := iam.NewSecurityTokenServicePreferences(ctx, "securityTokenServicePreferencesResource", &iam.SecurityTokenServicePreferencesArgs{
GlobalEndpointTokenVersion: pulumi.String("string"),
})
var securityTokenServicePreferencesResource = new SecurityTokenServicePreferences("securityTokenServicePreferencesResource", SecurityTokenServicePreferencesArgs.builder()
.globalEndpointTokenVersion("string")
.build());
security_token_service_preferences_resource = aws.iam.SecurityTokenServicePreferences("securityTokenServicePreferencesResource", global_endpoint_token_version="string")
const securityTokenServicePreferencesResource = new aws.iam.SecurityTokenServicePreferences("securityTokenServicePreferencesResource", {globalEndpointTokenVersion: "string"});
type: aws:iam:SecurityTokenServicePreferences
properties:
globalEndpointTokenVersion: string
SecurityTokenServicePreferences Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityTokenServicePreferences resource accepts the following input properties:
- Global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- Global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint StringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global_
endpoint_ strtoken_ version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint StringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityTokenServicePreferences resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecurityTokenServicePreferences Resource
Get an existing SecurityTokenServicePreferences resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityTokenServicePreferencesState, opts?: CustomResourceOptions): SecurityTokenServicePreferences
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
global_endpoint_token_version: Optional[str] = None) -> SecurityTokenServicePreferences
func GetSecurityTokenServicePreferences(ctx *Context, name string, id IDInput, state *SecurityTokenServicePreferencesState, opts ...ResourceOption) (*SecurityTokenServicePreferences, error)
public static SecurityTokenServicePreferences Get(string name, Input<string> id, SecurityTokenServicePreferencesState? state, CustomResourceOptions? opts = null)
public static SecurityTokenServicePreferences get(String name, Output<String> id, SecurityTokenServicePreferencesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- Global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint StringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint stringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global_
endpoint_ strtoken_ version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
- global
Endpoint StringToken Version - The version of the STS global endpoint token. Valid values:
v1Token
,v2Token
.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.