// NewClusterCustomerManagedKey registers a new resource with the given unique name, arguments, and options.
NewClusterCustomerManagedKey registers a new resource with the given unique name, arguments, and options.
// NewClusterCustomerManagedKey registers a new resource with the given unique name arguments and options .
func NewClusterCustomerManagedKey(ctx *pulumi.Context,
	name string, args *ClusterCustomerManagedKeyArgs, opts ...pulumi.ResourceOption) (*ClusterCustomerManagedKey, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.KeyVaultKeyId == nil {
		return nil, errors.New("invalid value for required argument 'KeyVaultKeyId'")
	}
	if args.LogAnalyticsClusterId == nil {
		return nil, errors.New("invalid value for required argument 'LogAnalyticsClusterId'")
	}
	var resource ClusterCustomerManagedKey
	err := ctx.RegisterResource("azure:loganalytics/clusterCustomerManagedKey:ClusterCustomerManagedKey", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewClusterCustomerManagedKey ( ctx * pulumi . Context , name string , args * ClusterCustomerManagedKeyArgs , opts ... pulumi . ResourceOption ) ( * ClusterCustomerManagedKey , error ) { if args == nil { return nil , errors . New ( " " ) } if args . KeyVaultKeyId == nil { return nil , errors . New ( " " ) } if args . LogAnalyticsClusterId == nil { return nil , errors . New ( " " ) } var resource ClusterCustomerManagedKey err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewClusterCustomerManagedKey registers a new resource with the given unique name, arguments, and options.
NewClusterCustomerManagedKey registers a new resource with the given unique name arguments and options .