rancher2.PodSecurityAdmissionConfigurationTemplate
Explore with Pulumi AI
Create PodSecurityAdmissionConfigurationTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PodSecurityAdmissionConfigurationTemplate(name: string, args: PodSecurityAdmissionConfigurationTemplateArgs, opts?: CustomResourceOptions);
@overload
def PodSecurityAdmissionConfigurationTemplate(resource_name: str,
args: PodSecurityAdmissionConfigurationTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PodSecurityAdmissionConfigurationTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
defaults: Optional[PodSecurityAdmissionConfigurationTemplateDefaultsArgs] = None,
annotations: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
exemptions: Optional[PodSecurityAdmissionConfigurationTemplateExemptionsArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)
func NewPodSecurityAdmissionConfigurationTemplate(ctx *Context, name string, args PodSecurityAdmissionConfigurationTemplateArgs, opts ...ResourceOption) (*PodSecurityAdmissionConfigurationTemplate, error)
public PodSecurityAdmissionConfigurationTemplate(string name, PodSecurityAdmissionConfigurationTemplateArgs args, CustomResourceOptions? opts = null)
public PodSecurityAdmissionConfigurationTemplate(String name, PodSecurityAdmissionConfigurationTemplateArgs args)
public PodSecurityAdmissionConfigurationTemplate(String name, PodSecurityAdmissionConfigurationTemplateArgs args, CustomResourceOptions options)
type: rancher2:PodSecurityAdmissionConfigurationTemplate
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 PodSecurityAdmissionConfigurationTemplateArgs
- 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 PodSecurityAdmissionConfigurationTemplateArgs
- 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 PodSecurityAdmissionConfigurationTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PodSecurityAdmissionConfigurationTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PodSecurityAdmissionConfigurationTemplateArgs
- 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 podSecurityAdmissionConfigurationTemplateResource = new Rancher2.PodSecurityAdmissionConfigurationTemplate("podSecurityAdmissionConfigurationTemplateResource", new()
{
Defaults = new Rancher2.Inputs.PodSecurityAdmissionConfigurationTemplateDefaultsArgs
{
Audit = "string",
AuditVersion = "string",
Enforce = "string",
EnforceVersion = "string",
Warn = "string",
WarnVersion = "string",
},
Annotations =
{
{ "string", "string" },
},
Description = "string",
Exemptions = new Rancher2.Inputs.PodSecurityAdmissionConfigurationTemplateExemptionsArgs
{
Namespaces = new[]
{
"string",
},
RuntimeClasses = new[]
{
"string",
},
Usernames = new[]
{
"string",
},
},
Labels =
{
{ "string", "string" },
},
Name = "string",
});
example, err := rancher2.NewPodSecurityAdmissionConfigurationTemplate(ctx, "podSecurityAdmissionConfigurationTemplateResource", &rancher2.PodSecurityAdmissionConfigurationTemplateArgs{
Defaults: &rancher2.PodSecurityAdmissionConfigurationTemplateDefaultsArgs{
Audit: pulumi.String("string"),
AuditVersion: pulumi.String("string"),
Enforce: pulumi.String("string"),
EnforceVersion: pulumi.String("string"),
Warn: pulumi.String("string"),
WarnVersion: pulumi.String("string"),
},
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Exemptions: &rancher2.PodSecurityAdmissionConfigurationTemplateExemptionsArgs{
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
RuntimeClasses: pulumi.StringArray{
pulumi.String("string"),
},
Usernames: pulumi.StringArray{
pulumi.String("string"),
},
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var podSecurityAdmissionConfigurationTemplateResource = new PodSecurityAdmissionConfigurationTemplate("podSecurityAdmissionConfigurationTemplateResource", PodSecurityAdmissionConfigurationTemplateArgs.builder()
.defaults(PodSecurityAdmissionConfigurationTemplateDefaultsArgs.builder()
.audit("string")
.auditVersion("string")
.enforce("string")
.enforceVersion("string")
.warn("string")
.warnVersion("string")
.build())
.annotations(Map.of("string", "string"))
.description("string")
.exemptions(PodSecurityAdmissionConfigurationTemplateExemptionsArgs.builder()
.namespaces("string")
.runtimeClasses("string")
.usernames("string")
.build())
.labels(Map.of("string", "string"))
.name("string")
.build());
pod_security_admission_configuration_template_resource = rancher2.PodSecurityAdmissionConfigurationTemplate("podSecurityAdmissionConfigurationTemplateResource",
defaults={
"audit": "string",
"audit_version": "string",
"enforce": "string",
"enforce_version": "string",
"warn": "string",
"warn_version": "string",
},
annotations={
"string": "string",
},
description="string",
exemptions={
"namespaces": ["string"],
"runtime_classes": ["string"],
"usernames": ["string"],
},
labels={
"string": "string",
},
name="string")
const podSecurityAdmissionConfigurationTemplateResource = new rancher2.PodSecurityAdmissionConfigurationTemplate("podSecurityAdmissionConfigurationTemplateResource", {
defaults: {
audit: "string",
auditVersion: "string",
enforce: "string",
enforceVersion: "string",
warn: "string",
warnVersion: "string",
},
annotations: {
string: "string",
},
description: "string",
exemptions: {
namespaces: ["string"],
runtimeClasses: ["string"],
usernames: ["string"],
},
labels: {
string: "string",
},
name: "string",
});
type: rancher2:PodSecurityAdmissionConfigurationTemplate
properties:
annotations:
string: string
defaults:
audit: string
auditVersion: string
enforce: string
enforceVersion: string
warn: string
warnVersion: string
description: string
exemptions:
namespaces:
- string
runtimeClasses:
- string
usernames:
- string
labels:
string: string
name: string
PodSecurityAdmissionConfigurationTemplate 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 PodSecurityAdmissionConfigurationTemplate resource accepts the following input properties:
- Defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- Annotations Dictionary<string, string>
- Annotations of the resource
- Description string
- Pod Security Admission Configuration template description
- Exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- Labels Dictionary<string, string>
- Labels of the resource
- Name string
- Pod Security Admission Configuration template name
- Defaults
Pod
Security Admission Configuration Template Defaults Args - defaults allows the user to define admission control mode for Pod Security
- Annotations map[string]string
- Annotations of the resource
- Description string
- Pod Security Admission Configuration template description
- Exemptions
Pod
Security Admission Configuration Template Exemptions Args - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- Labels map[string]string
- Labels of the resource
- Name string
- Pod Security Admission Configuration template name
- defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- annotations Map<String,String>
- Annotations of the resource
- description String
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Map<String,String>
- Labels of the resource
- name String
- Pod Security Admission Configuration template name
- defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- annotations {[key: string]: string}
- Annotations of the resource
- description string
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels {[key: string]: string}
- Labels of the resource
- name string
- Pod Security Admission Configuration template name
- defaults
Pod
Security Admission Configuration Template Defaults Args - defaults allows the user to define admission control mode for Pod Security
- annotations Mapping[str, str]
- Annotations of the resource
- description str
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions Args - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Mapping[str, str]
- Labels of the resource
- name str
- Pod Security Admission Configuration template name
- defaults Property Map
- defaults allows the user to define admission control mode for Pod Security
- annotations Map<String>
- Annotations of the resource
- description String
- Pod Security Admission Configuration template description
- exemptions Property Map
- exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Map<String>
- Labels of the resource
- name String
- Pod Security Admission Configuration template name
Outputs
All input properties are implicitly available as output properties. Additionally, the PodSecurityAdmissionConfigurationTemplate 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 PodSecurityAdmissionConfigurationTemplate Resource
Get an existing PodSecurityAdmissionConfigurationTemplate 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?: PodSecurityAdmissionConfigurationTemplateState, opts?: CustomResourceOptions): PodSecurityAdmissionConfigurationTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
defaults: Optional[PodSecurityAdmissionConfigurationTemplateDefaultsArgs] = None,
description: Optional[str] = None,
exemptions: Optional[PodSecurityAdmissionConfigurationTemplateExemptionsArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None) -> PodSecurityAdmissionConfigurationTemplate
func GetPodSecurityAdmissionConfigurationTemplate(ctx *Context, name string, id IDInput, state *PodSecurityAdmissionConfigurationTemplateState, opts ...ResourceOption) (*PodSecurityAdmissionConfigurationTemplate, error)
public static PodSecurityAdmissionConfigurationTemplate Get(string name, Input<string> id, PodSecurityAdmissionConfigurationTemplateState? state, CustomResourceOptions? opts = null)
public static PodSecurityAdmissionConfigurationTemplate get(String name, Output<String> id, PodSecurityAdmissionConfigurationTemplateState 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.
- Annotations Dictionary<string, string>
- Annotations of the resource
- Defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- Description string
- Pod Security Admission Configuration template description
- Exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- Labels Dictionary<string, string>
- Labels of the resource
- Name string
- Pod Security Admission Configuration template name
- Annotations map[string]string
- Annotations of the resource
- Defaults
Pod
Security Admission Configuration Template Defaults Args - defaults allows the user to define admission control mode for Pod Security
- Description string
- Pod Security Admission Configuration template description
- Exemptions
Pod
Security Admission Configuration Template Exemptions Args - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- Labels map[string]string
- Labels of the resource
- Name string
- Pod Security Admission Configuration template name
- annotations Map<String,String>
- Annotations of the resource
- defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- description String
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Map<String,String>
- Labels of the resource
- name String
- Pod Security Admission Configuration template name
- annotations {[key: string]: string}
- Annotations of the resource
- defaults
Pod
Security Admission Configuration Template Defaults - defaults allows the user to define admission control mode for Pod Security
- description string
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels {[key: string]: string}
- Labels of the resource
- name string
- Pod Security Admission Configuration template name
- annotations Mapping[str, str]
- Annotations of the resource
- defaults
Pod
Security Admission Configuration Template Defaults Args - defaults allows the user to define admission control mode for Pod Security
- description str
- Pod Security Admission Configuration template description
- exemptions
Pod
Security Admission Configuration Template Exemptions Args - exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Mapping[str, str]
- Labels of the resource
- name str
- Pod Security Admission Configuration template name
- annotations Map<String>
- Annotations of the resource
- defaults Property Map
- defaults allows the user to define admission control mode for Pod Security
- description String
- Pod Security Admission Configuration template description
- exemptions Property Map
- exemptions allows the creation of pods for specific Usernames, RuntimeClassNames, and Namespaces that would otherwise be prohibited
- labels Map<String>
- Labels of the resource
- name String
- Pod Security Admission Configuration template name
Supporting Types
PodSecurityAdmissionConfigurationTemplateDefaults, PodSecurityAdmissionConfigurationTemplateDefaultsArgs
- Audit string
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Audit
Version string - Pod Security Admission Configuration audit version (default: latest)
- Enforce string
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Enforce
Version string - Pod Security Admission Configuration enforce version (default: latest)
- Warn string
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Warn
Version string - Pod Security Admission Configuration warn version (default: latest)
- Audit string
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Audit
Version string - Pod Security Admission Configuration audit version (default: latest)
- Enforce string
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Enforce
Version string - Pod Security Admission Configuration enforce version (default: latest)
- Warn string
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- Warn
Version string - Pod Security Admission Configuration warn version (default: latest)
- audit String
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- audit
Version String - Pod Security Admission Configuration audit version (default: latest)
- enforce String
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- enforce
Version String - Pod Security Admission Configuration enforce version (default: latest)
- warn String
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- warn
Version String - Pod Security Admission Configuration warn version (default: latest)
- audit string
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- audit
Version string - Pod Security Admission Configuration audit version (default: latest)
- enforce string
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- enforce
Version string - Pod Security Admission Configuration enforce version (default: latest)
- warn string
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- warn
Version string - Pod Security Admission Configuration warn version (default: latest)
- audit str
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- audit_
version str - Pod Security Admission Configuration audit version (default: latest)
- enforce str
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- enforce_
version str - Pod Security Admission Configuration enforce version (default: latest)
- warn str
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- warn_
version str - Pod Security Admission Configuration warn version (default: latest)
- audit String
- Pod Security Admission Configuration audit. This audits a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- audit
Version String - Pod Security Admission Configuration audit version (default: latest)
- enforce String
- Pod Security Admission Configuration enforce. This rejects a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- enforce
Version String - Pod Security Admission Configuration enforce version (default: latest)
- warn String
- Pod Security Admission Configuration warn. This warns the user about a pod in violation of privileged, baseline, or restricted policy (default: privileged)
- warn
Version String - Pod Security Admission Configuration warn version (default: latest)
PodSecurityAdmissionConfigurationTemplateExemptions, PodSecurityAdmissionConfigurationTemplateExemptionsArgs
- Namespaces List<string>
- Pod Security Admission Configuration namespace exemptions
- Runtime
Classes List<string> - Pod Security Admission Configuration runtime class exemptions
- Usernames List<string>
- Pod Security Admission Configuration username exemptions
- Namespaces []string
- Pod Security Admission Configuration namespace exemptions
- Runtime
Classes []string - Pod Security Admission Configuration runtime class exemptions
- Usernames []string
- Pod Security Admission Configuration username exemptions
- namespaces List<String>
- Pod Security Admission Configuration namespace exemptions
- runtime
Classes List<String> - Pod Security Admission Configuration runtime class exemptions
- usernames List<String>
- Pod Security Admission Configuration username exemptions
- namespaces string[]
- Pod Security Admission Configuration namespace exemptions
- runtime
Classes string[] - Pod Security Admission Configuration runtime class exemptions
- usernames string[]
- Pod Security Admission Configuration username exemptions
- namespaces Sequence[str]
- Pod Security Admission Configuration namespace exemptions
- runtime_
classes Sequence[str] - Pod Security Admission Configuration runtime class exemptions
- usernames Sequence[str]
- Pod Security Admission Configuration username exemptions
- namespaces List<String>
- Pod Security Admission Configuration namespace exemptions
- runtime
Classes List<String> - Pod Security Admission Configuration runtime class exemptions
- usernames List<String>
- Pod Security Admission Configuration username exemptions
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.