AppCertBuilder
Purpose: Initializes the AppCertBuilder
with the provided arguments and sets up the initial state.
Usage:
const builder = new AppCertBuilder({
name: 'example',
group: { resourceGroupName: 'resourceGroup' },
vaultInfo: { id: 'vaultId' },
dependsOn: [],
});
for
Purpose: Sets the domain-specific options for the certificate.
Usage:
builder.for({
type: 'Standard',
domain: 'example.com',
keySize: 2048,
});
build
Purpose: Builds the entire App Service Certificate Order with the configured properties.
Usage:
const resourceInfo = builder.build();
console.log(resourceInfo);
Here is a complete example that demonstrates how to use the AppCertBuilder
class, ensuring that the build()
method is called at the end:
const builder = new AppCertBuilder({
name: 'example',
group: { resourceGroupName: 'resourceGroup' },
vaultInfo: { id: 'vaultId' },
dependsOn: [],
});
builder.for({
type: 'Standard',
domain: 'example.com',
keySize: 2048,
});
const resourceInfo = builder.build();
console.log(resourceInfo);
Purpose: Initializes the AppCertBuilder
with the provided arguments and sets up the initial state.
Usage:
const builder = new AppCertBuilder({
name: 'example',
group: { resourceGroupName: 'resourceGroup' },
vaultInfo: { id: 'vaultId' },
dependsOn: [],
});
for
Purpose: Sets the domain-specific options for the certificate.
Usage:
builder.for({
type: 'Standard',
domain: 'example.com',
keySize: 2048,
});
build
Purpose: Builds the entire App Service Certificate Order with the configured properties.
Usage:
const resourceInfo = builder.build();
console.log(resourceInfo);
Here is a complete example that demonstrates how to use the AppCertBuilder
class, ensuring that the build()
method is called at the end:
const builder = new AppCertBuilder({
name: 'example',
group: { resourceGroupName: 'resourceGroup' },
vaultInfo: { id: 'vaultId' },
dependsOn: [],
});
builder.for({
type: 'Standard',
domain: 'example.com',
keySize: 2048,
});
const resourceInfo = builder.build();
console.log(resourceInfo);
This example demonstrates how to create an AppCertBuilder
instance, configure it with domain-specific options, and finally build the App Service Certificate Order. The build()
method is called last to ensure the certificate is fully constructed.