Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse
aquasec.getFunctionRuntimePolicy
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";
const functionRuntimePolicy = aquasec.getFunctionRuntimePolicy({
    name: "FunctionRuntimePolicyName",
});
export const functionRuntimePolicyDetails = functionRuntimePolicy;
import pulumi
import pulumi_aquasec as aquasec
function_runtime_policy = aquasec.get_function_runtime_policy(name="FunctionRuntimePolicyName")
pulumi.export("functionRuntimePolicyDetails", function_runtime_policy)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		functionRuntimePolicy, err := aquasec.LookupFunctionRuntimePolicy(ctx, &aquasec.LookupFunctionRuntimePolicyArgs{
			Name: "FunctionRuntimePolicyName",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("functionRuntimePolicyDetails", functionRuntimePolicy)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumi.Aquasec;
return await Deployment.RunAsync(() => 
{
    var functionRuntimePolicy = Aquasec.GetFunctionRuntimePolicy.Invoke(new()
    {
        Name = "FunctionRuntimePolicyName",
    });
    return new Dictionary<string, object?>
    {
        ["functionRuntimePolicyDetails"] = functionRuntimePolicy,
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
import com.pulumi.aquasec.inputs.GetFunctionRuntimePolicyArgs;
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 functionRuntimePolicy = AquasecFunctions.getFunctionRuntimePolicy(GetFunctionRuntimePolicyArgs.builder()
            .name("FunctionRuntimePolicyName")
            .build());
        ctx.export("functionRuntimePolicyDetails", functionRuntimePolicy.applyValue(getFunctionRuntimePolicyResult -> getFunctionRuntimePolicyResult));
    }
}
variables:
  functionRuntimePolicy:
    fn::invoke:
      Function: aquasec:getFunctionRuntimePolicy
      Arguments:
        name: FunctionRuntimePolicyName
outputs:
  functionRuntimePolicyDetails: ${functionRuntimePolicy}
Using getFunctionRuntimePolicy
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 getFunctionRuntimePolicy(args: GetFunctionRuntimePolicyArgs, opts?: InvokeOptions): Promise<GetFunctionRuntimePolicyResult>
function getFunctionRuntimePolicyOutput(args: GetFunctionRuntimePolicyOutputArgs, opts?: InvokeOptions): Output<GetFunctionRuntimePolicyResult>def get_function_runtime_policy(drift_preventions: Optional[Sequence[GetFunctionRuntimePolicyDriftPrevention]] = None,
                                executable_blacklists: Optional[Sequence[GetFunctionRuntimePolicyExecutableBlacklist]] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetFunctionRuntimePolicyResult
def get_function_runtime_policy_output(drift_preventions: Optional[pulumi.Input[Sequence[pulumi.Input[GetFunctionRuntimePolicyDriftPreventionArgs]]]] = None,
                                executable_blacklists: Optional[pulumi.Input[Sequence[pulumi.Input[GetFunctionRuntimePolicyExecutableBlacklistArgs]]]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetFunctionRuntimePolicyResult]func LookupFunctionRuntimePolicy(ctx *Context, args *LookupFunctionRuntimePolicyArgs, opts ...InvokeOption) (*LookupFunctionRuntimePolicyResult, error)
func LookupFunctionRuntimePolicyOutput(ctx *Context, args *LookupFunctionRuntimePolicyOutputArgs, opts ...InvokeOption) LookupFunctionRuntimePolicyResultOutput> Note: This function is named LookupFunctionRuntimePolicy in the Go SDK.
public static class GetFunctionRuntimePolicy 
{
    public static Task<GetFunctionRuntimePolicyResult> InvokeAsync(GetFunctionRuntimePolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionRuntimePolicyResult> Invoke(GetFunctionRuntimePolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFunctionRuntimePolicyResult> getFunctionRuntimePolicy(GetFunctionRuntimePolicyArgs args, InvokeOptions options)
public static Output<GetFunctionRuntimePolicyResult> getFunctionRuntimePolicy(GetFunctionRuntimePolicyArgs args, InvokeOptions options)
fn::invoke:
  function: aquasec:index/getFunctionRuntimePolicy:getFunctionRuntimePolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Name of the function runtime policy
- DriftPreventions List<Pulumiverse.Aquasec. Inputs. Get Function Runtime Policy Drift Prevention> 
- Drift prevention configuration.
- ExecutableBlacklists List<Pulumiverse.Aquasec. Inputs. Get Function Runtime Policy Executable Blacklist> 
- Executable blacklist configuration.
- Name string
- Name of the function runtime policy
- DriftPreventions []GetFunction Runtime Policy Drift Prevention 
- Drift prevention configuration.
- ExecutableBlacklists []GetFunction Runtime Policy Executable Blacklist 
- Executable blacklist configuration.
- name String
- Name of the function runtime policy
- driftPreventions List<GetFunction Runtime Policy Drift Prevention> 
- Drift prevention configuration.
- executableBlacklists List<GetFunction Runtime Policy Executable Blacklist> 
- Executable blacklist configuration.
- name string
- Name of the function runtime policy
- driftPreventions GetFunction Runtime Policy Drift Prevention[] 
- Drift prevention configuration.
- executableBlacklists GetFunction Runtime Policy Executable Blacklist[] 
- Executable blacklist configuration.
- name str
- Name of the function runtime policy
- drift_preventions Sequence[GetFunction Runtime Policy Drift Prevention] 
- Drift prevention configuration.
- executable_blacklists Sequence[GetFunction Runtime Policy Executable Blacklist] 
- Executable blacklist configuration.
- name String
- Name of the function runtime policy
- driftPreventions List<Property Map>
- Drift prevention configuration.
- executableBlacklists List<Property Map>
- Executable blacklist configuration.
getFunctionRuntimePolicy Result
The following output properties are available:
- ApplicationScopes List<string>
- Indicates the application scope of the service.
- string
- Username of the account that created the service.
- BlockMalicious boolExecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- BlockMalicious List<string>Executables Allowed Processes 
- List of processes that will be allowed
- BlockRunning boolExecutables In Tmp Folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- BlockedExecutables List<string>
- List of executables that are prevented from running in containers.
- Description string
- The description of the function runtime policy
- Enabled bool
- Indicates if the runtime policy is enabled or not.
- Enforce bool
- Indicates that policy should effect container execution (not just for audit).
- HoneypotAccess stringKey 
- Honeypot User ID (Access Key)
- HoneypotApply List<string>Ons 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- HoneypotSecret stringKey 
- Honeypot User Password (Secret Key)
- HoneypotServerless stringApp Name 
- Serverless application name
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the function runtime policy
- ScopeExpression string
- Logical expression of how to compute the dependency of the scope variables.
- ScopeVariables List<Pulumiverse.Aquasec. Outputs. Get Function Runtime Policy Scope Variable> 
- List of scope attributes.
- DriftPreventions List<Pulumiverse.Aquasec. Outputs. Get Function Runtime Policy Drift Prevention> 
- Drift prevention configuration.
- ExecutableBlacklists List<Pulumiverse.Aquasec. Outputs. Get Function Runtime Policy Executable Blacklist> 
- Executable blacklist configuration.
- ApplicationScopes []string
- Indicates the application scope of the service.
- string
- Username of the account that created the service.
- BlockMalicious boolExecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- BlockMalicious []stringExecutables Allowed Processes 
- List of processes that will be allowed
- BlockRunning boolExecutables In Tmp Folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- BlockedExecutables []string
- List of executables that are prevented from running in containers.
- Description string
- The description of the function runtime policy
- Enabled bool
- Indicates if the runtime policy is enabled or not.
- Enforce bool
- Indicates that policy should effect container execution (not just for audit).
- HoneypotAccess stringKey 
- Honeypot User ID (Access Key)
- HoneypotApply []stringOns 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- HoneypotSecret stringKey 
- Honeypot User Password (Secret Key)
- HoneypotServerless stringApp Name 
- Serverless application name
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the function runtime policy
- ScopeExpression string
- Logical expression of how to compute the dependency of the scope variables.
- ScopeVariables []GetFunction Runtime Policy Scope Variable 
- List of scope attributes.
- DriftPreventions []GetFunction Runtime Policy Drift Prevention 
- Drift prevention configuration.
- ExecutableBlacklists []GetFunction Runtime Policy Executable Blacklist 
- Executable blacklist configuration.
- applicationScopes List<String>
- Indicates the application scope of the service.
- String
- Username of the account that created the service.
- blockMalicious BooleanExecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- blockMalicious List<String>Executables Allowed Processes 
- List of processes that will be allowed
- blockRunning BooleanExecutables In Tmp Folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- blockedExecutables List<String>
- List of executables that are prevented from running in containers.
- description String
- The description of the function runtime policy
- enabled Boolean
- Indicates if the runtime policy is enabled or not.
- enforce Boolean
- Indicates that policy should effect container execution (not just for audit).
- honeypotAccess StringKey 
- Honeypot User ID (Access Key)
- honeypotApply List<String>Ons 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- honeypotSecret StringKey 
- Honeypot User Password (Secret Key)
- honeypotServerless StringApp Name 
- Serverless application name
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the function runtime policy
- scopeExpression String
- Logical expression of how to compute the dependency of the scope variables.
- scopeVariables List<GetFunction Runtime Policy Scope Variable> 
- List of scope attributes.
- driftPreventions List<GetFunction Runtime Policy Drift Prevention> 
- Drift prevention configuration.
- executableBlacklists List<GetFunction Runtime Policy Executable Blacklist> 
- Executable blacklist configuration.
- applicationScopes string[]
- Indicates the application scope of the service.
- string
- Username of the account that created the service.
- blockMalicious booleanExecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- blockMalicious string[]Executables Allowed Processes 
- List of processes that will be allowed
- blockRunning booleanExecutables In Tmp Folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- blockedExecutables string[]
- List of executables that are prevented from running in containers.
- description string
- The description of the function runtime policy
- enabled boolean
- Indicates if the runtime policy is enabled or not.
- enforce boolean
- Indicates that policy should effect container execution (not just for audit).
- honeypotAccess stringKey 
- Honeypot User ID (Access Key)
- honeypotApply string[]Ons 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- honeypotSecret stringKey 
- Honeypot User Password (Secret Key)
- honeypotServerless stringApp Name 
- Serverless application name
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the function runtime policy
- scopeExpression string
- Logical expression of how to compute the dependency of the scope variables.
- scopeVariables GetFunction Runtime Policy Scope Variable[] 
- List of scope attributes.
- driftPreventions GetFunction Runtime Policy Drift Prevention[] 
- Drift prevention configuration.
- executableBlacklists GetFunction Runtime Policy Executable Blacklist[] 
- Executable blacklist configuration.
- application_scopes Sequence[str]
- Indicates the application scope of the service.
- str
- Username of the account that created the service.
- block_malicious_ boolexecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- block_malicious_ Sequence[str]executables_ allowed_ processes 
- List of processes that will be allowed
- block_running_ boolexecutables_ in_ tmp_ folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- blocked_executables Sequence[str]
- List of executables that are prevented from running in containers.
- description str
- The description of the function runtime policy
- enabled bool
- Indicates if the runtime policy is enabled or not.
- enforce bool
- Indicates that policy should effect container execution (not just for audit).
- honeypot_access_ strkey 
- Honeypot User ID (Access Key)
- honeypot_apply_ Sequence[str]ons 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- honeypot_secret_ strkey 
- Honeypot User Password (Secret Key)
- honeypot_serverless_ strapp_ name 
- Serverless application name
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the function runtime policy
- scope_expression str
- Logical expression of how to compute the dependency of the scope variables.
- scope_variables Sequence[GetFunction Runtime Policy Scope Variable] 
- List of scope attributes.
- drift_preventions Sequence[GetFunction Runtime Policy Drift Prevention] 
- Drift prevention configuration.
- executable_blacklists Sequence[GetFunction Runtime Policy Executable Blacklist] 
- Executable blacklist configuration.
- applicationScopes List<String>
- Indicates the application scope of the service.
- String
- Username of the account that created the service.
- blockMalicious BooleanExecutables 
- If true, prevent creation of malicious executables in functions during their runtime post invocation.
- blockMalicious List<String>Executables Allowed Processes 
- List of processes that will be allowed
- blockRunning BooleanExecutables In Tmp Folder 
- If true, prevent running of executables in functions locate in /tmp folder during their runtime post invocation.
- blockedExecutables List<String>
- List of executables that are prevented from running in containers.
- description String
- The description of the function runtime policy
- enabled Boolean
- Indicates if the runtime policy is enabled or not.
- enforce Boolean
- Indicates that policy should effect container execution (not just for audit).
- honeypotAccess StringKey 
- Honeypot User ID (Access Key)
- honeypotApply List<String>Ons 
- List of options to apply the honeypot on (Environment Vairable, Layer, File)
- honeypotSecret StringKey 
- Honeypot User Password (Secret Key)
- honeypotServerless StringApp Name 
- Serverless application name
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the function runtime policy
- scopeExpression String
- Logical expression of how to compute the dependency of the scope variables.
- scopeVariables List<Property Map>
- List of scope attributes.
- driftPreventions List<Property Map>
- Drift prevention configuration.
- executableBlacklists List<Property Map>
- Executable blacklist configuration.
Supporting Types
GetFunctionRuntimePolicyDriftPrevention     
- Enabled bool
- Whether drift prevention is enabled.
- ExecLockdown bool
- Whether to lockdown execution drift.
- ExecLockdown List<string>White Lists 
- List of items in the execution lockdown white list.
- ImageLockdown bool
- Whether to lockdown image drift.
- Enabled bool
- Whether drift prevention is enabled.
- ExecLockdown bool
- Whether to lockdown execution drift.
- ExecLockdown []stringWhite Lists 
- List of items in the execution lockdown white list.
- ImageLockdown bool
- Whether to lockdown image drift.
- enabled Boolean
- Whether drift prevention is enabled.
- execLockdown Boolean
- Whether to lockdown execution drift.
- execLockdown List<String>White Lists 
- List of items in the execution lockdown white list.
- imageLockdown Boolean
- Whether to lockdown image drift.
- enabled boolean
- Whether drift prevention is enabled.
- execLockdown boolean
- Whether to lockdown execution drift.
- execLockdown string[]White Lists 
- List of items in the execution lockdown white list.
- imageLockdown boolean
- Whether to lockdown image drift.
- enabled bool
- Whether drift prevention is enabled.
- exec_lockdown bool
- Whether to lockdown execution drift.
- exec_lockdown_ Sequence[str]white_ lists 
- List of items in the execution lockdown white list.
- image_lockdown bool
- Whether to lockdown image drift.
- enabled Boolean
- Whether drift prevention is enabled.
- execLockdown Boolean
- Whether to lockdown execution drift.
- execLockdown List<String>White Lists 
- List of items in the execution lockdown white list.
- imageLockdown Boolean
- Whether to lockdown image drift.
GetFunctionRuntimePolicyExecutableBlacklist     
- Enabled bool
- Whether the executable blacklist is enabled.
- Executables List<string>
- List of blacklisted executables.
- Enabled bool
- Whether the executable blacklist is enabled.
- Executables []string
- List of blacklisted executables.
- enabled Boolean
- Whether the executable blacklist is enabled.
- executables List<String>
- List of blacklisted executables.
- enabled boolean
- Whether the executable blacklist is enabled.
- executables string[]
- List of blacklisted executables.
- enabled bool
- Whether the executable blacklist is enabled.
- executables Sequence[str]
- List of blacklisted executables.
- enabled Boolean
- Whether the executable blacklist is enabled.
- executables List<String>
- List of blacklisted executables.
GetFunctionRuntimePolicyScopeVariable     
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the aquasecTerraform Provider.