akamai.AppSecSecurityPolicy
Explore with Pulumi AI
Create AppSecSecurityPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppSecSecurityPolicy(name: string, args: AppSecSecurityPolicyArgs, opts?: CustomResourceOptions);@overload
def AppSecSecurityPolicy(resource_name: str,
                         args: AppSecSecurityPolicyArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def AppSecSecurityPolicy(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         config_id: Optional[int] = None,
                         security_policy_name: Optional[str] = None,
                         security_policy_prefix: Optional[str] = None,
                         create_from_security_policy_id: Optional[str] = None,
                         default_settings: Optional[bool] = None)func NewAppSecSecurityPolicy(ctx *Context, name string, args AppSecSecurityPolicyArgs, opts ...ResourceOption) (*AppSecSecurityPolicy, error)public AppSecSecurityPolicy(string name, AppSecSecurityPolicyArgs args, CustomResourceOptions? opts = null)
public AppSecSecurityPolicy(String name, AppSecSecurityPolicyArgs args)
public AppSecSecurityPolicy(String name, AppSecSecurityPolicyArgs args, CustomResourceOptions options)
type: akamai:AppSecSecurityPolicy
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 AppSecSecurityPolicyArgs
- 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 AppSecSecurityPolicyArgs
- 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 AppSecSecurityPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppSecSecurityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppSecSecurityPolicyArgs
- 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 appSecSecurityPolicyResource = new Akamai.AppSecSecurityPolicy("appSecSecurityPolicyResource", new()
{
    ConfigId = 0,
    SecurityPolicyName = "string",
    SecurityPolicyPrefix = "string",
    CreateFromSecurityPolicyId = "string",
    DefaultSettings = false,
});
example, err := akamai.NewAppSecSecurityPolicy(ctx, "appSecSecurityPolicyResource", &akamai.AppSecSecurityPolicyArgs{
	ConfigId:                   pulumi.Int(0),
	SecurityPolicyName:         pulumi.String("string"),
	SecurityPolicyPrefix:       pulumi.String("string"),
	CreateFromSecurityPolicyId: pulumi.String("string"),
	DefaultSettings:            pulumi.Bool(false),
})
var appSecSecurityPolicyResource = new AppSecSecurityPolicy("appSecSecurityPolicyResource", AppSecSecurityPolicyArgs.builder()
    .configId(0)
    .securityPolicyName("string")
    .securityPolicyPrefix("string")
    .createFromSecurityPolicyId("string")
    .defaultSettings(false)
    .build());
app_sec_security_policy_resource = akamai.AppSecSecurityPolicy("appSecSecurityPolicyResource",
    config_id=0,
    security_policy_name="string",
    security_policy_prefix="string",
    create_from_security_policy_id="string",
    default_settings=False)
const appSecSecurityPolicyResource = new akamai.AppSecSecurityPolicy("appSecSecurityPolicyResource", {
    configId: 0,
    securityPolicyName: "string",
    securityPolicyPrefix: "string",
    createFromSecurityPolicyId: "string",
    defaultSettings: false,
});
type: akamai:AppSecSecurityPolicy
properties:
    configId: 0
    createFromSecurityPolicyId: string
    defaultSettings: false
    securityPolicyName: string
    securityPolicyPrefix: string
AppSecSecurityPolicy 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 AppSecSecurityPolicy resource accepts the following input properties:
- ConfigId int
- Unique identifier of the security configuration
- SecurityPolicy stringName 
- Name of the new security policy
- SecurityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- CreateFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- DefaultSettings bool
- Whether to assign default settings to the new security policy
- ConfigId int
- Unique identifier of the security configuration
- SecurityPolicy stringName 
- Name of the new security policy
- SecurityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- CreateFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- DefaultSettings bool
- Whether to assign default settings to the new security policy
- configId Integer
- Unique identifier of the security configuration
- securityPolicy StringName 
- Name of the new security policy
- securityPolicy StringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- createFrom StringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings Boolean
- Whether to assign default settings to the new security policy
- configId number
- Unique identifier of the security configuration
- securityPolicy stringName 
- Name of the new security policy
- securityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- createFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings boolean
- Whether to assign default settings to the new security policy
- config_id int
- Unique identifier of the security configuration
- security_policy_ strname 
- Name of the new security policy
- security_policy_ strprefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- create_from_ strsecurity_ policy_ id 
- Unique identifier of the existing security policy being cloned
- default_settings bool
- Whether to assign default settings to the new security policy
- configId Number
- Unique identifier of the security configuration
- securityPolicy StringName 
- Name of the new security policy
- securityPolicy StringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- createFrom StringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings Boolean
- Whether to assign default settings to the new security policy
Outputs
All input properties are implicitly available as output properties. Additionally, the AppSecSecurityPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- SecurityPolicy stringId 
- Unique identifier of the new security policy
- Id string
- The provider-assigned unique ID for this managed resource.
- SecurityPolicy stringId 
- Unique identifier of the new security policy
- id String
- The provider-assigned unique ID for this managed resource.
- securityPolicy StringId 
- Unique identifier of the new security policy
- id string
- The provider-assigned unique ID for this managed resource.
- securityPolicy stringId 
- Unique identifier of the new security policy
- id str
- The provider-assigned unique ID for this managed resource.
- security_policy_ strid 
- Unique identifier of the new security policy
- id String
- The provider-assigned unique ID for this managed resource.
- securityPolicy StringId 
- Unique identifier of the new security policy
Look up Existing AppSecSecurityPolicy Resource
Get an existing AppSecSecurityPolicy 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?: AppSecSecurityPolicyState, opts?: CustomResourceOptions): AppSecSecurityPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        create_from_security_policy_id: Optional[str] = None,
        default_settings: Optional[bool] = None,
        security_policy_id: Optional[str] = None,
        security_policy_name: Optional[str] = None,
        security_policy_prefix: Optional[str] = None) -> AppSecSecurityPolicyfunc GetAppSecSecurityPolicy(ctx *Context, name string, id IDInput, state *AppSecSecurityPolicyState, opts ...ResourceOption) (*AppSecSecurityPolicy, error)public static AppSecSecurityPolicy Get(string name, Input<string> id, AppSecSecurityPolicyState? state, CustomResourceOptions? opts = null)public static AppSecSecurityPolicy get(String name, Output<String> id, AppSecSecurityPolicyState state, CustomResourceOptions options)resources:  _:    type: akamai:AppSecSecurityPolicy    get:      id: ${id}- 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.
