ServerPolicyClaim
Creates an Authorization Server Policy Rule.
This resource allows you to create and configure an Authorization Server Policy Rule.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Auth.ServerPolicyClaim("example", new Okta.Auth.ServerPolicyClaimArgs
{
AuthServerId = "<auth server id>",
GrantTypeWhitelists =
{
"implicit",
},
GroupWhitelists =
{
"<group ids>",
},
PolicyId = "<auth server policy id>",
Priority = 1,
Status = "ACTIVE",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.auth.ServerPolicyClaim("example",
auth_server_id="<auth server id>",
grant_type_whitelists=["implicit"],
group_whitelists=["<group ids>"],
policy_id="<auth server policy id>",
priority=1,
status="ACTIVE")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.auth.ServerPolicyClaim("example", {
authServerId: "<auth server id>",
grantTypeWhitelists: ["implicit"],
groupWhitelists: ["<group ids>"],
policyId: "<auth server policy id>",
priority: 1,
status: "ACTIVE",
});Create a ServerPolicyClaim Resource
new ServerPolicyClaim(name: string, args: ServerPolicyClaimArgs, opts?: CustomResourceOptions);def ServerPolicyClaim(resource_name, opts=None, access_token_lifetime_minutes=None, auth_server_id=None, grant_type_whitelists=None, group_blacklists=None, group_whitelists=None, inline_hook_id=None, name=None, policy_id=None, priority=None, refresh_token_lifetime_minutes=None, refresh_token_window_minutes=None, scope_whitelists=None, status=None, type=None, user_blacklists=None, user_whitelists=None, __props__=None);func NewServerPolicyClaim(ctx *Context, name string, args ServerPolicyClaimArgs, opts ...ResourceOption) (*ServerPolicyClaim, error)public ServerPolicyClaim(string name, ServerPolicyClaimArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServerPolicyClaimArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerPolicyClaimArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerPolicyClaimArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServerPolicyClaim Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServerPolicyClaim resource accepts the following input properties:
- Auth
Server stringId Auth Server ID.
- Grant
Type List<string>Whitelists Accepted grant type values,
"authorization_code","implicit","password"- Policy
Id string Auth Server Policy ID.
- Priority int
Priority of the auth server policy rule.
- Access
Token intLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- Group
Blacklists List<string> - Group
Whitelists List<string> - Inline
Hook stringId The ID of the inline token to trigger.
- Name string
Auth Server Policy Rule name.
- Refresh
Token intLifetime Minutes Lifetime of refresh token.
- Refresh
Token intWindow Minutes - Scope
Whitelists List<string> Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- Status string
The status of the Auth Server Policy Rule.
- Type string
The type of the Auth Server Policy Rule.
- User
Blacklists List<string> - User
Whitelists List<string>
- Auth
Server stringId Auth Server ID.
- Grant
Type []stringWhitelists Accepted grant type values,
"authorization_code","implicit","password"- Policy
Id string Auth Server Policy ID.
- Priority int
Priority of the auth server policy rule.
- Access
Token intLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- Group
Blacklists []string - Group
Whitelists []string - Inline
Hook stringId The ID of the inline token to trigger.
- Name string
Auth Server Policy Rule name.
- Refresh
Token intLifetime Minutes Lifetime of refresh token.
- Refresh
Token intWindow Minutes - Scope
Whitelists []string Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- Status string
The status of the Auth Server Policy Rule.
- Type string
The type of the Auth Server Policy Rule.
- User
Blacklists []string - User
Whitelists []string
- auth
Server stringId Auth Server ID.
- grant
Type string[]Whitelists Accepted grant type values,
"authorization_code","implicit","password"- policy
Id string Auth Server Policy ID.
- priority number
Priority of the auth server policy rule.
- access
Token numberLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- group
Blacklists string[] - group
Whitelists string[] - inline
Hook stringId The ID of the inline token to trigger.
- name string
Auth Server Policy Rule name.
- refresh
Token numberLifetime Minutes Lifetime of refresh token.
- refresh
Token numberWindow Minutes - scope
Whitelists string[] Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- status string
The status of the Auth Server Policy Rule.
- type string
The type of the Auth Server Policy Rule.
- user
Blacklists string[] - user
Whitelists string[]
- auth_
server_ strid Auth Server ID.
- grant_
type_ List[str]whitelists Accepted grant type values,
"authorization_code","implicit","password"- policy_
id str Auth Server Policy ID.
- priority float
Priority of the auth server policy rule.
- access_
token_ floatlifetime_ minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- group_
blacklists List[str] - group_
whitelists List[str] - inline_
hook_ strid The ID of the inline token to trigger.
- name str
Auth Server Policy Rule name.
- refresh_
token_ floatlifetime_ minutes Lifetime of refresh token.
- refresh_
token_ floatwindow_ minutes - scope_
whitelists List[str] Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- status str
The status of the Auth Server Policy Rule.
- type str
The type of the Auth Server Policy Rule.
- user_
blacklists List[str] - user_
whitelists List[str]
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerPolicyClaim resource produces the following output properties:
Look up an Existing ServerPolicyClaim Resource
Get an existing ServerPolicyClaim 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?: ServerPolicyClaimState, opts?: CustomResourceOptions): ServerPolicyClaimstatic get(resource_name, id, opts=None, access_token_lifetime_minutes=None, auth_server_id=None, grant_type_whitelists=None, group_blacklists=None, group_whitelists=None, inline_hook_id=None, name=None, policy_id=None, priority=None, refresh_token_lifetime_minutes=None, refresh_token_window_minutes=None, scope_whitelists=None, status=None, type=None, user_blacklists=None, user_whitelists=None, __props__=None);func GetServerPolicyClaim(ctx *Context, name string, id IDInput, state *ServerPolicyClaimState, opts ...ResourceOption) (*ServerPolicyClaim, error)public static ServerPolicyClaim Get(string name, Input<string> id, ServerPolicyClaimState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Access
Token intLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- Auth
Server stringId Auth Server ID.
- Grant
Type List<string>Whitelists Accepted grant type values,
"authorization_code","implicit","password"- Group
Blacklists List<string> - Group
Whitelists List<string> - Inline
Hook stringId The ID of the inline token to trigger.
- Name string
Auth Server Policy Rule name.
- Policy
Id string Auth Server Policy ID.
- Priority int
Priority of the auth server policy rule.
- Refresh
Token intLifetime Minutes Lifetime of refresh token.
- Refresh
Token intWindow Minutes - Scope
Whitelists List<string> Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- Status string
The status of the Auth Server Policy Rule.
- Type string
The type of the Auth Server Policy Rule.
- User
Blacklists List<string> - User
Whitelists List<string>
- Access
Token intLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- Auth
Server stringId Auth Server ID.
- Grant
Type []stringWhitelists Accepted grant type values,
"authorization_code","implicit","password"- Group
Blacklists []string - Group
Whitelists []string - Inline
Hook stringId The ID of the inline token to trigger.
- Name string
Auth Server Policy Rule name.
- Policy
Id string Auth Server Policy ID.
- Priority int
Priority of the auth server policy rule.
- Refresh
Token intLifetime Minutes Lifetime of refresh token.
- Refresh
Token intWindow Minutes - Scope
Whitelists []string Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- Status string
The status of the Auth Server Policy Rule.
- Type string
The type of the Auth Server Policy Rule.
- User
Blacklists []string - User
Whitelists []string
- access
Token numberLifetime Minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- auth
Server stringId Auth Server ID.
- grant
Type string[]Whitelists Accepted grant type values,
"authorization_code","implicit","password"- group
Blacklists string[] - group
Whitelists string[] - inline
Hook stringId The ID of the inline token to trigger.
- name string
Auth Server Policy Rule name.
- policy
Id string Auth Server Policy ID.
- priority number
Priority of the auth server policy rule.
- refresh
Token numberLifetime Minutes Lifetime of refresh token.
- refresh
Token numberWindow Minutes - scope
Whitelists string[] Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- status string
The status of the Auth Server Policy Rule.
- type string
The type of the Auth Server Policy Rule.
- user
Blacklists string[] - user
Whitelists string[]
- access_
token_ floatlifetime_ minutes Lifetime of access token. Can be set to a value between 5 and 1440.
- auth_
server_ strid Auth Server ID.
- grant_
type_ List[str]whitelists Accepted grant type values,
"authorization_code","implicit","password"- group_
blacklists List[str] - group_
whitelists List[str] - inline_
hook_ strid The ID of the inline token to trigger.
- name str
Auth Server Policy Rule name.
- policy_
id str Auth Server Policy ID.
- priority float
Priority of the auth server policy rule.
- refresh_
token_ floatlifetime_ minutes Lifetime of refresh token.
- refresh_
token_ floatwindow_ minutes - scope_
whitelists List[str] Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with
"*".- status str
The status of the Auth Server Policy Rule.
- type str
The type of the Auth Server Policy Rule.
- user_
blacklists List[str] - user_
whitelists List[str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.