// NewConditionalAccessPolicy registers a new resource with the given unique name, arguments, and options.
NewConditionalAccessPolicy registers a new resource with the given unique name, arguments, and options.
// NewConditionalAccessPolicy registers a new resource with the given unique name arguments and options .
func NewConditionalAccessPolicy(ctx *pulumi.Context,
	name string, args *ConditionalAccessPolicyArgs, opts ...pulumi.ResourceOption) (*ConditionalAccessPolicy, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Conditions == nil {
		return nil, errors.New("invalid value for required argument 'Conditions'")
	}
	if args.DisplayName == nil {
		return nil, errors.New("invalid value for required argument 'DisplayName'")
	}
	if args.GrantControls == nil {
		return nil, errors.New("invalid value for required argument 'GrantControls'")
	}
	if args.State == nil {
		return nil, errors.New("invalid value for required argument 'State'")
	}
	var resource ConditionalAccessPolicy
	err := ctx.RegisterResource("azuread:index/conditionalAccessPolicy:ConditionalAccessPolicy", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewConditionalAccessPolicy ( ctx * pulumi . Context , name string , args * ConditionalAccessPolicyArgs , opts ... pulumi . ResourceOption ) ( * ConditionalAccessPolicy , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Conditions == nil { return nil , errors . New ( " " ) } if args . DisplayName == nil { return nil , errors . New ( " " ) } if args . GrantControls == nil { return nil , errors . New ( " " ) } if args . State == nil { return nil , errors . New ( " " ) } var resource ConditionalAccessPolicy err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewConditionalAccessPolicy registers a new resource with the given unique name, arguments, and options.
NewConditionalAccessPolicy registers a new resource with the given unique name arguments and options .