Header menu logo FsCDK

PolicyBuilder Type

Constructors

Constructor Description

PolicyBuilder(name)

Full Usage: PolicyBuilder(name)

Parameters:
    name : string

Returns: PolicyBuilder
name : string
Returns: PolicyBuilder

Instance members

Instance member Description

this.Combine

Full Usage: this.Combine

Parameters:
Returns: PolicyConfig
state1 : PolicyConfig
state2 : PolicyConfig
Returns: PolicyConfig

constructId id

Full Usage: constructId id

Parameters:
    id : string - The construct ID.

Returns: PolicyConfig

Sets the construct ID for the managed policy.

id : string

The construct ID.

Returns: PolicyConfig

this.Delay

Full Usage: this.Delay

Parameters:
Returns: PolicyConfig
Modifiers: inline
f : unit -> PolicyConfig
Returns: PolicyConfig

this.For

Full Usage: this.For

Parameters:
Returns: PolicyConfig
Modifiers: inline
config : PolicyConfig
f : unit -> PolicyConfig
Returns: PolicyConfig

force force

Full Usage: force force

Parameters:
    force : bool - True to force the policy, false otherwise.

Returns: PolicyConfig

Sets whether to force the policy.

force : bool

True to force the policy, false otherwise.

Returns: PolicyConfig

groups group

Full Usage: groups group

Parameters:
    group : IGroup list - The IAM group to attach the policy to.

Returns: PolicyConfig

Attaches the policy to a group.

group : IGroup list

The IAM group to attach the policy to.

Returns: PolicyConfig

policyName name

Full Usage: policyName name

Parameters:
    name : string - The policy name.

Returns: PolicyConfig

Sets the policy name.

name : string

The policy name.

Returns: PolicyConfig

this.Run

Full Usage: this.Run

Parameters:
Returns: PolicySpec
config : PolicyConfig
Returns: PolicySpec

statement statement

Full Usage: statement statement

Parameters:
Returns: PolicyConfig
statement : PolicyStatement
Returns: PolicyConfig

statements statements

Full Usage: statements statements

Parameters:
Returns: PolicyConfig

Adds a policy statement.

statements : PolicyStatement list

The policy statements to add.

Returns: PolicyConfig

users user

Full Usage: users user

Parameters:
    user : IUser list - The IAM user to attach the policy to.

Returns: PolicyConfig

Attaches the policy to a user.

user : IUser list

The IAM user to attach the policy to.

Returns: PolicyConfig

this.Yield

Full Usage: this.Yield

Parameters:
Returns: PolicyConfig
statement : PolicyStatement
Returns: PolicyConfig

this.Yield

Full Usage: this.Yield

Parameters:
Returns: PolicyConfig
document : PolicyDocument
Returns: PolicyConfig

this.Yield

Full Usage: this.Yield

Parameters:
    () : unit

Returns: PolicyConfig
() : unit
Returns: PolicyConfig

this.Zero

Full Usage: this.Zero

Returns: PolicyConfig
Returns: PolicyConfig

Type something to start searching.