1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnOriginshielding
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

gcore.CdnOriginshielding

Explore with Pulumi AI

gcore logo
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

    Represent origin shielding

    Create CdnOriginshielding Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CdnOriginshielding(name: string, args: CdnOriginshieldingArgs, opts?: CustomResourceOptions);
    @overload
    def CdnOriginshielding(resource_name: str,
                           args: CdnOriginshieldingArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnOriginshielding(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           resource_id: Optional[float] = None,
                           shielding_pop: Optional[float] = None,
                           cdn_originshielding_id: Optional[str] = None)
    func NewCdnOriginshielding(ctx *Context, name string, args CdnOriginshieldingArgs, opts ...ResourceOption) (*CdnOriginshielding, error)
    public CdnOriginshielding(string name, CdnOriginshieldingArgs args, CustomResourceOptions? opts = null)
    public CdnOriginshielding(String name, CdnOriginshieldingArgs args)
    public CdnOriginshielding(String name, CdnOriginshieldingArgs args, CustomResourceOptions options)
    
    type: gcore:CdnOriginshielding
    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 CdnOriginshieldingArgs
    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 CdnOriginshieldingArgs
    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 CdnOriginshieldingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdnOriginshieldingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdnOriginshieldingArgs
    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 cdnOriginshieldingResource = new Gcore.CdnOriginshielding("cdnOriginshieldingResource", new()
    {
        ResourceId = 0,
        ShieldingPop = 0,
        CdnOriginshieldingId = "string",
    });
    
    example, err := gcore.NewCdnOriginshielding(ctx, "cdnOriginshieldingResource", &gcore.CdnOriginshieldingArgs{
    	ResourceId:           pulumi.Float64(0),
    	ShieldingPop:         pulumi.Float64(0),
    	CdnOriginshieldingId: pulumi.String("string"),
    })
    
    var cdnOriginshieldingResource = new CdnOriginshielding("cdnOriginshieldingResource", CdnOriginshieldingArgs.builder()
        .resourceId(0)
        .shieldingPop(0)
        .cdnOriginshieldingId("string")
        .build());
    
    cdn_originshielding_resource = gcore.CdnOriginshielding("cdnOriginshieldingResource",
        resource_id=0,
        shielding_pop=0,
        cdn_originshielding_id="string")
    
    const cdnOriginshieldingResource = new gcore.CdnOriginshielding("cdnOriginshieldingResource", {
        resourceId: 0,
        shieldingPop: 0,
        cdnOriginshieldingId: "string",
    });
    
    type: gcore:CdnOriginshielding
    properties:
        cdnOriginshieldingId: string
        resourceId: 0
        shieldingPop: 0
    

    CdnOriginshielding 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 CdnOriginshielding resource accepts the following input properties:

    ResourceId double
    ID of CDN resource for which shielding will be applied
    ShieldingPop double
    ID of the shielding point of present
    CdnOriginshieldingId string
    The ID of this resource.
    ResourceId float64
    ID of CDN resource for which shielding will be applied
    ShieldingPop float64
    ID of the shielding point of present
    CdnOriginshieldingId string
    The ID of this resource.
    resourceId Double
    ID of CDN resource for which shielding will be applied
    shieldingPop Double
    ID of the shielding point of present
    cdnOriginshieldingId String
    The ID of this resource.
    resourceId number
    ID of CDN resource for which shielding will be applied
    shieldingPop number
    ID of the shielding point of present
    cdnOriginshieldingId string
    The ID of this resource.
    resource_id float
    ID of CDN resource for which shielding will be applied
    shielding_pop float
    ID of the shielding point of present
    cdn_originshielding_id str
    The ID of this resource.
    resourceId Number
    ID of CDN resource for which shielding will be applied
    shieldingPop Number
    ID of the shielding point of present
    cdnOriginshieldingId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CdnOriginshielding 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 CdnOriginshielding Resource

    Get an existing CdnOriginshielding 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?: CdnOriginshieldingState, opts?: CustomResourceOptions): CdnOriginshielding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cdn_originshielding_id: Optional[str] = None,
            resource_id: Optional[float] = None,
            shielding_pop: Optional[float] = None) -> CdnOriginshielding
    func GetCdnOriginshielding(ctx *Context, name string, id IDInput, state *CdnOriginshieldingState, opts ...ResourceOption) (*CdnOriginshielding, error)
    public static CdnOriginshielding Get(string name, Input<string> id, CdnOriginshieldingState? state, CustomResourceOptions? opts = null)
    public static CdnOriginshielding get(String name, Output<String> id, CdnOriginshieldingState state, CustomResourceOptions options)
    resources:  _:    type: gcore:CdnOriginshielding    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.
    The following state arguments are supported:
    CdnOriginshieldingId string
    The ID of this resource.
    ResourceId double
    ID of CDN resource for which shielding will be applied
    ShieldingPop double
    ID of the shielding point of present
    CdnOriginshieldingId string
    The ID of this resource.
    ResourceId float64
    ID of CDN resource for which shielding will be applied
    ShieldingPop float64
    ID of the shielding point of present
    cdnOriginshieldingId String
    The ID of this resource.
    resourceId Double
    ID of CDN resource for which shielding will be applied
    shieldingPop Double
    ID of the shielding point of present
    cdnOriginshieldingId string
    The ID of this resource.
    resourceId number
    ID of CDN resource for which shielding will be applied
    shieldingPop number
    ID of the shielding point of present
    cdn_originshielding_id str
    The ID of this resource.
    resource_id float
    ID of CDN resource for which shielding will be applied
    shielding_pop float
    ID of the shielding point of present
    cdnOriginshieldingId String
    The ID of this resource.
    resourceId Number
    ID of CDN resource for which shielding will be applied
    shieldingPop Number
    ID of the shielding point of present

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core