- ConfigId int
- Unique identifier of the security configuration
- CreateFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- DefaultSettings bool
- Whether to assign default settings to the new security policy
- SecurityPolicy stringId 
- Unique identifier of the new security policy
- SecurityPolicy stringName 
- Name of the new security policy
- SecurityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- ConfigId int
- Unique identifier of the security configuration
- CreateFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- DefaultSettings bool
- Whether to assign default settings to the new security policy
- SecurityPolicy stringId 
- Unique identifier of the new security policy
- SecurityPolicy stringName 
- Name of the new security policy
- SecurityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- configId Integer
- Unique identifier of the security configuration
- createFrom StringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings Boolean
- Whether to assign default settings to the new security policy
- securityPolicy StringId 
- Unique identifier of the new security policy
- securityPolicy StringName 
- Name of the new security policy
- securityPolicy StringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- configId number
- Unique identifier of the security configuration
- createFrom stringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings boolean
- Whether to assign default settings to the new security policy
- securityPolicy stringId 
- Unique identifier of the new security policy
- securityPolicy stringName 
- Name of the new security policy
- securityPolicy stringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- config_id int
- Unique identifier of the security configuration
- create_from_ strsecurity_ policy_ id 
- Unique identifier of the existing security policy being cloned
- default_settings bool
- Whether to assign default settings to the new security policy
- security_policy_ strid 
- Unique identifier of the new security policy
- security_policy_ strname 
- Name of the new security policy
- security_policy_ strprefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
- configId Number
- Unique identifier of the security configuration
- createFrom StringSecurity Policy Id 
- Unique identifier of the existing security policy being cloned
- defaultSettings Boolean
- Whether to assign default settings to the new security policy
- securityPolicy StringId 
- Unique identifier of the new security policy
- securityPolicy StringName 
- Name of the new security policy
- securityPolicy StringPrefix 
- Four-character alphanumeric string prefix used in creating the security policy ID
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the akamaiTerraform Provider.