azure-native.codesigning.CertificateProfile
Explore with Pulumi AI
Certificate profile resource. Azure REST API version: 2024-02-05-preview.
Example Usage
Create a certificate profile.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificateProfile = new AzureNative.CodeSigning.CertificateProfile("certificateProfile", new()
{
AccountName = "MyAccount",
IdentityValidationId = "00000000-1234-5678-3333-444444444444",
IncludePostalCode = true,
IncludeStreetAddress = false,
ProfileName = "profileA",
ProfileType = AzureNative.CodeSigning.ProfileType.PublicTrust,
ResourceGroupName = "MyResourceGroup",
});
});
package main
import (
codesigning "github.com/pulumi/pulumi-azure-native-sdk/codesigning/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codesigning.NewCertificateProfile(ctx, "certificateProfile", &codesigning.CertificateProfileArgs{
AccountName: pulumi.String("MyAccount"),
IdentityValidationId: pulumi.String("00000000-1234-5678-3333-444444444444"),
IncludePostalCode: pulumi.Bool(true),
IncludeStreetAddress: pulumi.Bool(false),
ProfileName: pulumi.String("profileA"),
ProfileType: pulumi.String(codesigning.ProfileTypePublicTrust),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.codesigning.CertificateProfile;
import com.pulumi.azurenative.codesigning.CertificateProfileArgs;
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) {
var certificateProfile = new CertificateProfile("certificateProfile", CertificateProfileArgs.builder()
.accountName("MyAccount")
.identityValidationId("00000000-1234-5678-3333-444444444444")
.includePostalCode(true)
.includeStreetAddress(false)
.profileName("profileA")
.profileType("PublicTrust")
.resourceGroupName("MyResourceGroup")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
certificate_profile = azure_native.codesigning.CertificateProfile("certificateProfile",
account_name="MyAccount",
identity_validation_id="00000000-1234-5678-3333-444444444444",
include_postal_code=True,
include_street_address=False,
profile_name="profileA",
profile_type=azure_native.codesigning.ProfileType.PUBLIC_TRUST,
resource_group_name="MyResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const certificateProfile = new azure_native.codesigning.CertificateProfile("certificateProfile", {
accountName: "MyAccount",
identityValidationId: "00000000-1234-5678-3333-444444444444",
includePostalCode: true,
includeStreetAddress: false,
profileName: "profileA",
profileType: azure_native.codesigning.ProfileType.PublicTrust,
resourceGroupName: "MyResourceGroup",
});
resources:
certificateProfile:
type: azure-native:codesigning:CertificateProfile
properties:
accountName: MyAccount
identityValidationId: 00000000-1234-5678-3333-444444444444
includePostalCode: true
includeStreetAddress: false
profileName: profileA
profileType: PublicTrust
resourceGroupName: MyResourceGroup
Create CertificateProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertificateProfile(name: string, args: CertificateProfileArgs, opts?: CustomResourceOptions);
@overload
def CertificateProfile(resource_name: str,
args: CertificateProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertificateProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
profile_type: Optional[Union[str, ProfileType]] = None,
resource_group_name: Optional[str] = None,
identity_validation_id: Optional[str] = None,
include_city: Optional[bool] = None,
include_country: Optional[bool] = None,
include_postal_code: Optional[bool] = None,
include_state: Optional[bool] = None,
include_street_address: Optional[bool] = None,
profile_name: Optional[str] = None)
func NewCertificateProfile(ctx *Context, name string, args CertificateProfileArgs, opts ...ResourceOption) (*CertificateProfile, error)
public CertificateProfile(string name, CertificateProfileArgs args, CustomResourceOptions? opts = null)
public CertificateProfile(String name, CertificateProfileArgs args)
public CertificateProfile(String name, CertificateProfileArgs args, CustomResourceOptions options)
type: azure-native:codesigning:CertificateProfile
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 CertificateProfileArgs
- 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 CertificateProfileArgs
- 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 CertificateProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateProfileArgs
- 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 certificateProfileResource = new AzureNative.CodeSigning.CertificateProfile("certificateProfileResource", new()
{
AccountName = "string",
ProfileType = "string",
ResourceGroupName = "string",
IdentityValidationId = "string",
IncludeCity = false,
IncludeCountry = false,
IncludePostalCode = false,
IncludeState = false,
IncludeStreetAddress = false,
ProfileName = "string",
});
example, err := codesigning.NewCertificateProfile(ctx, "certificateProfileResource", &codesigning.CertificateProfileArgs{
AccountName: pulumi.String("string"),
ProfileType: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
IdentityValidationId: pulumi.String("string"),
IncludeCity: pulumi.Bool(false),
IncludeCountry: pulumi.Bool(false),
IncludePostalCode: pulumi.Bool(false),
IncludeState: pulumi.Bool(false),
IncludeStreetAddress: pulumi.Bool(false),
ProfileName: pulumi.String("string"),
})
var certificateProfileResource = new CertificateProfile("certificateProfileResource", CertificateProfileArgs.builder()
.accountName("string")
.profileType("string")
.resourceGroupName("string")
.identityValidationId("string")
.includeCity(false)
.includeCountry(false)
.includePostalCode(false)
.includeState(false)
.includeStreetAddress(false)
.profileName("string")
.build());
certificate_profile_resource = azure_native.codesigning.CertificateProfile("certificateProfileResource",
account_name="string",
profile_type="string",
resource_group_name="string",
identity_validation_id="string",
include_city=False,
include_country=False,
include_postal_code=False,
include_state=False,
include_street_address=False,
profile_name="string")
const certificateProfileResource = new azure_native.codesigning.CertificateProfile("certificateProfileResource", {
accountName: "string",
profileType: "string",
resourceGroupName: "string",
identityValidationId: "string",
includeCity: false,
includeCountry: false,
includePostalCode: false,
includeState: false,
includeStreetAddress: false,
profileName: "string",
});
type: azure-native:codesigning:CertificateProfile
properties:
accountName: string
identityValidationId: string
includeCity: false
includeCountry: false
includePostalCode: false
includeState: false
includeStreetAddress: false
profileName: string
profileType: string
resourceGroupName: string
CertificateProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CertificateProfile resource accepts the following input properties:
- Account
Name string - Trusted Signing account name.
- Profile
Type string | Pulumi.Azure Native. Code Signing. Profile Type - Profile type of the certificate.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Identity
Validation stringId - Identity validation id used for the certificate subject name.
- Include
City bool - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Country bool - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Postal boolCode - Whether to include PC in the certificate subject name.
- Include
State bool - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Street boolAddress - Whether to include STREET in the certificate subject name.
- Profile
Name string - Certificate profile name.
- Account
Name string - Trusted Signing account name.
- Profile
Type string | ProfileType - Profile type of the certificate.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Identity
Validation stringId - Identity validation id used for the certificate subject name.
- Include
City bool - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Country bool - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Postal boolCode - Whether to include PC in the certificate subject name.
- Include
State bool - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- Include
Street boolAddress - Whether to include STREET in the certificate subject name.
- Profile
Name string - Certificate profile name.
- account
Name String - Trusted Signing account name.
- profile
Type String | ProfileType - Profile type of the certificate.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- identity
Validation StringId - Identity validation id used for the certificate subject name.
- include
City Boolean - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Country Boolean - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Postal BooleanCode - Whether to include PC in the certificate subject name.
- include
State Boolean - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Street BooleanAddress - Whether to include STREET in the certificate subject name.
- profile
Name String - Certificate profile name.
- account
Name string - Trusted Signing account name.
- profile
Type string | ProfileType - Profile type of the certificate.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- identity
Validation stringId - Identity validation id used for the certificate subject name.
- include
City boolean - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Country boolean - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Postal booleanCode - Whether to include PC in the certificate subject name.
- include
State boolean - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Street booleanAddress - Whether to include STREET in the certificate subject name.
- profile
Name string - Certificate profile name.
- account_
name str - Trusted Signing account name.
- profile_
type str | ProfileType - Profile type of the certificate.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- identity_
validation_ strid - Identity validation id used for the certificate subject name.
- include_
city bool - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include_
country bool - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include_
postal_ boolcode - Whether to include PC in the certificate subject name.
- include_
state bool - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include_
street_ booladdress - Whether to include STREET in the certificate subject name.
- profile_
name str - Certificate profile name.
- account
Name String - Trusted Signing account name.
- profile
Type String | "PublicTrust" | "Private Trust" | "Private Trust CIPolicy" | "VBSEnclave" | "Public Trust Test" - Profile type of the certificate.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- identity
Validation StringId - Identity validation id used for the certificate subject name.
- include
City Boolean - Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Country Boolean - Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Postal BooleanCode - Whether to include PC in the certificate subject name.
- include
State Boolean - Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types
- include
Street BooleanAddress - Whether to include STREET in the certificate subject name.
- profile
Name String - Certificate profile name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateProfile resource produces the following output properties:
- City string
- Used as L in the certificate subject name.
- Common
Name string - Used as CN in the certificate subject name.
- Country string
- Used as C in the certificate subject name.
- Enhanced
Key stringUsage - Enhanced key usage of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Organization string
- Used as O in the certificate subject name.
- Organization
Unit string - Used as OU in the private trust certificate subject name.
- Postal
Code string - Used as PC in the certificate subject name.
- Provisioning
State string - Status of the current operation on certificate profile.
- State string
- Used as S in the certificate subject name.
- Status string
- Status of the certificate profile.
- Street
Address string - Used as STREET in the certificate subject name.
- System
Data Pulumi.Azure Native. Code Signing. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- City string
- Used as L in the certificate subject name.
- Common
Name string - Used as CN in the certificate subject name.
- Country string
- Used as C in the certificate subject name.
- Enhanced
Key stringUsage - Enhanced key usage of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Organization string
- Used as O in the certificate subject name.
- Organization
Unit string - Used as OU in the private trust certificate subject name.
- Postal
Code string - Used as PC in the certificate subject name.
- Provisioning
State string - Status of the current operation on certificate profile.
- State string
- Used as S in the certificate subject name.
- Status string
- Status of the certificate profile.
- Street
Address string - Used as STREET in the certificate subject name.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- city String
- Used as L in the certificate subject name.
- common
Name String - Used as CN in the certificate subject name.
- country String
- Used as C in the certificate subject name.
- enhanced
Key StringUsage - Enhanced key usage of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- organization String
- Used as O in the certificate subject name.
- organization
Unit String - Used as OU in the private trust certificate subject name.
- postal
Code String - Used as PC in the certificate subject name.
- provisioning
State String - Status of the current operation on certificate profile.
- state String
- Used as S in the certificate subject name.
- status String
- Status of the certificate profile.
- street
Address String - Used as STREET in the certificate subject name.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- city string
- Used as L in the certificate subject name.
- common
Name string - Used as CN in the certificate subject name.
- country string
- Used as C in the certificate subject name.
- enhanced
Key stringUsage - Enhanced key usage of the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- organization string
- Used as O in the certificate subject name.
- organization
Unit string - Used as OU in the private trust certificate subject name.
- postal
Code string - Used as PC in the certificate subject name.
- provisioning
State string - Status of the current operation on certificate profile.
- state string
- Used as S in the certificate subject name.
- status string
- Status of the certificate profile.
- street
Address string - Used as STREET in the certificate subject name.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- city str
- Used as L in the certificate subject name.
- common_
name str - Used as CN in the certificate subject name.
- country str
- Used as C in the certificate subject name.
- enhanced_
key_ strusage - Enhanced key usage of the certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- organization str
- Used as O in the certificate subject name.
- organization_
unit str - Used as OU in the private trust certificate subject name.
- postal_
code str - Used as PC in the certificate subject name.
- provisioning_
state str - Status of the current operation on certificate profile.
- state str
- Used as S in the certificate subject name.
- status str
- Status of the certificate profile.
- street_
address str - Used as STREET in the certificate subject name.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- city String
- Used as L in the certificate subject name.
- common
Name String - Used as CN in the certificate subject name.
- country String
- Used as C in the certificate subject name.
- enhanced
Key StringUsage - Enhanced key usage of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- organization String
- Used as O in the certificate subject name.
- organization
Unit String - Used as OU in the private trust certificate subject name.
- postal
Code String - Used as PC in the certificate subject name.
- provisioning
State String - Status of the current operation on certificate profile.
- state String
- Used as S in the certificate subject name.
- status String
- Status of the certificate profile.
- street
Address String - Used as STREET in the certificate subject name.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ProfileType, ProfileTypeArgs
- Public
Trust - PublicTrustUsed for signing files which are distributed publicly.
- Private
Trust - PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- Private
Trust CIPolicy - PrivateTrustCIPolicyUsed for signing CI policy files.
- VBSEnclave
- VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- Public
Trust Test - PublicTrustTestUsed for signing files for testing purpose.
- Profile
Type Public Trust - PublicTrustUsed for signing files which are distributed publicly.
- Profile
Type Private Trust - PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- Profile
Type Private Trust CIPolicy - PrivateTrustCIPolicyUsed for signing CI policy files.
- Profile
Type VBSEnclave - VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- Profile
Type Public Trust Test - PublicTrustTestUsed for signing files for testing purpose.
- Public
Trust - PublicTrustUsed for signing files which are distributed publicly.
- Private
Trust - PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- Private
Trust CIPolicy - PrivateTrustCIPolicyUsed for signing CI policy files.
- VBSEnclave
- VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- Public
Trust Test - PublicTrustTestUsed for signing files for testing purpose.
- Public
Trust - PublicTrustUsed for signing files which are distributed publicly.
- Private
Trust - PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- Private
Trust CIPolicy - PrivateTrustCIPolicyUsed for signing CI policy files.
- VBSEnclave
- VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- Public
Trust Test - PublicTrustTestUsed for signing files for testing purpose.
- PUBLIC_TRUST
- PublicTrustUsed for signing files which are distributed publicly.
- PRIVATE_TRUST
- PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- PRIVATE_TRUST_CI_POLICY
- PrivateTrustCIPolicyUsed for signing CI policy files.
- VBS_ENCLAVE
- VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- PUBLIC_TRUST_TEST
- PublicTrustTestUsed for signing files for testing purpose.
- "Public
Trust" - PublicTrustUsed for signing files which are distributed publicly.
- "Private
Trust" - PrivateTrustUsed for signing files which are distributed internally within organization or group boundary.
- "Private
Trust CIPolicy" - PrivateTrustCIPolicyUsed for signing CI policy files.
- "VBSEnclave"
- VBSEnclaveUsed for signing files which are run in secure vbs enclave.
- "Public
Trust Test" - PublicTrustTestUsed for signing files for testing purpose.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:codesigning:CertificateProfile profileA /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0