Akamai v7.2.0 published on Friday, May 31, 2024 by Pulumi
akamai.Property
Explore with Pulumi AI
Create Property Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Property(name: string, args: PropertyArgs, opts?: CustomResourceOptions);
@overload
def Property(resource_name: str,
args: PropertyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Property(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_id: Optional[str] = None,
group_id: Optional[str] = None,
product_id: Optional[str] = None,
hostnames: Optional[Sequence[PropertyHostnameArgs]] = None,
name: Optional[str] = None,
property_id: Optional[str] = None,
rule_format: Optional[str] = None,
rules: Optional[str] = None,
version_notes: Optional[str] = None)
func NewProperty(ctx *Context, name string, args PropertyArgs, opts ...ResourceOption) (*Property, error)
public Property(string name, PropertyArgs args, CustomResourceOptions? opts = null)
public Property(String name, PropertyArgs args)
public Property(String name, PropertyArgs args, CustomResourceOptions options)
type: akamai:Property
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 PropertyArgs
- 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 PropertyArgs
- 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 PropertyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PropertyArgs
- 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 propertyResource = new Akamai.Property("propertyResource", new()
{
ContractId = "string",
GroupId = "string",
ProductId = "string",
Hostnames = new[]
{
new Akamai.Inputs.PropertyHostnameArgs
{
CertProvisioningType = "string",
CnameFrom = "string",
CnameTo = "string",
CertStatuses = new[]
{
new Akamai.Inputs.PropertyHostnameCertStatusArgs
{
Hostname = "string",
ProductionStatus = "string",
StagingStatus = "string",
Target = "string",
},
},
CnameType = "string",
EdgeHostnameId = "string",
},
},
Name = "string",
PropertyId = "string",
RuleFormat = "string",
Rules = "string",
VersionNotes = "string",
});
example, err := akamai.NewProperty(ctx, "propertyResource", &akamai.PropertyArgs{
ContractId: pulumi.String("string"),
GroupId: pulumi.String("string"),
ProductId: pulumi.String("string"),
Hostnames: akamai.PropertyHostnameArray{
&akamai.PropertyHostnameArgs{
CertProvisioningType: pulumi.String("string"),
CnameFrom: pulumi.String("string"),
CnameTo: pulumi.String("string"),
CertStatuses: akamai.PropertyHostnameCertStatusArray{
&akamai.PropertyHostnameCertStatusArgs{
Hostname: pulumi.String("string"),
ProductionStatus: pulumi.String("string"),
StagingStatus: pulumi.String("string"),
Target: pulumi.String("string"),
},
},
CnameType: pulumi.String("string"),
EdgeHostnameId: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PropertyId: pulumi.String("string"),
RuleFormat: pulumi.String("string"),
Rules: pulumi.String("string"),
VersionNotes: pulumi.String("string"),
})
var propertyResource = new Property("propertyResource", PropertyArgs.builder()
.contractId("string")
.groupId("string")
.productId("string")
.hostnames(PropertyHostnameArgs.builder()
.certProvisioningType("string")
.cnameFrom("string")
.cnameTo("string")
.certStatuses(PropertyHostnameCertStatusArgs.builder()
.hostname("string")
.productionStatus("string")
.stagingStatus("string")
.target("string")
.build())
.cnameType("string")
.edgeHostnameId("string")
.build())
.name("string")
.propertyId("string")
.ruleFormat("string")
.rules("string")
.versionNotes("string")
.build());
property_resource = akamai.Property("propertyResource",
contract_id="string",
group_id="string",
product_id="string",
hostnames=[akamai.PropertyHostnameArgs(
cert_provisioning_type="string",
cname_from="string",
cname_to="string",
cert_statuses=[akamai.PropertyHostnameCertStatusArgs(
hostname="string",
production_status="string",
staging_status="string",
target="string",
)],
cname_type="string",
edge_hostname_id="string",
)],
name="string",
property_id="string",
rule_format="string",
rules="string",
version_notes="string")
const propertyResource = new akamai.Property("propertyResource", {
contractId: "string",
groupId: "string",
productId: "string",
hostnames: [{
certProvisioningType: "string",
cnameFrom: "string",
cnameTo: "string",
certStatuses: [{
hostname: "string",
productionStatus: "string",
stagingStatus: "string",
target: "string",
}],
cnameType: "string",
edgeHostnameId: "string",
}],
name: "string",
propertyId: "string",
ruleFormat: "string",
rules: "string",
versionNotes: "string",
});
type: akamai:Property
properties:
contractId: string
groupId: string
hostnames:
- certProvisioningType: string
certStatuses:
- hostname: string
productionStatus: string
stagingStatus: string
target: string
cnameFrom: string
cnameTo: string
cnameType: string
edgeHostnameId: string
name: string
productId: string
propertyId: string
ruleFormat: string
rules: string
versionNotes: string
Property 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 Property resource accepts the following input properties:
- Contract
Id string - Contract ID to be assigned to the Property
- Group
Id string - Group ID to be assigned to the Property
- Product
Id string - Product ID to be assigned to the Property
- Hostnames
List<Property
Hostname> - Name string
- Name to give to the Property (must be unique)
- Property
Id string - Property ID
- Rule
Format string - Specify the rule format version (defaults to latest version available when created)
- Rules string
- Property Rules as JSON
- Version
Notes string - Property version notes
- Contract
Id string - Contract ID to be assigned to the Property
- Group
Id string - Group ID to be assigned to the Property
- Product
Id string - Product ID to be assigned to the Property
- Hostnames
[]Property
Hostname Args - Name string
- Name to give to the Property (must be unique)
- Property
Id string - Property ID
- Rule
Format string - Specify the rule format version (defaults to latest version available when created)
- Rules string
- Property Rules as JSON
- Version
Notes string - Property version notes
- contract
Id String - Contract ID to be assigned to the Property
- group
Id String - Group ID to be assigned to the Property
- product
Id String - Product ID to be assigned to the Property
- hostnames
List<Property
Hostname> - name String
- Name to give to the Property (must be unique)
- property
Id String - Property ID
- rule
Format String - Specify the rule format version (defaults to latest version available when created)
- rules String
- Property Rules as JSON
- version
Notes String - Property version notes
- contract
Id string - Contract ID to be assigned to the Property
- group
Id string - Group ID to be assigned to the Property
- product
Id string - Product ID to be assigned to the Property
- hostnames
Property
Hostname[] - name string
- Name to give to the Property (must be unique)
- property
Id string - Property ID
- rule
Format string - Specify the rule format version (defaults to latest version available when created)
- rules string
- Property Rules as JSON
- version
Notes string - Property version notes
- contract_
id str - Contract ID to be assigned to the Property
- group_
id str - Group ID to be assigned to the Property
- product_
id str - Product ID to be assigned to the Property
- hostnames
Sequence[Property
Hostname Args] - name str
- Name to give to the Property (must be unique)
- property_
id str - Property ID
- rule_
format str - Specify the rule format version (defaults to latest version available when created)
- rules str
- Property Rules as JSON
- version_
notes str - Property version notes
- contract
Id String - Contract ID to be assigned to the Property
- group
Id String - Group ID to be assigned to the Property
- product
Id String - Product ID to be assigned to the Property
- hostnames List<Property Map>
- name String
- Name to give to the Property (must be unique)
- property
Id String - Property ID
- rule
Format String - Specify the rule format version (defaults to latest version available when created)
- rules String
- Property Rules as JSON
- version
Notes String - Property version notes
Outputs
All input properties are implicitly available as output properties. Additionally, the Property resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version int - Property's current latest version number
- Production
Version int - Property's version currently activated in production (zero when not active in production)
- Read
Version int - Required property's version to be read
- Rule
Errors List<PropertyRule Error> - Rule
Warnings List<PropertyRule Warning> - Rule validation warnings
- Staging
Version int - Property's version currently activated in staging (zero when not active in staging)
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version int - Property's current latest version number
- Production
Version int - Property's version currently activated in production (zero when not active in production)
- Read
Version int - Required property's version to be read
- Rule
Errors []PropertyRule Error - Rule
Warnings []PropertyRule Warning - Rule validation warnings
- Staging
Version int - Property's version currently activated in staging (zero when not active in staging)
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version Integer - Property's current latest version number
- production
Version Integer - Property's version currently activated in production (zero when not active in production)
- read
Version Integer - Required property's version to be read
- rule
Errors List<PropertyRule Error> - rule
Warnings List<PropertyRule Warning> - Rule validation warnings
- staging
Version Integer - Property's version currently activated in staging (zero when not active in staging)
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version number - Property's current latest version number
- production
Version number - Property's version currently activated in production (zero when not active in production)
- read
Version number - Required property's version to be read
- rule
Errors PropertyRule Error[] - rule
Warnings PropertyRule Warning[] - Rule validation warnings
- staging
Version number - Property's version currently activated in staging (zero when not active in staging)
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version int - Property's current latest version number
- production_
version int - Property's version currently activated in production (zero when not active in production)
- read_
version int - Required property's version to be read
- rule_
errors Sequence[PropertyRule Error] - rule_
warnings Sequence[PropertyRule Warning] - Rule validation warnings
- staging_
version int - Property's version currently activated in staging (zero when not active in staging)
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version Number - Property's current latest version number
- production
Version Number - Property's version currently activated in production (zero when not active in production)
- read
Version Number - Required property's version to be read
- rule
Errors List<Property Map> - rule
Warnings List<Property Map> - Rule validation warnings
- staging
Version Number - Property's version currently activated in staging (zero when not active in staging)
Look up Existing Property Resource
Get an existing Property 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?: PropertyState, opts?: CustomResourceOptions): Property
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contract_id: Optional[str] = None,
group_id: Optional[str] = None,
hostnames: Optional[Sequence[PropertyHostnameArgs]] = None,
latest_version: Optional[int] = None,
name: Optional[str] = None,
product_id: Optional[str] = None,
production_version: Optional[int] = None,
property_id: Optional[str] = None,
read_version: Optional[int] = None,
rule_errors: Optional[Sequence[PropertyRuleErrorArgs]] = None,
rule_format: Optional[str] = None,
rule_warnings: Optional[Sequence[PropertyRuleWarningArgs]] = None,
rules: Optional[str] = None,
staging_version: Optional[int] = None,
version_notes: Optional[str] = None) -> Property
func GetProperty(ctx *Context, name string, id IDInput, state *PropertyState, opts ...ResourceOption) (*Property, error)
public static Property Get(string name, Input<string> id, PropertyState? state, CustomResourceOptions? opts = null)
public static Property get(String name, Output<String> id, PropertyState 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.
- Contract
Id string - Contract ID to be assigned to the Property
- Group
Id string - Group ID to be assigned to the Property
- Hostnames
List<Property
Hostname> - Latest
Version int - Property's current latest version number
- Name string
- Name to give to the Property (must be unique)
- Product
Id string - Product ID to be assigned to the Property
- Production
Version int - Property's version currently activated in production (zero when not active in production)
- Property
Id string - Property ID
- Read
Version int - Required property's version to be read
- Rule
Errors List<PropertyRule Error> - Rule
Format string - Specify the rule format version (defaults to latest version available when created)
- Rule
Warnings List<PropertyRule Warning> - Rule validation warnings
- Rules string
- Property Rules as JSON
- Staging
Version int - Property's version currently activated in staging (zero when not active in staging)
- Version
Notes string - Property version notes
- Contract
Id string - Contract ID to be assigned to the Property
- Group
Id string - Group ID to be assigned to the Property
- Hostnames
[]Property
Hostname Args - Latest
Version int - Property's current latest version number
- Name string
- Name to give to the Property (must be unique)
- Product
Id string - Product ID to be assigned to the Property
- Production
Version int - Property's version currently activated in production (zero when not active in production)
- Property
Id string - Property ID
- Read
Version int - Required property's version to be read
- Rule
Errors []PropertyRule Error Args - Rule
Format string - Specify the rule format version (defaults to latest version available when created)
- Rule
Warnings []PropertyRule Warning Args - Rule validation warnings
- Rules string
- Property Rules as JSON
- Staging
Version int - Property's version currently activated in staging (zero when not active in staging)
- Version
Notes string - Property version notes
- contract
Id String - Contract ID to be assigned to the Property
- group
Id String - Group ID to be assigned to the Property
- hostnames
List<Property
Hostname> - latest
Version Integer - Property's current latest version number
- name String
- Name to give to the Property (must be unique)
- product
Id String - Product ID to be assigned to the Property
- production
Version Integer - Property's version currently activated in production (zero when not active in production)
- property
Id String - Property ID
- read
Version Integer - Required property's version to be read
- rule
Errors List<PropertyRule Error> - rule
Format String - Specify the rule format version (defaults to latest version available when created)
- rule
Warnings List<PropertyRule Warning> - Rule validation warnings
- rules String
- Property Rules as JSON
- staging
Version Integer - Property's version currently activated in staging (zero when not active in staging)
- version
Notes String - Property version notes
- contract
Id string - Contract ID to be assigned to the Property
- group
Id string - Group ID to be assigned to the Property
- hostnames
Property
Hostname[] - latest
Version number - Property's current latest version number
- name string
- Name to give to the Property (must be unique)
- product
Id string - Product ID to be assigned to the Property
- production
Version number - Property's version currently activated in production (zero when not active in production)
- property
Id string - Property ID
- read
Version number - Required property's version to be read
- rule
Errors PropertyRule Error[] - rule
Format string - Specify the rule format version (defaults to latest version available when created)
- rule
Warnings PropertyRule Warning[] - Rule validation warnings
- rules string
- Property Rules as JSON
- staging
Version number - Property's version currently activated in staging (zero when not active in staging)
- version
Notes string - Property version notes
- contract_
id str - Contract ID to be assigned to the Property
- group_
id str - Group ID to be assigned to the Property
- hostnames
Sequence[Property
Hostname Args] - latest_
version int - Property's current latest version number
- name str
- Name to give to the Property (must be unique)
- product_
id str - Product ID to be assigned to the Property
- production_
version int - Property's version currently activated in production (zero when not active in production)
- property_
id str - Property ID
- read_
version int - Required property's version to be read
- rule_
errors Sequence[PropertyRule Error Args] - rule_
format str - Specify the rule format version (defaults to latest version available when created)
- rule_
warnings Sequence[PropertyRule Warning Args] - Rule validation warnings
- rules str
- Property Rules as JSON
- staging_
version int - Property's version currently activated in staging (zero when not active in staging)
- version_
notes str - Property version notes
- contract
Id String - Contract ID to be assigned to the Property
- group
Id String - Group ID to be assigned to the Property
- hostnames List<Property Map>
- latest
Version Number - Property's current latest version number
- name String
- Name to give to the Property (must be unique)
- product
Id String - Product ID to be assigned to the Property
- production
Version Number - Property's version currently activated in production (zero when not active in production)
- property
Id String - Property ID
- read
Version Number - Required property's version to be read
- rule
Errors List<Property Map> - rule
Format String - Specify the rule format version (defaults to latest version available when created)
- rule
Warnings List<Property Map> - Rule validation warnings
- rules String
- Property Rules as JSON
- staging
Version Number - Property's version currently activated in staging (zero when not active in staging)
- version
Notes String - Property version notes
Supporting Types
PropertyHostname, PropertyHostnameArgs
- Cert
Provisioning stringType - Cname
From string - Cname
To string - Cert
Statuses List<PropertyHostname Cert Status> - Cname
Type string - Edge
Hostname stringId
- Cert
Provisioning stringType - Cname
From string - Cname
To string - Cert
Statuses []PropertyHostname Cert Status - Cname
Type string - Edge
Hostname stringId
- cert
Provisioning StringType - cname
From String - cname
To String - cert
Statuses List<PropertyHostname Cert Status> - cname
Type String - edge
Hostname StringId
- cert
Provisioning stringType - cname
From string - cname
To string - cert
Statuses PropertyHostname Cert Status[] - cname
Type string - edge
Hostname stringId
- cert
Provisioning StringType - cname
From String - cname
To String - cert
Statuses List<Property Map> - cname
Type String - edge
Hostname StringId
PropertyHostnameCertStatus, PropertyHostnameCertStatusArgs
- Hostname string
- Production
Status string - Staging
Status string - Target string
- Hostname string
- Production
Status string - Staging
Status string - Target string
- hostname String
- production
Status String - staging
Status String - target String
- hostname string
- production
Status string - staging
Status string - target string
- hostname str
- production_
status str - staging_
status str - target str
- hostname String
- production
Status String - staging
Status String - target String
PropertyRuleError, PropertyRuleErrorArgs
- Behavior
Name string - Detail string
- Error
Location string - Instance string
- Status
Code int - Title string
- Type string
- Behavior
Name string - Detail string
- Error
Location string - Instance string
- Status
Code int - Title string
- Type string
- behavior
Name String - detail String
- error
Location String - instance String
- status
Code Integer - title String
- type String
- behavior
Name string - detail string
- error
Location string - instance string
- status
Code number - title string
- type string
- behavior_
name str - detail str
- error_
location str - instance str
- status_
code int - title str
- type str
- behavior
Name String - detail String
- error
Location String - instance String
- status
Code Number - title String
- type String
PropertyRuleWarning, PropertyRuleWarningArgs
- Behavior
Name string - Detail string
- Error
Location string - Instance string
- Status
Code int - Title string
- Type string
- Behavior
Name string - Detail string
- Error
Location string - Instance string
- Status
Code int - Title string
- Type string
- behavior
Name String - detail String
- error
Location String - instance String
- status
Code Integer - title String
- type String
- behavior
Name string - detail string
- error
Location string - instance string
- status
Code number - title string
- type string
- behavior_
name str - detail str
- error_
location str - instance str
- status_
code int - title str
- type str
- behavior
Name String - detail String
- error
Location String - instance String
- status
Code Number - title String
- type String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.